wicket.markup.parser.filter
Class HeadForceTagIdHandler
java.lang.Object
wicket.markup.parser.AbstractMarkupFilter
wicket.markup.parser.filter.HeadForceTagIdHandler
- All Implemented Interfaces:
- IMarkupFilter
public class HeadForceTagIdHandler
- extends AbstractMarkupFilter
Handler that sets unique tag id for every inline script and style element in
<wicket:head>, unless the element already has one.
This is needed
to be able to dedect multiple ajax header contribution. Tags that are not
inline (stript with src attribute set and link with href attribute set) do
not require id, because the detection is done by comparing URLs.
Tags with wicket:id are not processed. To
setOutputWicketId(true) on attached component is developer's responsibility.
FIXME: Really? And if so, document properly
- Author:
- Matej Knopp
Method Summary |
MarkupElement |
nextTag()
Get the next MarkupElement from the parent MarkupFilter and handle it if
the specific filter criteria are met. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeadForceTagIdHandler
public HeadForceTagIdHandler(java.lang.Class markupFileClass)
- Construct.
- Parameters:
parent
- markupFileClass
- Used to generated the a common prefix for the id
nextTag
public MarkupElement nextTag()
throws java.text.ParseException
- Description copied from interface:
IMarkupFilter
- Get the next MarkupElement from the parent MarkupFilter and handle it if
the specific filter criteria are met. Depending on the filter, it may
return the MarkupElement unchanged, modified or it remove by asking the
parent handler for the next tag.
- Returns:
- Return the next eligible MarkupElement
- Throws:
java.text.ParseException
- See Also:
IMarkupFilter.nextTag()
Copyright © 2004-2007 Wicket developers. All Rights Reserved.