Class WicketMessageResolver

  extended bywicket.WicketMessageResolver
All Implemented Interfaces:
IComponentResolver, java.io.Serializable

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.

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
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


public WicketMessageResolver()
Method Detail


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
container - The container parsing its markup
markupStream - The current markupStream
tag - The current component tag while parsing the markup
true, if componentId was handle by the resolver. False, otherwise
See Also:
IComponentResolver.resolve(MarkupContainer, MarkupStream, ComponentTag)

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