NetUI Tag Library Documentation (Version 1.0.1)

netui
netui:rewriteName Tag

Allows a name, typically either an id or name attribute, to participate in URL rewritting.

Syntax

<netui:rewriteName
    name="string_name"
    [resultId="string_resultId"] >
    ... JSP content ...
</netui:rewriteName>

Description

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.

Example

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 Classorg.apache.beehive.netui.tags.html.RewriteName
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone