|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.markup.parser.AbstractMarkupFilter
wicket.markup.parser.filter.WicketParamTagHandler
This is a markup inline filter. It identifies Wicket parameter tags like <wicket:param key=value/> and assigns the key/value pair to the attribute list of the immediately preceding Wicket component.
Example:
<table><tr wicket:id="myTable">
<wicket:param rowsPerPage=10/>
...
</tr></table>
| Constructor Summary | |
WicketParamTagHandler(IMarkupFilter parent)
Construct. |
|
| Method Summary | |
MarkupElement |
nextTag()
Get the next tags from the next MarkupFilter in the chain. |
void |
setStripWicketTag(boolean strip)
Enable/disable removing Wicket param tags |
| Methods inherited from class wicket.markup.parser.AbstractMarkupFilter |
getParent, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WicketParamTagHandler(IMarkupFilter parent)
parent - The next MarkupFilter in the chain| Method Detail |
public void setStripWicketTag(boolean strip)
strip - True, if Wicket param tags shall be removed
public final MarkupElement nextTag()
throws java.text.ParseException
Note: IXmlPullParser which is the last element in the chain returns XmlTag objects which are derived from MarkupElement. WicketParamTagHandler hwoever assumes that the next MarkupFilter in the chain returns either ComponentTags or ComponentWicketTags. Both are subclasses of MarkupElement as well. Thus, WicketParamTagHandler can not be the first MarkupFilter immediately following the IXmlPullParser. Some inline filter converting XmlTags into ComponentTags must preceed it.
java.text.ParseExceptionIMarkupFilter.nextTag()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||