<netui:rewriteName> Tag
Allows a name, typically either an id
or name
attribute,
to participate in URL
rewritting.
<netui:rewriteName
name="name"
[resultId="resultId"] />
Allows a name, typically either an id
or name
attribute,
to participate in URL
rewritting. Some containers such as WebLogic Portal rewrite name attributes
so they are unique.
This tag will cause the name to be made available from the getNetuiTagName( tagId, tag )
JavaScript function.
Attributes |
name |
Required: Yes | Supports
runtime evaluation: Yes | Data bindable: No |
|
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 | Supports
runtime evaluation: Yes | Data bindable: No |
|
A name that will cause the real name to be stored into the page context under this name. |
In this sample, we are settting 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 change
render <span name="scope1_foo"> instead of <span name="scope1_foo">.
But the value 'foo' can be passed to getNetuiTagName( tagId, tag )
to find the rendered
value of the name attribute.
<span id="<netui:rewriteName name="foo"/>">