netui
netui:rewriteName Tag
Allows a name, typically either an id
or name
attribute,
to participate in URL rewritting.
<netui:rewriteName
name="string_name"
[resultId="string_resultId"] >
... JSP content ...
</netui:rewriteName>
Allows a name, typically either an id
or name
attribute,
to participate in URL rewritting. Some containers rewrite name attributes so they are unique.
This tag will cause the name to be made available from the lookupIdByTagId( id, tag )
JavaScript function.
Attributes |
name |
Required: Yes | Type:
String |
Supports runtime evaluation / JSP Expression Language: Yes |
The name which will be rewritten. This value will be output to the page rendered in the browser and may be looked up using 'name'. |
resultId |
Required: No | Type:
String |
Supports runtime evaluation / JSP Expression Language: Yes |
A name that will cause the real name to be stored into the page context under this name. |
In this sample, we are setting the id attribute of the span tag to 'foo'. The
actual value that will be rendered in the HTML may change depending on the
container where the web application resides. For example, a Portal container may
render <span name="scope1_foo"> instead of <span name="foo">.
But the value 'foo' can be passed to lookupIdByTagId( id, tag )
to find the rendered
value of the name attribute.
<span id="<netui:rewriteName name="foo"/>">
Tag Information |
Tag Class | org.apache.beehive.netui.tags.html.RewriteName |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |