well, in your case its not an "easy" string, but one with 2 parameters -
in case you have a plain string you can also use the wicket:message
method that is quite better suited for this (e.g: 2 message blocks - 1
before, 1 after and in middle a simple label that spews out the user data);
if you need many hard facts inserted into many strings holding many
parameters it might be easier to supply different language-markups (aka:
i8n of whole page in wiki) all over (however, im not sure how your email
thing works under the hood);
here in your case I could imagine that having several
mailcontent.html
mailcontent_en.html
....
might be easier so you just put in the hard facts using simple label; if
its just this one line however your solution is best IMHO;
Best,
Korbinian
Mathias P.W Nilsson schrieb:
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?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]