com.opencms.defaults
Class CmsXmlFormTemplateFile

java.lang.Object
  |
  +--com.opencms.template.A_CmsXmlContent
        |
        +--com.opencms.template.CmsXmlTemplateFile
              |
              +--com.opencms.defaults.CmsXmlFormTemplateFile
All Implemented Interfaces:
Cloneable, I_CmsContent, I_CmsLogChannels, I_CmsWpConstants, I_CmsXmlContent

public class CmsXmlFormTemplateFile
extends CmsXmlTemplateFile
implements I_CmsLogChannels

Template content definition for generating HTML forms. This is an extension of the default template content definition. Special tags for handling HTML form elements are added here. See the handleXxxTag Methods for more details.

Version:
$Revision: 1.15 $ $Date: 2003/01/20 23:59:23 $
Author:
Alexander Lucas

Field Summary
static String C_RADIO_CLASS
          Stylesheet class string of the radio button
static String C_RADIO_CLASSNAME
          Stylesheet class name of the radio button
static String C_RADIO_LINK
          Name of the radio button link
static String C_RADIO_METHOD
          Method of the radio buttons
static String C_RADIO_NAME
          Name of the radio button value
static String C_RADIO_ORDER
          Name of the radio ordering information
static String C_RADIO_RADIONAME
          Name of the radio buttons
static String C_RADIO_SELECTEDENTRY
          Datablock conatining the optional entry for the "checked" option
static String C_RADIO_SELECTEDOPTION
          Datablock conatining the "checked" option
static String C_SELECTBOX_CLASS
          Stylesheet class string of the select box
static String C_SELECTBOX_CLASSNAME
          Stylesheet class name of the select box
static String C_SELECTBOX_DIV
          Div flag of the select box
static String C_SELECTBOX_METHOD
          Method of the select box
static String C_SELECTBOX_NAME
          Name of the select box
static String C_SELECTBOX_ONCHANGE
          Onchange of the select box
static String C_SELECTBOX_OPTIONNAME
          option name of the select box
static String C_SELECTBOX_OPTIONVALUE
          option value of the select box
static String C_SELECTBOX_SIZE
          Size of the select box
static String C_SELECTBOX_WIDTH
          Width of the select box
static String C_SELECTBOX_WIDTHNAME
          Stylesheet class name of the select box
static String C_TAG_RADIO_CLASS
          Name of the radio "class" option tag in the input definiton template
static String C_TAG_RADIO_COLENTRY
          Name of the radion column entry tag in the input definiton template
static String C_TAG_RADIO_ROWENTRY
          Name of the radion row entry tag in the input definiton template
static String C_TAG_SELECTBOX_CLASS
          Name of the selectbox "class" option tag in the input definiton template
static String C_TAG_SELECTBOX_END
          Name of the select end tag in the input definiton template
static String C_TAG_SELECTBOX_OPTION
          Name of the (select) option tag in the input definiton template
static String C_TAG_SELECTBOX_SELOPTION
          Name of the (select) selected option tag in the input definiton template
static String C_TAG_SELECTBOX_START
          Name of the select start tag in the input definiton template
static String C_TAG_SELECTBOX_START_DIV
          Name of the select div start tag in the input definiton template
static String C_TAG_SELECTBOX_WIDTH
          Name of the selectbox "width" option tag in the input definiton template
 
Fields inherited from class com.opencms.template.CmsXmlTemplateFile
C_EDIT_TEMPLATE, C_TEMPLATE
 
Fields inherited from class com.opencms.template.A_CmsXmlContent
C_ERR_NODATABLOCK, C_MINIMUM_CLASSNAME, C_PARAMTYPES_HANDLING_METHODS, C_PARAMTYPES_USER_METHODS, C_REGISTER_FIRST_RUN, C_REGISTER_MAIN_RUN, C_TEMPLATE_EXTENSION, C_TEMPLATEPATH, m_cms, m_firstRunTags, m_knownTags, m_mainProcessTags
 
Fields inherited from interface com.opencms.boot.I_CmsLogChannels
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING
 
