DeclarePageInput Class

com.bea.wlw.netui.tags.databinding.pageinput
DeclarePageInput Class

public class DeclarePageInput

    extends AbstractBaseTag

The DeclarePageInput tag is used to declare variables that are passed to the page from the page flow. A page input variable has a lifetime of the page in which it is declared and can be referenced using the pageInput data binding context. The name attribute here is used as the identifier for the variable inside of this binding context, and the type attribute is used to identify the expected type of this variable.

Attribute Descriptions
AttributeRequiredRuntime Expression EvaluationData Bindable
nameYesNoNo
The name of a variable that can be referenced in the page input data binding context.
typeYesNoNo
The type of the variable referenced in the page input data binding context.

Related Topics

<netui-data:declarePageInput> Tag Sample


Hierarchy
Object
  TagSupport
    BodyTagSupport
      AbstractBaseTag
        DeclarePageInput
All Implemented Interfaces

BodyTag, IterationTag, Serializable, Tag

Field Summary

   
Fields from  com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, CLASS, ID, JAVASCRIPT_STATUS, NAME, NETUI_UNIQUE_CNT, ONCLICK, ONDBLCLICK, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, STYLE, TABINDEX
 
Fields from  javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields from  javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 

Constructor Summary

DeclarePageInput()

 

Method Summary

public int
doEndTag()
public int
doStartTag()
public String
getName()
Get the name of the variable that can be referenced using the page input data binding context.
public String
getTagName()
Get the name of this tag.
public String
getType()
Get the type of the variable that referenced with the attribute on this tag.
protected void
localRelease()
Reset all of the fields of this tag.
public void
setName(String name)
Set the name of a variable that can be referecned using the page input data binding context.
public void
setType(String type)
Set the type of the variable that referenced with the attribute on this tag.
 
Methods from  com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, evaluateAttributeToString, filter, filter, getJavaScriptUtils, getNearestForm, getScriptReporter, getUserLocale, registerTagError, release, renderAttribute, rewriteName, write
 
Methods from  javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods from  javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.servlet.jsp.tagext.BodyTag
doInitBody, setBodyContent
 
Methods from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Constructor Detail

DeclarePageInput

public DeclarePageInput()
 

Method Detail

doEndTag() Method

public int doEndTag()
throws JspException
Overrides
BodyTagSupport.doEndTag()

Returns

EVAL_PAGE as this tag always continues to evaluate the page

Exceptions

JspException

doStartTag() Method

public int doStartTag()
Overrides
BodyTagSupport.doStartTag()

Returns

SKIP_BODY as this tag does not evaluate its body

getName() Method

public String getName()
Get the name of the variable that can be referenced using the page input data binding context.


getTagName() Method

public String getTagName()
Get the name of this tag. This is used to identify the type of this tag for reporting tag errors.

Overrides
AbstractBaseTag.getTagName()

Returns

a constant String representing the name of this tag.

getType() Method

public String getType()
Get the type of the variable that referenced with the attribute on this tag.


localRelease() Method

protected void localRelease()
Reset all of the fields of this tag.

Overrides
AbstractBaseTag.localRelease()

setName(String) Method

public void setName(String name)
Set the name of a variable that can be referecned using the page input data binding context.

Parameters

name
the name of the variable

setType(String) Method

public void setType(String type)
Set the type of the variable that referenced with the attribute on this tag.

Parameters

type
the type of the variable that is referenced