sunlabs.brazil.sunlabs
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".
Method Summary | |
---|---|
boolean | init(RewriteContext hr) |
void | tag_div(RewriteContext hr) |
void | tag_section(RewriteContext hr) |
void | tag_span(RewriteContext hr) |
void | tag_table(RewriteContext hr) |