Fields inherited from interface com.opencms.workplace.I_CmsWpConstants
C_ADMIN_BACK_BUTTON, C_BOXTEMPLATE, C_BUTTON_ACTION, C_BUTTON_ALT, C_BUTTON_HREF, C_BUTTON_METHOD, C_BUTTON_NAME, C_BUTTON_STYLE, C_BUTTON_VALUE, C_BUTTON_WIDTH, C_BUTTONTEMPLATE, C_CONTEXTMENUE_TEMPLATEFILE, C_DEFAULT_LANGUAGE, C_DOWNBROWSER_MAXENTRIES, C_EDIT_ACTION_EXIT, C_EDIT_ACTION_SAVE, C_EDIT_ACTION_SAVEEXIT, C_ERROR_LINK, C_ERROR_MESSAGE, C_ERROR_MSG_BUTTON, C_ERROR_MSG_DETAILS, C_ERROR_MSG_REASON, C_ERROR_REASON, C_ERROR_SUGGESTION, C_ERROR_TITLE, C_ERRORTEMPLATE, C_FILELIST_ACCESS, C_FILELIST_ACCESS_VALUE, C_FILELIST_CHANGED, C_FILELIST_CHANGED_VALUE, C_FILELIST_CLASS_VALUE, C_FILELIST_COLUMN_ACCESS, C_FILELIST_COLUMN_CHANGED, C_FILELIST_COLUMN_CUSTOMIZED, C_FILELIST_COLUMN_CUSTOMIZED_VALUE, C_FILELIST_COLUMN_GROUP, C_FILELIST_COLUMN_LOCKED, C_FILELIST_COLUMN_NAME, C_FILELIST_COLUMN_OWNER, C_FILELIST_COLUMN_SIZE, C_FILELIST_COLUMN_STATE, C_FILELIST_COLUMN_TITLE, C_FILELIST_COLUMN_TYPE, C_FILELIST_CUSTOMTEMPLATE, C_FILELIST_DISPLAYMETHOD, C_FILELIST_GROUP, C_FILELIST_GROUP_VALUE, C_FILELIST_ICON_VALUE, C_FILELIST_LINK_VALUE, C_FILELIST_LOCK_VALUE, C_FILELIST_LOCKED, C_FILELIST_LOCKED_VALUE, C_FILELIST_METHOD, C_FILELIST_NAME, C_FILELIST_NAME_VALUE, C_FILELIST_OWNER, C_FILELIST_OWNER_VALUE, C_FILELIST_SIZE, C_FILELIST_SIZE_VALUE, C_FILELIST_STATE, C_FILELIST_STATE_VALUE, C_FILELIST_SUFFIX_VALUE, C_FILELIST_TEMPLATE, C_FILELIST_TITLE, C_FILELIST_TITLE_VALUE, C_FILELIST_TYPE, C_FILELIST_TYPE_VALUE, C_FILETYPELIST_TEMPLATEFILE, C_GROUPS_NAME, C_ICON_ACTION, C_ICON_ACTIVE_METHOD, C_ICON_DEFAULT, C_ICON_EXTENSION, C_ICON_HREF, C_ICON_LABEL, C_ICON_NAME, C_ICON_PREFIX, C_ICON_TARGET, C_ICON_TEMPLATEFILE, C_ICON_VISIBLE_METHOD, C_INPUT_ACTION, C_INPUT_CLASS, C_INPUT_LENGTH, C_INPUT_METHOD, C_INPUT_NAME, C_INPUT_SIZE, C_INPUT_VALUE, C_INPUTTEMPLATE, C_LABEL_VALUE, C_LABELTEMPLATE, C_LANG_BUTTON, C_LANG_ICON, C_LANG_LABEL, C_LANG_TITLE, C_MACRO_OPENCMS_CONTEXT, C_MESSAGE_BUTTON1, C_MESSAGE_BUTTON2, C_MESSAGE_FILENAME, C_MESSAGE_LINK1, C_MESSAGE_LINK2, C_MESSAGE_MESSAGE1, C_MESSAGE_MESSAGE2, C_MESSAGE_TITLE, C_MODULE_PACKETNAME, C_MODULELIST_AUTHOR, C_MODULELIST_DATECREATED, C_MODULELIST_DATEUPLOADED, C_MODULELIST_IDX, C_MODULELIST_METHOD, C_MODULELIST_NAME, C_MODULELIST_NICE_NAME, C_MODULELIST_TEMPLATEFILE, C_MODULELIST_VERSION, C_PANEL_EXPLORER, C_PANEL_LINK, C_PANEL_NAME, C_PANEL_START, C_PANEL_TASK, C_PANEL_USER, C_PANELTEMPLATE, C_PARA_ACTION, C_PARA_CANCEL, C_PARA_CONTENT, C_PARA_DEFAULT, C_PARA_DELETE, C_PARA_DESCRIPTION, C_PARA_EXPLORERSETTINGS, C_PARA_FILE, C_PARA_FILECONTENT, C_PARA_FILELIST, C_PARA_FILTER, C_PARA_FLAGS, C_PARA_FOLDER, C_PARA_FOLDERTREE, C_PARA_FORMNAME, C_PARA_INITIAL, C_PARA_JSFILE, C_PARA_KEYWORDS, C_PARA_LAYOUT, C_PARA_LINK, C_PARA_LOCK, C_PARA_MAXPAGE, C_PARA_NAME, C_PARA_NAVPOS, C_PARA_NAVTEXT, C_PARA_NEWACCESS, C_PARA_NEWFILE, C_PARA_NEWFOLDER, C_PARA_NEWGROUP, C_PARA_NEWOWNER, C_PARA_NEWPWD, C_PARA_NEWPWDREPEAT, C_PARA_NEWTYPE, C_PARA_OK, C_PARA_OLDPANEL, C_PARA_OLDPWD, C_PARA_PAGE, C_PARA_PANEL, C_PARA_PREVIOUSLIST, C_PARA_PROJECT, C_PARA_PROPERTYDEF, C_PARA_STARTPROJECTID, C_PARA_STARTSETTINGS, C_PARA_STARTTASKID, C_PARA_SUBMIT, C_PARA_TASKSETTINGS, C_PARA_TEMPLATE, C_PARA_TITLE, C_PARA_UNLOCK, C_PARA_URL, C_PARA_USERSETTINGS, C_PARA_VARIABLE, C_PARA_VIEW, C_PARA_VIEWFILE, C_PICBROWSER_MAXIMAGES, C_PREFERENCES_UPDATE, C_PREFSSCROLLER_TEMPLATEFILE, C_PROJECTLIST_DATECREATED, C_PROJECTLIST_DESCRIPTION, C_PROJECTLIST_IDX, C_PROJECTLIST_LOCKSTATE, C_PROJECTLIST_MENU, C_PROJECTLIST_METHOD, C_PROJECTLIST_NAME, C_PROJECTLIST_NAME_ESCAPED, C_PROJECTLIST_OWNER, C_PROJECTLIST_PROJECTID, C_PROJECTLIST_PROJECTMANAGER, C_PROJECTLIST_PROJECTWORKER, C_PROJECTLIST_STATE, C_PROJECTLIST_STATE_LOCKED, C_PROJECTLIST_STATE_UNLOCKED, C_PROJECTLIST_TEMPLATEFILE, C_PROJECTNEW_DESCRIPTION, C_PROJECTNEW_DONE, C_PROJECTNEW_ERROR, C_PROJECTNEW_FOLDER, C_PROJECTNEW_GROUP, C_PROJECTNEW_MANAGERGROUP, C_PROJECTNEW_NAME, C_PROJECTNEW_TYPE, C_RADIO_IMAGEENTRY, C_RADIO_IMAGENAME, C_RADIO_IMAGEOPTION, C_RADIOTEMPLATE, C_SELECTBOX_EDITORVIEWS, C_SELECTBOX_EDITORVIEWS_ALLOWED, C_SELECTBOX_EDITORVIEWS_CLASSES, C_SELECTBOX_EDITORVIEWS_DEFAULT, C_SELECTBOX_EDITORVIEWS_TEMPLATES, C_SELECTBOX_FONTS, C_SESSION_MODULE_ADMIN_DATA, C_SESSION_MODULE_ADMIN_PROP_DESCR, C_SESSION_MODULE_ADMIN_PROP_NAMES, C_SESSION_MODULE_ADMIN_PROP_TYP, C_SESSION_MODULE_ADMIN_PROP_VAL, C_SESSION_MODULE_CHECKSUM, C_SESSION_MODULE_DELETE_STEP, C_SESSION_MODULE_EXCLUSION, C_SESSION_MODULE_INUSE, C_SESSION_MODULE_MISSFILES, C_SESSION_MODULE_PROJECTFILES, C_SESSION_MODULE_PROPFILES, C_SESSION_TASK_ALLPROJECTS, C_SESSION_TASK_FILTER, C_SYSTEM_PICS_EXPORT_PATH, C_TAG_ERRORBOX, C_TAG_ERRORPAGE, C_TAG_INPUTFIELD, C_TAG_LABEL, C_TAG_MESSAGEBOX, C_TAG_MODULELIST_DEFAULT, C_TAG_PANEL_BGACTIVE, C_TAG_PANEL_BGINACTIVE, C_TAG_PANEL_ENDSEQ, C_TAG_PANEL_SEPBGTEXT, C_TAG_PANEL_STARTSEQ, C_TAG_PANEL_TEXTACTIVE, C_TAG_PANEL_TEXTINACTIVE, C_TAG_PASSWORD, C_TAG_PROJECTLIST_DEFAULT, C_TAG_PROJECTLIST_SNAPLOCK, C_TAG_STARTUP, C_TAG_SUBMITBUTTON, C_TASKDOCU_TEMPLATEFILE, C_TASKLIST_TEMPLATEFILE, C_TASKLOGTYPE_ACCEPTED, C_TASKLOGTYPE_CALL, C_TASKLOGTYPE_COMMENT, C_TASKLOGTYPE_CREATED, C_TASKLOGTYPE_DUECHANGED, C_TASKLOGTYPE_FORWARDED, C_TASKLOGTYPE_OK, C_TASKLOGTYPE_PRIORITYCHANGED, C_TASKLOGTYPE_REACTIVATED, C_TASKLOGTYPE_TAKE, C_TASKPARA_ACCEPTATION, C_TASKPARA_ALL, C_TASKPARA_COMPLETION, C_TASKPARA_DELIVERY, C_USERPREF_FILELIST, C_USERS_NAME, C_VFS_DIR_DEFAULTBODIES, C_VFS_DIR_INTERNAL, C_VFS_DIR_LOCALES, C_VFS_DIR_TEMPLATES, C_VFS_GALLERY_DOWNLOAD, C_VFS_GALLERY_EXTERNALLINKS, C_VFS_GALLERY_HTML, C_VFS_GALLERY_PICS, C_VFS_NEW_STRUCTURE, C_VFS_PATH_BODIES, C_VFS_PATH_DEFAULT_BODIES, C_VFS_PATH_DEFAULT_INTERNAL, C_VFS_PATH_DEFAULT_TEMPLATES, C_VFS_PATH_DEFAULTMODULE, C_VFS_PATH_GALLERIES, C_VFS_PATH_HELP, C_VFS_PATH_LOCALES, C_VFS_PATH_MODULEDEMOS, C_VFS_PATH_MODULES, C_VFS_PATH_SCRIPTS, C_VFS_PATH_SYSTEM, C_VFS_PATH_SYSTEMPICS, C_VFS_PATH_WORKPLACE, C_WP_CHANNEL_TREE, C_WP_EXPLORER_FILELIST, C_WP_EXPLORER_PREFERENCES, C_WP_EXPLORER_TREE, C_WP_FOLDER_TREE, C_WP_RELOAD
 
