Class ReplacingResourceModel

  • All Implemented Interfaces:
    Serializable, IComponentAssignedModel<String>, IDetachable, IModel<String>, IClusterable

    public class ReplacingResourceModel
    extends Object
    implements IComponentAssignedModel<String>
    The ReplacingResourceModel is used to replaced other keys marked up like ${key} with their corresponding values in the given key.The replacing mechanism also uses the default way to get the localized String.

    Example:

     key1=value of key1
     key2=value of key2 contains ${key1}
     
     Label label = new Label("label",new ReplacingResourceModel("key2"));
     
     <span wicket:id="label"><span>
     
     Output: value of key2 contains value of key1
     
    Author:
    Tobias Soloschenko
    See Also:
    Serialized Form