wicket.markup.parser.filter
Class BodyOnLoadHandler

java.lang.Object
  extended bywicket.markup.parser.AbstractMarkupFilter
      extended bywicket.markup.parser.filter.BodyOnLoadHandler
All Implemented Interfaces:
IMarkupFilter

public final class BodyOnLoadHandler
extends AbstractMarkupFilter

This is a markup inline filter. It detects &t;body> tags with onload attribute. The onload attribute must be copied from the component's markup to the Page's markup. In case onload loads and runs a javascript, it must either be referenced by file or included in <wicket:head>.

Author:
Juergen Donnerstag

Field Summary
static java.lang.String BODY_ID
          The automatically assigned wicket:id to >body< tag
 
Constructor Summary
BodyOnLoadHandler(IMarkupFilter parent)
          Construct.
 
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 wicket.markup.parser.AbstractMarkupFilter
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BODY_ID

public static final java.lang.String BODY_ID
The automatically assigned wicket:id to >body< tag

See Also:
Constant Field Values
Constructor Detail

BodyOnLoadHandler

public BodyOnLoadHandler(IMarkupFilter parent)
Construct.

Parameters:
parent - The next MarkupFilter in the chain
Method Detail

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-2006 Wicket developers. All Rights Reserved.