Constructor Summary
CmsXmlFormTemplateFile()
          Default constructor.
CmsXmlFormTemplateFile(CmsObject cms, CmsFile file)
          Constructor for creating a new object containing the content of the given filename.
CmsXmlFormTemplateFile(CmsObject cms, String filename)
          Constructor for creating a new object containing the content of the given filename.
 
Method Summary
 String getXmlDocumentTagName()
          Gets the expected tagname for the XML documents of this content type
 Object handleRadiobuttonTag(Element n, Object callingObject, Object userObj)
          Handles any occurence of the special XML tag <RADIOBUTTON> for generating HTML form radio buttons.
 Object handleSelectTag(Element n, Object callingObject, Object userObj)
          Handles any occurence of the special XML tag <SELECT> for generating HTML form select boxes.
 
Methods inherited from class com.opencms.template.CmsXmlTemplateFile
createNewSection, generateElementCacheVariant, getAllLinkTagValues, getAllSections, getAllSubElementDefinitions, getAllSubElements, getAllSubElements, getBodyTag, getContentDescription, getData, getDataValue, getEditableTemplateContent, getParameter, getParameterNames, getParameters, getProcessedData, getProcessedData, getProcessedData, getProcessedDataValue, getProcessedDataValue, getProcessedDataValue, getProcessedDataValue, getProcessedTemplateContent, getProcessedTemplateContent, getSectionTitle, getSubtemplateClass, getSubtemplateFilename, getSubtemplateSelector, getTemplateContent, handleElementTag, hasData, hasSection, hasSubtemplateClass, hasSubtemplateFilename, hasSubtemplateSelector, removeData, renameSection, setBodyTag, setData, setData, setEditedTemplateContent, setParsedData, setSectionTitle
 
