BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags.html
Class Form

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.bea.wlw.netui.tags.AbstractBaseTag
              extended by com.bea.wlw.netui.tags.html.Form
All Implemented Interfaces:
HtmlConstants, URLParams, IAttributeConsumer, Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class Form
extends AbstractBaseTag
implements URLParams, IAttributeConsumer

This tag represents an input form, associated with a bean whose properties correspond to the various fields of the form.

Attribute Descriptions
AttributeRequiredRuntime Expression Evaluation Data Bindable
actionYesNoNo
Required. The action invoked by submitting the Form.
encTypeNoNoNo
The content encoding to be used on a post submit.
focusNoNoNo
The tagID of a nested Netui tag which should receive the focus.
locationNoNoNo
The location hash to append to the url.
methodNoNoNo
The request method used when submitting this form.
nameNoNoNo
The attribute key under which the associated ActionForm bean used to populate the input form is stored. This ActionForm is found in the scope defined by the scope attribute.
scopeNoNoNo
The scope ('request' or 'session') under which the associated ActionForm bean used to populate the form input fields is stored. Using the name, type and scope attributes defines an the ActionForm object used.
tagIdNoNoNo
The ID of this button used by the enclosing html tag to get the tag's real ID attribute for javascript and focus purposes. The real ID attribute id is generated based upon this name.
targetNoNoNo
The window target
typeNoNoNo
The Java class name of the ActionForm bean to be created, if necessary. This bean will be created if the name and scope attributes are set. The bean is then used to populate the form input fields.

See Also:
Serialized Form
Example:
In this first sample, the <netui:form> tag invokes the processData action method in the Controller file when the form is submitted.
      <netui:form action="processData">
              Name:
              <netui:textBox dataSource="{actionForm.name}"/>
              Age:
              <netui:textBox dataSource="{actionForm.age}"/>
              <netui:button value="Submit" type="submit"/>
      </netui:form>

Notice that the processData action method takes a parameter of type ProcessDataForm.

    /**
     * @jpf:action
     * @jpf:forward name="success" path="showData.jsp"
     */
    protected Forward processData(ProcessDataForm form)
    {
        //
        // Process the submitted data here.
        //
      
        return new Forward("success");
    }

This means that the submitted data is loaded into an instance of ProcessDataForm before it is passed to the action method.

In this next sample, the form fields are pre-populated based upon default values stored in the Session object.

      <netui:form action="Action" type="corp.Controller$NameBean"
          scope="session" name="nameBean">
          Name: <netui:textBox dataSource="{actionForm.name}" />
          <netui:button value="Submit"/>
      </netui:form>

Code Sample

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui/form/
Beadoc.see:
<netui:form> Tag Sample, Using Form Beans to Encapsulate Data
Beadoc.tagdescription:
Renders an HTML form that can be submitted to a Java method in the Controller file for processesing.

Submitting Data

When a <netui:form> is submitted, the form data is passed to a method for processessing. The data is passed as a Form Bean instance. The <netui:form>'s input fields correspond to the properties of the Form Bean. When the form is submitted the following sequence of events occurs: (1) a new Form Bean instance is created, (2) the form data is loaded into the corresponding Form Bean properties, and (3) the Form Bean instance is passed to the method where the data is processed.

The action attribute determines the target method of the submission. The parameter of the target method determines the Form Bean instance that carries the submitted data.

For example, if a <netui:form>'s target method is someAction ...

      <netui:form action="someAction">
               // 
               // input fields go here
               // 
          <netui:button value="Submit" type="submit"/>
      </netui:form>

...and the someAction method takes a Form Bean parameter of type SomeFormBean...

    /**
     * @jpf:action
     * @jpf:forward name="success" path="showData.jsp"
     */
     protected Forward someAction(SomeFormBean form)

...then an instance of SomeFormBean will carry the submitted data.

Pre-populating Form Fields with the Session Object

The name, type, and scope attributes can be used together to pre-populate the form fields with default values when they are first rendered in the browser.

