public class IdUniquificationTemplate extends Template
This template looks at all "span", "div", and "section" tags and rewrites all id attributes. ("section" is a non-standard tag that may be used by the server for automatic "id" uniquification.)
It is up to the developer to make sure there is a request property that is unique for each window that is part us the "subst" value (e.g.
subst=%_${window_id}to append the window id onto the id).
If the boolean attribute "norewrite" is specified, the id will not be rewritten.
If the request property "title.
NOTE:
This template may be useful primarily in debugging multi browser
window AJAC applications, and shouldn't be needed in "production".
Constructor and Description |
---|
IdUniquificationTemplate() |
Modifier and Type | Method and Description |
---|---|
boolean |
init(RewriteContext hr)
Called before this template processes any tags.
|
void |
tag_div(RewriteContext hr) |
void |
tag_section(RewriteContext hr) |
void |
tag_span(RewriteContext hr) |
void |
tag_table(RewriteContext hr) |
public boolean init(RewriteContext hr)
Template
init
in interface TemplateInterface
init
in class Template
public void tag_span(RewriteContext hr)
public void tag_div(RewriteContext hr)
public void tag_table(RewriteContext hr)
public void tag_section(RewriteContext hr)