RewriteName Class
- public class RewriteName
extends AbstractBaseTag
Allow a tag name, typically either an id
or name
attribute, to participate in URL
rewritting. Some containers such as WebLogic Portal rewrite names so they are unique.
This tag will cause the name to be made available from the getNetuiTagName( tagId, tag )
JavaScript function (which is written to the page by the <netui:html> tag).
Attribute Descriptions |
Attribute | Required | Runtime Expression Evaluation |
Data Bindable |
name | Yes | No | No |
The value of the name which will be rewritten.
The real name will be output and may be looked up using 'name'. |
resultId | No | No | No |
A name that will cause the real name to be stored into the page context
under this name. |
Related Topics
<netui:rewrite...> Tag Samples
RewriteURL
-
Hierarchy
-
Object
TagSupport
BodyTagSupport
AbstractBaseTag
RewriteName
-
All Implemented Interfaces
-
BodyTag
, IterationTag
, Serializable
, Tag
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
|
public int |
-
doStartTag ()
- Pass the name attribute to the URLRewriter and output the
returned value.
|
public String |
-
getName ()
- Gets the name of that should be rewritten.
|
public String |
-
getResultId ()
- Gets the resultId.
|
public String |
-
getTagName ()
- Return the name of the Tag.
|
protected void |
-
localRelease ()
- Release any acquired resources.
|
public void |
-
setName (String name)
- Sets the name to be rewritten.
|
public void |
-
setResultId (String resultId)
- Sets the resultId which, if non-null, will store the real name
in the page context under the resultId name;
|
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.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 |
RewriteName
public RewriteName()
doStartTag() Method
public int doStartTag()
throws JspException
Pass the name attribute to the URLRewriter and output the
returned value. Updates the HTML tag to output the mapping.
-
Overrides
-
BodyTagSupport.doStartTag()
Exceptions
-
JspException
- if a JSP exception has occurred
getName() Method
public String
getName()
Gets the name of that should be rewritten.
Returns
- the parameter name.
getResultId() Method
public String
getResultId()
Gets the resultId. This is the name that the real name that
will be used to store the real name in the page context.
Returns
- the resultId
getTagName() Method
public String
getTagName()
Return the name of the Tag.
-
Overrides
-
AbstractBaseTag.getTagName()
localRelease() Method
protected void localRelease()
Release any acquired resources.
-
Overrides
-
AbstractBaseTag.localRelease()
setName(String) Method
public void setName(String
name)
Sets the name to be rewritten.
Parameters
-
name
- - the parameter name.
setResultId(String) Method
public void setResultId(String
resultId)
Sets the resultId which, if non-null, will store the real name
in the page context under the resultId name;
Parameters
-
resultId
- - the parameter name.