wicket.markup.resolver
Class WicketMessageResolver

java.lang.Object
  extended by wicket.markup.resolver.WicketMessageResolver
All Implemented Interfaces:
java.io.Serializable, IComponentResolver

public class WicketMessageResolver
extends java.lang.Object
implements IComponentResolver

This is a tag resolver which handles <wicket:message attr="myKey">Default Text</wicket:message>. The resolver will replace the whole tag with the message found in the properties file associated with the Page. If no message is found, the default body text will remain.

Author:
Juergen Donnerstag
See Also:
Serialized Form

Nested Class Summary
static class WicketMessageResolver.MyLabel
          A Label with expands open-close tags to open-body-close if required
 
Constructor Summary
WicketMessageResolver()
           
 
Method Summary
 boolean resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
          Try to resolve the tag, then create a component, add it to the container and render it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketMessageResolver

public WicketMessageResolver()
Method Detail

resolve

public boolean resolve(MarkupContainer container,
                       MarkupStream markupStream,
                       ComponentTag tag)
Try to resolve the tag, then create a component, add it to the container and render it.

Specified by:
resolve in interface IComponentResolver
Parameters:
container - The container parsing its markup
markupStream - The current markupStream
tag - The current component tag while parsing the markup
Returns:
true, if componentId was handle by the resolver. False, otherwise
See Also:
IComponentResolver.resolve(MarkupContainer, MarkupStream, ComponentTag)


Copyright © 2004-2007 Wicket developers. All Rights Reserved.