In the Controller file, instantiate the appropriate Form Bean, set default values, and store the Form Bean instance in the Session object.

    protected void onCreate()
    {
      // Create a new Form Bean instance
      ProcessDataForm formInstance = new ProcessDataForm();
      
      // Set default values.
      formInstance.setAge(32);
      formInstance.setName("John");
      
      // Store the instance in the Session object.
      getSession().setAttribute("defaultValues", formInstance);   
    }

Then, use the name, type, and scope attributes to pre-populate the form fields.

    <netui:form 
        action="processData" 
        name="defaultValues" 
        type="tagSamples.netui.form.FormController$ProcessDataForm" 
        scope="session">

Note: when the data is submitted, the data is passed as a Request-scoped Form Bean, *not* as the Session-scoped Form Bean used to pre-populate the fields. However, you may pass the data as a Page Flow-scoped Form Bean, if the annotation @jpf:action form="somePageFlowScopedBean" is set on the receiving method. For detailed information on Form Bean scopings see Form Bean Scopings

Pre-populating Form Fields By Passing a Form Bean Instance to the JSP Page

As an alternative to the pre-population technique above, you can set the pre-population values in a Form Bean instance and then pass that instance to the JSP page. For example, assume that index.jsp contains the <netui:form> and input elements. The following action method sets the pre-population values in a Form Bean instance and passes that instance to the <netui:form> and its input elements. Note that the Forward object returned by the method has two parameters, the String "success" and the pre-populated form.

    /**
   * @jpf:action
   * @jpf:forward name="success" path="index.jsp"
   */
  protected Forward begin(ProcessDataForm form)
  {
      form.setAge(44);
      form.setName("Mark");
      return new Forward("success", form);
  }

Field Summary
protected  org.apache.struts.config.ModuleConfig appConfig
          The application configuration for our module.
protected  String beanName
          The name of the form bean to (create and) use.
protected  String beanScope
          The scope of the form bean to (create and) use.
protected  String beanType
          The type of the form bean to (create and) use.
protected  String enctype
          The content encoding to be used on a post submit.
protected  String focus
          The name of the field to receive focus, if any.
protected  String location
          The location hash to append to the url.
protected  org.apache.struts.action.ActionMapping mapping
          The ActionMapping defining where we will be submitting this form
protected  String method
          The request method used when submitting this form.
protected  String name
          The attribute key under which our associated bean is stored.
protected  String scope
          The scope (request or session) under which our associated bean is stored.
protected  org.apache.struts.action.ActionServlet servlet
          The ActionServlet instance we are associated with (so that we can initialize the servlet property on any form bean that we create).
protected  String target
          The window target.
protected  String text
          The body content of this tag (if any).
protected  String type
          The Java class name of the bean to be created, if necessary.
 
