Class WicketMessageTagHandler

  • All Implemented Interfaces:
    java.io.Serializable, IMarkupFilter, IComponentResolver, org.apache.wicket.util.io.IClusterable

    public final class WicketMessageTagHandler
    extends AbstractMarkupFilter
    implements IComponentResolver
    This is a markup inline filter and a component resolver. It identifies wicket:message attributes and adds an attribute modifier to the component tag that can localize wicket:message="attr-name:i18n-key,attr-name-2:i18n-key-2,..." expressions, replacing values of attributes specified by attr-name with a localizer lookup with key i18n-key. If an attribute being localized has a set value that value will be used as the default value for the localization lookup. This handler also resolves and localizes raw markup with wicket:message attribute.
    Author:
    Juergen Donnerstag, Igor Vaynberg
    See Also:
    Serialized Form
    • Field Detail

      • WICKET_MESSAGE_CONTAINER_ID

        public static final java.lang.String WICKET_MESSAGE_CONTAINER_ID
        The id automatically assigned to tags with wicket:message attribute but without id
        See Also:
        Constant Field Values
    • Constructor Detail

      • WicketMessageTagHandler

        public WicketMessageTagHandler()
        Constructor for the IComponentResolver role.
      • WicketMessageTagHandler

        public WicketMessageTagHandler​(MarkupResourceStream markupResourceStream)
        Constructor for the IMarkupFilter role.