Methods inherited from class com.opencms.template.A_CmsXmlContent
callAllUncalledMethodsSoThatEclipseDoesntComplainAboutThem, callUserMethod, clearFileCache, clearFileCache, clearFileCache, clone, createNewFile, fastSetData, getAbsoluteFilename, getAllData, getClassName, getEncoding, getFilename, getProcessedData, getTagValue, getXmlDocument, getXmlParser, getXmlText, getXmlText, getXmlText, getXmlText, getXmlText, getXmlText, init, init, init, parse, parse, processDocument, processNode, processNode, readIncludeFile, readIncludeFile, registerTag, registerTag, removeFromFileCache, setEncoding, throwException, throwException, throwException, throwException, toString, treeWalker, treeWalkerWidth, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

C_SELECTBOX_NAME

public static final String C_SELECTBOX_NAME
Name of the select box

See Also:
Constant Field Values

C_SELECTBOX_SIZE

public static final String C_SELECTBOX_SIZE
Size of the select box

See Also:
Constant Field Values

C_SELECTBOX_DIV

public static final String C_SELECTBOX_DIV
Div flag of the select box

See Also:
Constant Field Values

C_SELECTBOX_CLASS

public static final String C_SELECTBOX_CLASS
Stylesheet class string of the select box

See Also:
Constant Field Values