Fields inherited from class com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, JAVASCRIPT_STATUS, NETUI_UNIQUE_CNT
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface com.bea.wlw.netui.tags.html.HtmlConstants
ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEIGHT, HREF, HREFLANG, HSPACE, HTML, ID, IMAGE, INPUT, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, INPUT_PASSWORD, INPUT_RADIO, INPUT_RESET, INPUT_SUBMIT, INPUT_TEXT, ISMAP, LABEL, LANG, LINK, LONGDESC, MAXLENGTH, METHOD, NAME, ONBLUR, ONCHANGE, ONCLICK, ONDBLCLICK, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONSELECT, ONSUBMIT, ONUNLOAD, OPTION, READONLY, REL, REV, ROWS, RULES, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TD, TEXT, TEXTAREA, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Form()
           
 
Method Summary
 void addParameter(String name, Object value)
          Adds a URL parameter to the generated hyperlink.
 void addTagID(String tagID, String name)
          Adds a tagId and name to the Form's focusMap.
 int doAfterBody()
          Save the body content of the Form.
 int doEndTag()
          Render the end of this form.
 int doStartTag()
          Render the beginning of this form.
 void generateRealName()
           
 String getAction()
          Return the action of the Form.
 String getBeanName()
          Return the name of the form bean corresponding to this tag.
 String getEnctype()
          Return the content encoding to be used on a post submit.
 String getFocus()
          Return the name of the field to receive focus.
 String getLocation()
          Return the location hash to append to the url.
 String getMethod()
          Return request method used when submitting this form.
 String getName()
          Return the attribute key under which our associated bean is stored.
 String getOnClick()
          Gets the onClick javascript event.
 String getOnDblClick()
          Gets the onDblClick javascript event.
 String getOnKeyDown()
          Gets the onKeyDown javascript event.
 String getOnKeyPress()
          Gets the onKeyPress javascript event.
 String getOnKeyUp()
          Gets the onKeyUp javascript event.
 String getOnMouseDown()
          Gets the onMouseDown javascript event.
 String getOnMouseMove()
          Gets the onMouseMove javascript event.
 String getOnMouseOut()
          Gets the onMouseOut javascript event.
 String getOnMouseOver()
          Gets the onMouseOver javascript event.
 String getOnMouseUp()
          Gets the onMouseUp javascript event.
 String getOnReset()
          Gets the onReset javascript event.
 String getOnSubmit()
          Gets the onSubmit javascript event.
 String getRealName()
          this is used to
 String getScope()
          Gets the scope (request or session) under which the associated bean is stored.
 String getStyle()
          Gets the style of the rendered html tag.
 String getStyleClass()
          Gets the style class of the rendered html tag.
 String getTabindex()
          Gets the tabIndex of the rendered html tag.
 String getTagId()
          Return the ID of the form.
 String getTagName()
          Return the name of the Tag.
 String getTarget()
          Gets the window target.
 String getType()
          Gets the Java class name of the bean to be created, if necessary.
protected  void localRelease()
          Release any acquired resources.
protected  void lookup()
          Look up values for the name, scope, and type properties if necessary.
 void setAction(String action)
          Set the name of the action for the Form.
 void setAttribute(String name, String value)
          Set an attribute value.
 void setEnctype(String enctype)
          Set the content encoding to be used on a post submit.
 void setFocus(String focus)
          Set the name of the field to receive focus.
 void setLocation(String location)
          Set the location hash to append to the url.
 void setMethod(String method)
          Set the request method used when submitting this form.
 void setName(String name)
          Set the attribute key under which our associated bean is stored.
 void setOnClick(String onclick)
          Sets the onClick javascript event.
 void setOnDblClick(String ondblclick)
          Sets the onDblClick javascript event.
 void setOnKeyDown(String onkeydown)
          Sets the onKeyDown javascript event.
 void setOnKeyPress(String onkeypress)
          Sets the onKeyPress javascript event.
 void setOnKeyUp(String onkeyup)
          Sets the onKeyUp javascript event.
 void setOnMouseDown(String onmousedown)
          Sets the onMouseDown javascript event.
 void setOnMouseMove(String onmousemove)
          Sets the onMouseMove javascript event.
 void setOnMouseOut(String onmouseout)
          Sets the onMouseOut javascript event.
 void setOnMouseOver(String onmouseover)
          Sets the onMouseOver javascript event.
 void setOnMouseUp(String onmouseup)
          Sets the onMouseUp javascript event.
 void setOnReset(String onReset)
          Sets the onReset javascript event.
 void setOnSubmit(String onSubmit)
          Sets the onSubmit javascript event.
 void setScope(String scope)
          Sets the scope (request or session) under which the associated bean is stored.
 void setStyle(String style)
          Sets the style of the rendered html tag.
 void setStyleClass(String styleClass)
          Sets the style class of the rendered html tag.
 void setTabindex(String tabindex)
          Sets the tabIndex of the rendered html tag.
 void setTagId(String tagID)
          Set the ID of the form.
 void setTarget(String target)
          Sets the window target.
 void setType(String type)
          Sets the Java class name of the bean to be created, if necessary.
 
