|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DynaTag
DynaTag represents a Jelly custom tag which
can take its attributes dynamically and store them in some data structure.
Typically a DynaTag may use either a Map or a DynaBean to implement itself
which avoids writing explicit getter and setter methods for each possible attribute.
This kind of tag can be extremely useful when making HTML-like tags which generally output all the attributes which are used in the markup, except one or two special attributes are used, all others pass through.
| Method Summary | |
|---|---|
java.lang.Class |
getAttributeType(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an attribute value of this tag before the tag is invoked |
| Methods inherited from interface org.apache.commons.jelly.Tag |
|---|
doTag, getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
| Method Detail |
|---|
void setAttribute(java.lang.String name,
java.lang.Object value)
throws JellyTagException
JellyTagException
java.lang.Class getAttributeType(java.lang.String name)
throws JellyTagException
JellyTagException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||