org.apache.wicket.markup.parser.filter
Class WicketContainerTagHandler

java.lang.Object
  extended by org.apache.wicket.markup.parser.AbstractMarkupFilter
      extended by org.apache.wicket.markup.parser.filter.WicketContainerTagHandler
All Implemented Interfaces:
IMarkupFilter

public class WicketContainerTagHandler
extends AbstractMarkupFilter

This markup filter warns if a wicket:container tag has an attribute besides wicket:id. This is most likely a programmer mistake because the wicket:container tag won't be available in deployment mode. The filter is only active in development mode and does nothing in deployment mode.

Since:
6.0

Constructor Summary
WicketContainerTagHandler(boolean usesDevelopmentConfig)
           
WicketContainerTagHandler(MarkupResourceStream resourceStream, boolean usesDevelopmentConfig)
           
 
Method Summary
protected  MarkupElement onComponentTag(ComponentTag tag)
          Invoked when a ComponentTag was found.
 
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketContainerTagHandler

public WicketContainerTagHandler(boolean usesDevelopmentConfig)

WicketContainerTagHandler

public WicketContainerTagHandler(MarkupResourceStream resourceStream,
                                 boolean usesDevelopmentConfig)
Method Detail

onComponentTag

protected final MarkupElement onComponentTag(ComponentTag tag)
                                      throws ParseException
Description copied from class: AbstractMarkupFilter
Invoked when a ComponentTag was found.

By default this method is also called for WicketTags.

Specified by:
onComponentTag in class AbstractMarkupFilter
Returns:
Usually the same as the tag attribute
Throws:
ParseException


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.