C_SELECTBOX_CLASSNAME

public static final String C_SELECTBOX_CLASSNAME
Stylesheet class name of the select box

See Also:
Constant Field Values

C_SELECTBOX_WIDTHNAME

public static final String C_SELECTBOX_WIDTHNAME
Stylesheet class name of the select box

See Also:
Constant Field Values

C_SELECTBOX_WIDTH

public static final String C_SELECTBOX_WIDTH
Width of the select box

See Also:
Constant Field Values

C_SELECTBOX_ONCHANGE

public static final String C_SELECTBOX_ONCHANGE
Onchange of the select box

See Also:
Constant Field Values

C_SELECTBOX_METHOD

public static final String C_SELECTBOX_METHOD
Method of the select box

See Also:
Constant Field Values

C_SELECTBOX_OPTIONNAME

public static final String C_SELECTBOX_OPTIONNAME
option name of the select box

See Also:
Constant Field Values

C_SELECTBOX_OPTIONVALUE

public static final String C_SELECTBOX_OPTIONVALUE
option value of the select box

See Also:
Constant Field Values

C_RADIO_RADIONAME

public static final String C_RADIO_RADIONAME
Name of the radio buttons

See Also:
Constant Field Values

C_RADIO_NAME

public static final String C_RADIO_NAME
Name of the radio button value

See Also:
Constant Field Values

C_RADIO_LINK

public static final String C_RADIO_LINK
Name of the radio button link

See Also:
Constant Field Values

C_RADIO_CLASS

public static final String C_RADIO_CLASS
Stylesheet class string of the radio button

See Also:
Constant Field Values

C_RADIO_CLASSNAME

public static final String C_RADIO_CLASSNAME
Stylesheet class name of the radio button

See Also:
Constant Field Values

C_RADIO_SELECTEDOPTION

public static final String C_RADIO_SELECTEDOPTION
Datablock conatining the "checked" option

See Also:
Constant Field Values

C_RADIO_SELECTEDENTRY

public static final String C_RADIO_SELECTEDENTRY
Datablock conatining the optional entry for the "checked" option

See Also:
Constant Field Values

C_RADIO_METHOD

public static final String C_RADIO_METHOD
Method of the radio buttons

See Also:
Constant Field Values

C_RADIO_ORDER

public static final String C_RADIO_ORDER
Name of the radio ordering information

See Also:
Constant Field Values

C_TAG_SELECTBOX_START

public static final String C_TAG_SELECTBOX_START
Name of the select start tag in the input definiton template

See Also:
Constant Field Values

C_TAG_SELECTBOX_START_DIV

public static final String C_TAG_SELECTBOX_START_DIV
Name of the select div start tag in the input definiton template

See Also:
Constant Field Values

C_TAG_SELECTBOX_END

public static final String C_TAG_SELECTBOX_END
Name of the select end tag in the input definiton template

See Also:
Constant Field Values

C_TAG_SELECTBOX_CLASS

public static final String C_TAG_SELECTBOX_CLASS
Name of the selectbox "class" option tag in the input definiton template

See Also:
Constant Field Values

C_TAG_SELECTBOX_WIDTH

public static final String C_TAG_SELECTBOX_WIDTH
Name of the selectbox "width" option tag in the input definiton template

See Also:
Constant Field Values

C_TAG_SELECTBOX_OPTION

public static final String C_TAG_SELECTBOX_OPTION
Name of the (select) option tag in the input definiton template

See Also:
Constant Field Values

C_TAG_SELECTBOX_SELOPTION

public static final String C_TAG_SELECTBOX_SELOPTION
Name of the (select) selected option tag in the input definiton template

See Also:
Constant Field Values

C_TAG_RADIO_CLASS

public static final String C_TAG_RADIO_CLASS
Name of the radio "class" option tag in the input definiton template

See Also:
Constant Field Values

C_TAG_RADIO_COLENTRY

public static final String C_TAG_RADIO_COLENTRY
Name of the radion column entry tag in the input definiton template

See Also:
Constant Field Values

C_TAG_RADIO_ROWENTRY

public static final String C_TAG_RADIO_ROWENTRY
Name of the radion row entry tag in the input definiton template

See Also:
Constant Field Values
Constructor Detail

CmsXmlFormTemplateFile

public CmsXmlFormTemplateFile()
                       throws CmsException
Default constructor.


CmsXmlFormTemplateFile

public CmsXmlFormTemplateFile(CmsObject cms,
                              CmsFile file)
                       throws CmsException
Constructor for creating a new object containing the content of the given filename.

Parameters:
cms - CmsObject object for accessing system resources.

CmsXmlFormTemplateFile

public CmsXmlFormTemplateFile(CmsObject cms,
                              String filename)
                       throws CmsException
Constructor for creating a new object containing the content of the given filename.

Parameters:
cms - CmsObject object for accessing system resources.
filename - Name of the body file that shoul be read.
Method Detail

getXmlDocumentTagName

public String getXmlDocumentTagName()
Gets the expected tagname for the XML documents of this content type

Overrides:
getXmlDocumentTagName in class CmsXmlTemplateFile
Returns:
Expected XML tagname.

handleRadiobuttonTag

public Object handleRadiobuttonTag(Element n,
                                   Object callingObject,
                                   Object userObj)
                            throws CmsException
Handles any occurence of the special XML tag <RADIOBUTTON> for generating HTML form radio buttons.

The definition of a HTML radio button will be taken from I_CmsWpConstants.C_VFS_PATH_DEFAULT_INTERNAL + "HTMLFormDefs". If the file is missing, this method will crash. Ensure this file is created and filled with all required XML tags.

Radio buttons can be generated by adding the special XML tag <RADIOBUTTON class="myClass" method="myMethod" name="myName"/> to the template file. This tag will be replaced with the correspondig group of radio buttons while processing the template file. The class parameter is optional. The method parameter will be used to look up a user defined method in the template class assigned to the template file. This method should look like
public Integer myMethod(CmsObject cms, Vector names, Vector values, Hashtable parameters)
and will be used to get the content of the requested radion button group. The vectors names and values should be filled with the appropriate values. The return value should be an Integer containing the pre-selected radio button or -1, if no value should be pre-selected.

Parameters:
n - XML element containing the current special workplace tag.
callingObject - reference to the calling object.
userObj - hashtable containig all user parameters.
Throws:
CmsException

handleSelectTag

public Object handleSelectTag(Element n,
                              Object callingObject,
                              Object userObj)
                       throws CmsException
Handles any occurence of the special XML tag <SELECT> for generating HTML form select boxes.

The definition of a HTML selectbox will be taken from I_CmsWpConstants.C_VFS_PATH_DEFAULT_INTERNAL + "HTMLFormDefs". If the file is missing, this method will crash. Ensure this file is created and filled with all required XML tags.

Select boxes can be generated by adding the special XML tag <SELECT class="myClass" method="myMethod" name="myName" onchange="..." size="..."/> to the template file. This tag will be replaced with the correspondig select box while processing the template file. The class parameter is optional and The method parameter will be used to look up a user defined method in the template class assigned to the template file. This method should look like
public Integer myMethod(CmsObject cms, Vector names, Vector values, Hashtable parameters)
and will be used to get the content of the requested select box group. The vectors names and values should be filled with the appropriate values. The return value should be an Integer containing the pre-selected option or -1, if no value should be pre-selected.

Parameters:
n - XML element containing the current special workplace tag.
callingObject - reference to the calling object.
userObj - hashtable containig all user parameters.
Throws:
CmsException