Methods inherited from class com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, containsExpression, evaluateAttributeToString, evaluateExpression, filter, filter, formatErrorString, formatString, getAttribute, getErrorsReport, getExpressionEvaluator, getJavaScriptUtils, getNearestForm, getNextId, getQualifiedBundleName, getScriptReporter, getUserLocale, hasErrors, isExpression, prepForRendering, registerAttribute, registerError, registerTagError, release, removeAttribute, renderAttribute, renderAttributes, reportErrors, rewriteName, setPageContext, updateExpression, write
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

appConfig

protected org.apache.struts.config.ModuleConfig appConfig
The application configuration for our module.

Exclude:

enctype

protected String enctype
The content encoding to be used on a post submit.


focus

protected String focus
The name of the field to receive focus, if any.


location

protected String location
The location hash to append to the url.


mapping

protected org.apache.struts.action.ActionMapping mapping
The ActionMapping defining where we will be submitting this form

Exclude:

method

protected String method
The request method used when submitting this form.


name

protected String name
The attribute key under which our associated bean is stored.


scope

protected String scope
The scope (request or session) under which our associated bean is stored.


servlet

protected org.apache.struts.action.ActionServlet servlet
The ActionServlet instance we are associated with (so that we can initialize the servlet property on any form bean that we create).

Exclude:

target

protected String target
The window target.


text

protected String text
The body content of this tag (if any).

Exclude:

beanName

protected String beanName
The name of the form bean to (create and) use. This is either the same as the 'name' attribute, if that was specified, or is obtained from the associated ActionMapping otherwise.

Exclude:

beanType

protected String beanType
The type of the form bean to (create and) use. This is either the same as the 'type' attribute, if that was specified, or is obtained from the associated ActionMapping otherwise.


beanScope

protected String beanScope
The scope of the form bean to (create and) use. This is either the same as the 'scope' attribute, if that was specified, or is obtained from the associated ActionMapping otherwise.


type

protected String type
The Java class name of the bean to be created, if necessary.

Constructor Detail

Form

public Form()
Method Detail

getTagName

public String getTagName()
Return the name of the Tag.

Specified by:
getTagName in class AbstractBaseTag

setAttribute

public void setAttribute(String name,
                         String value)
                  throws javax.servlet.jsp.JspException
Set an attribute value. The name represents the name of the attribute. The value represents the value and may contain a netui expression. This method may result in errors being generated. This requires that the tag buffer its body and write attributes in the end tag. For the form tag it is not legal to set the id, name, action, or method attributes with this method.

Specified by:
setAttribute in interface IAttributeConsumer
Parameters:
name - The name of the attribute. This value may not be null or the empty string.
value - The value of the attribute. This may contain a netui expression.
Throws:
javax.servlet.jsp.JspException - A JspException may be thrown if there is an error setting the attribute.

getAction

public String getAction()
Return the action of the Form.

Returns:
a String representing the action name of the Form.

setAction

public void setAction(String action)
Set the name of the action for the Form.

Parameters:
action - - the name of the action to set for the Form.
Beadoc.attributedescription:
Required. The action method invoked on form submit. Form data is passed to this method.
Beadoc.attributesyntaxvalue:
string_action
Beadoc.databindable:
false

getEnctype

public String getEnctype()
Return the content encoding to be used on a post submit.

Returns:
the content encoding type.

setEnctype

public void setEnctype(String enctype)
Set the content encoding to be used on a post submit.

Parameters:
enctype - - the content encoding type.
Beadoc.attributedescription:
The content encoding to be used on a POST submit.
Beadoc.attributesyntaxvalue:
string_enctype
Beadoc.databindable:
false

getRealName

public String getRealName()
this is used to


generateRealName

public void generateRealName()

getFocus

public String getFocus()
Return the name of the field to receive focus.

Returns:
the focus field name

setFocus

public void setFocus(String focus)
Set the name of the field to receive focus.

