wicket.markup.parser.filter
Class BodyOnLoadHandler
java.lang.Object
wicket.markup.parser.AbstractMarkupFilter
wicket.markup.parser.filter.BodyOnLoadHandler
- All Implemented Interfaces:
- IMarkupFilter
public final class BodyOnLoadHandler
- extends AbstractMarkupFilter
If you want to package and share ready-made components and if you want this
components to be easily pluggable than this component must have all the
relevant information. That includes javascript (inline or referenced file) as
well as CSS. With HTML these information have to be in the header of the
markup return to the browser. This is true for body onLoad attributes as
well. This markup inline filter detects &t;body> tags with an 'onLoad'
attribute and which have no wicket:id attribute. The onLoad attribute
will be copied from the component's markup to the Page's markup to allow for
completely self-contained components. No changes to the Pages will be
necessary to use the component.
Note: The markup must contain a <wicket:head> tag which contains the
javascript and/or CSS to be copied to the Page's header.
Note: this handler is not relevant for Pages
- Author:
- Juergen Donnerstag
- See Also:
MarkupParser
|
Field Summary |
static java.lang.String |
BODY_ID
The automatically assigned wicket:id to >body< tag |
|
Method Summary |
MarkupElement |
nextTag()
Get the next tag from the next MarkupFilter in the chain and search for
Wicket specific tags. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BODY_ID
public static final java.lang.String BODY_ID
- The automatically assigned wicket:id to >body< tag
- See Also:
- Constant Field Values
BodyOnLoadHandler
public BodyOnLoadHandler()
- Construct.
nextTag
public MarkupElement nextTag()
throws java.text.ParseException
- Get the next tag from the next MarkupFilter in the chain and search for
Wicket specific tags.
- Returns:
- The next tag from markup to be processed. If null, no more tags
are available
- Throws:
java.text.ParseException- See Also:
IMarkupFilter.nextTag()
Copyright © 2004-2007 Wicket developers. All Rights Reserved.