see the method with the model param:

    * @param model
    *            The model to use for property substitutions in the strings
    *            (optional)
   public String getString(final String key, final Component component,
final IModel model)
           throws MissingResourceException

johan

On 5/21/07, Dimitrio <[EMAIL PROTECTED]> wrote:

Hi All,

I need to display localized messages that use the standard Java approach
to message parameterization. What is the best way to achieve that in Wicket
by using Wicket's Localizer class?

For example, my resource file may look like this:

WelcomePage.properties:
--------
message=Welcome back, {0}! You last logged in at {1,time} on {1,date}.

The resulting message needs to look somewhat like this:

Welcome back, Bob! You last logged in at 15:45 on 03.05.2007.


Thanks!
Dimitrio

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to