Parameters:
focus - - the focus field name.
Beadoc.attributedescription:
The tagID of an input field which should receive initial focus.
Beadoc.attributesyntaxvalue:
string_focus
Beadoc.databindable:
false

getLocation

public String getLocation()
Return the location hash to append to the url.

Returns:
the location hash

setLocation

public void setLocation(String location)
Set the location hash to append to the url.

Parameters:
location - - the location hash
Beadoc.attributedescription:
The location hash to append to the URL.
Beadoc.attributesyntaxvalue:
string_location
Beadoc.databindable:
false

getMethod

public String getMethod()
Return request method used when submitting this form.

Returns:
the request method

setMethod

public void setMethod(String method)
Set the request method used when submitting this form.

Parameters:
method - - the request method
Beadoc.attributedescription:
The request method used when submitting this form.
Beadoc.attributesyntaxvalue:
string_method
Beadoc.databindable:
false

getName

public String getName()
Return the attribute key under which our associated bean is stored.

Returns:
the attribute key name

setName

public void setName(String name)
Set the attribute key under which our associated bean is stored.

Parameters:
name - - the attribute key name
Beadoc.attributedescription:
The attribute key under which the associated Form Bean used to populate the input form is stored. This Form Bean is found in the scope defined by the scope attribute.
Beadoc.attributesyntaxvalue:
string_name
Beadoc.databindable:
false

getOnReset

public String getOnReset()
Gets the onReset javascript event.

Returns:
the onReset event.

setOnReset

public void setOnReset(String onReset)
Sets the onReset javascript event.

Parameters:
onReset - - the onReset event.
Beadoc.attributedescription:
The JavaScript onReset event.
Beadoc.attributesyntaxvalue:
string_onSubmit
Beadoc.databindable:
false

getOnSubmit

public String getOnSubmit()
Gets the onSubmit javascript event.

Returns:
the onSubmit event.

setOnSubmit

public void setOnSubmit(String onSubmit)
Sets the onSubmit javascript event.

Parameters:
onSubmit - - the onReset event.
Beadoc.attributedescription:
The JavaScript onSubmit event.
Beadoc.attributesyntaxvalue:
string_onSumbit
Beadoc.databindable:
false

getScope

public String getScope()
Gets the scope (request or session) under which the associated bean is stored.

Returns:
the scope.

setScope

public void setScope(String scope)
Sets the scope (request or session) under which the associated bean is stored.

Parameters:
scope - - the scope.
Beadoc.attributedescription:
The scope (request or session) under which the associated Form Bean used to populate the form input fields is stored. Using the name, type and scope attributes defines the Form Bean used.
Beadoc.attributesyntaxvalue:
string_scope
Beadoc.databindable:
false

getTagId

public String getTagId()
Return the ID of the form.

Returns:
the ID.

setTagId

public void setTagId(String tagID)
Set the ID of the form.

Parameters:
tagID - - the ID.
Beadoc.attributedescription:

