|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.markup.parser.AbstractMarkupFilter org.apache.wicket.markup.parser.filter.OpenCloseTagExpander
public class OpenCloseTagExpander
MarkupFilter that expands certain open-close tag as separate open and close tags. Firefox, unless it gets text/xml mime type, treats these open-close tags as open tags which results in corrupted DOM. This happens even with xhtml doctype. In addition, some tags are required open-body-close for Wicket to work properly.
Constructor Summary | |
---|---|
OpenCloseTagExpander()
|
Method Summary | |
---|---|
protected boolean |
contains(String name)
Allows subclasses to easily expand the list of tag which needs to be expanded. |
MarkupElement |
nextElement()
Get the next xml element from the markup. |
protected MarkupElement |
onComponentTag(ComponentTag tag)
Invoked when a ComponentTag was found. |
protected boolean |
onFound(ComponentTag tag)
Can be subclassed to do other things. |
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter |
---|
getMarkupResourceStream, getNextFilter, getWicketNamespace, getWicketNamespace, onSpecialTag, postProcess, setNextFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenCloseTagExpander()
Method Detail |
---|
public MarkupElement nextElement() throws ParseException
AbstractMarkupFilter
nextElement
in interface IMarkupFilter
nextElement
in class AbstractMarkupFilter
ParseException
protected MarkupElement onComponentTag(ComponentTag tag) throws ParseException
AbstractMarkupFilter
By default this method is also called for WicketTags.
onComponentTag
in class AbstractMarkupFilter
ParseException
protected boolean onFound(ComponentTag tag)
tag
-
protected boolean contains(String name)
name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |