I thought that something like this would work also:

  email.subject=Hi {userName}! Here is your confirmation.

  getLocalizer().getString("email.subject", Login.this, new Model(user));


Regards,
    Erik.


Mathias P.W Nilsson schreef:
> This is what I got so far
>
>  new StringResourceModel( "email.forgotlogin.body" , Login.this, new
> Model(), new Object[]{  user.getUserName(), user.getPassWord() } 
> ).getString();
>
> must I really do this for every string?
>   

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to