String value. Sets the id (or name) attribute of the rendered HTML tag. Note that the real id attribute rendered in the browser may be changed by the application container (for example, Portal containers may change the rendered id value to ensure the uniqueness of id's on the page). In this case, the real id rendered in the browser may be looked up through the JavaScript function getNetuiTagName( tagId, tag ).

For example, assume that some tag's tagId attribute is set to foo.

    <netui:textBox tagId="foo" />

Then the following JavaScript function will return the real id attribute rendered in the browser:

    getNetuiTagName( "foo", this )

To get a <netui:form> element and all of its children elements in JavaScript, use the same JavaScript function getNetuiTagName( tagId, tag ). For example, assume that there is a <netui:form> whose tagId attribute is set to bar.

    <netui:form tagId="bar" >

Then the following JavaScript function will return the <netui:form> element and its children (packaged as an array).

    document[getNetuiTagName( "bar", this )]

To retreive the value entered into a <netui:textBox> within the <netui:form> tag, use the following JavaScript expression.

    document[getNetuiTagName("bar", this)][getNetuiTagName("foo", this)].value

The second parameter ensures that the JavaScript function begins its search within the correct Portlet scope. Pass the JavaScript keyword this as the second parameter. For detailed information on using the function getNetuiTagName( tagId, tag ) see Using JavaScript in Page Flow and Portal Applications.

Beadoc.attributesyntaxvalue:
string_tagId
Beadoc.databindable:
false

getTarget

public String getTarget()
Gets the window target.

Returns:
the window target.

setTarget

public void setTarget(String target)
Sets the window target.

Parameters:
target - - the window target.
Beadoc.attributedescription:
The window target
Beadoc.attributesyntaxvalue:
string_windowTarget
Beadoc.databindable:
false

getType

public String getType()
Gets the Java class name of the bean to be created, if necessary.

Returns:
the class name.

setType

public void setType(String type)
Sets the Java class name of the bean to be created, if necessary.

Parameters:
type - - the class name
Beadoc.attributedescription:
The Java class name of the Form Bean to be created, if necessary. This Form Bean will be created if the name and scope attributes are set. The Form Bean is then used to populate the form input fields.
Beadoc.attributesyntaxvalue:
string_type
Beadoc.databindable:
false

addParameter

public void addParameter(String name,
                         Object value)
                  throws javax.servlet.jsp.JspException
Adds a URL parameter to the generated hyperlink.

Specified by:
addParameter in interface URLParams
Parameters:
name - - the name of the parameter to be added.
value - - the value of the parameter to be added (a String or String[]).
Throws:
javax.servlet.jsp.JspException

addTagID

public void addTagID(String tagID,
                     String name)
Adds a tagId and name to the Form's focusMap.

Parameters:
tagID - - the tagID of a child tag.
name - - the name of a child tag.

getBeanName

public String getBeanName()
Return the name of the form bean corresponding to this tag. There is no corresponding setter method; this method exists so that the nested tag classes can obtain the actual bean name derived from other attributes of the tag.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Render the beginning of this form.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Save the body content of the Form.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Render the end of this form.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

localRelease

protected void localRelease()
Release any acquired resources.

Overrides:
localRelease in class AbstractBaseTag

lookup

protected void lookup()
               throws javax.servlet.jsp.JspException
Look up values for the name, scope, and type properties if necessary.

Throws:
javax.servlet.jsp.JspException - if a required value cannot be looked up
Exclude:

setTabindex

public void setTabindex(String tabindex)
Sets the tabIndex of the rendered html tag.

Parameters:
tabindex - - the tab index.
Beadoc.attributedescription:
The tabIndex of the rendered HTML tag. This attribute determines the position of the rendered HTML tag in the sequence of tags that the user may advance through by pressing the TAB key.
Beadoc.attributesyntaxvalue:
string_tabIndex
Beadoc.databindable:
false

getTabindex

public String getTabindex()
Gets the tabIndex of the rendered html tag.

Returns:
the tabindex.

setStyle

public void setStyle(String style)
Sets the style of the rendered html tag.

Parameters:
style - - the html style.
Beadoc.attributedescription:
Sets the style of the rendered HTML tag.
Beadoc.attributesyntaxvalue:
string_Style
Beadoc.databindable:
false

getStyle

public String getStyle()
Gets the style of the rendered html tag.

Returns:
the style.

setStyleClass

public void setStyleClass(String styleClass)
Sets the style class of the rendered html tag.

Parameters:
styleClass - - the html style class.
Beadoc.attributedescription:
The class of the rendered HTML tag.
Beadoc.attributesyntaxvalue:
string_Class
Beadoc.databindable:
false

getStyleClass

public String getStyleClass()
Gets the style class of the rendered html tag.

Returns:
the style class.

getOnClick

public String getOnClick()
Gets the onClick javascript event.

Returns:
the onClick event.

setOnClick

public void setOnClick(String onclick)
Sets the onClick javascript event.

Parameters:
onclick - - the onClick event.
Beadoc.attributedescription:
The onClick JavaScript event.
Beadoc.attributesyntaxvalue:
string_onClick
Beadoc.databindable:
false

getOnDblClick

public String getOnDblClick()
Gets the onDblClick javascript event.

Returns:
the onDblClick event.

setOnDblClick

public void setOnDblClick(String ondblclick)
Sets the onDblClick javascript event.

Parameters:
ondblclick - - the onDblClick event.
Beadoc.attributedescription:
The onDblClick JavaScript event.
Beadoc.attributesyntaxvalue:
string_onDblClick
Beadoc.databindable:
false

getOnKeyDown

public String getOnKeyDown()
Gets the onKeyDown javascript event.

Returns:
the onKeyDown event.

setOnKeyDown

public void setOnKeyDown(String onkeydown)
Sets the onKeyDown javascript event.

Parameters:
onkeydown - - the onKeyDown event.
Beadoc.attributedescription:
The onKeyDown JavaScript event.
Beadoc.attributesyntaxvalue:
string_onKeyDown
Beadoc.databindable:
false

getOnKeyPress

public String getOnKeyPress()
Gets the onKeyPress javascript event.

Returns:
the onKeyPress event.

setOnKeyPress

public void setOnKeyPress(String onkeypress)
Sets the onKeyPress javascript event.

Parameters:
onkeypress - - the onKeyPress event.
Beadoc.attributedescription:
The onKeyPress JavaScript event.
Beadoc.attributesyntaxvalue:
string_onKeyPress
Beadoc.databindable:
false

getOnKeyUp

public String getOnKeyUp()
Gets the onKeyUp javascript event.

Returns:
the onKeyUp event.

setOnKeyUp

public void setOnKeyUp(String onkeyup)
Sets the onKeyUp javascript event.

Parameters:
onkeyup - - the onKeyUp event.
Beadoc.attributedescription:
The onKeyUp JavaScript event.
Beadoc.attributesyntaxvalue:
string_onKeyUp
Beadoc.databindable:
false

getOnMouseDown

public String getOnMouseDown()
Gets the onMouseDown javascript event.

Returns:
the onMouseDown event.

setOnMouseDown

public void setOnMouseDown(String onmousedown)
Sets the onMouseDown javascript event.

Parameters:
onmousedown - - the onMouseDown event.
Beadoc.attributedescription:
The onMouseDown JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseDown
Beadoc.databindable:
false

getOnMouseMove

public String getOnMouseMove()
Gets the onMouseMove javascript event.

Returns:
the onMouseMove event.

setOnMouseMove

public void setOnMouseMove(String onmousemove)
Sets the onMouseMove javascript event.

Parameters:
onmousemove - - the onMouseMove event.
Beadoc.attributedescription:
The onMouseMove JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseMove
Beadoc.databindable:
false

getOnMouseOut

public String getOnMouseOut()
Gets the onMouseOut javascript event.

Returns:
the onMouseOut event.
Beadoc.attributedescription:
The onMouseOut JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseOut
Beadoc.databindable:
false

setOnMouseOut

public void setOnMouseOut(String onmouseout)
Sets the onMouseOut javascript event.

Parameters:
onmouseout - - the onMouseOut event.

getOnMouseOver

public String getOnMouseOver()
Gets the onMouseOver javascript event.

Returns:
the onMouseOver event.

setOnMouseOver

public void setOnMouseOver(String onmouseover)
Sets the onMouseOver javascript event.

Parameters:
onmouseover - - the onMouseOver event.
Beadoc.attributedescription:
The onMouseOver JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseOver
Beadoc.databindable:
false

getOnMouseUp

public String getOnMouseUp()
Gets the onMouseUp javascript event.

Returns:
the onMouseUp event.

setOnMouseUp

public void setOnMouseUp(String onmouseup)
Sets the onMouseUp javascript event.

Parameters:
onmouseup - - the onMouseUp event.
Beadoc.attributedescription:
The onMouseUp JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseUp
Beadoc.databindable:
false

BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.