FeedbackMessage Localization

2010-01-31 Thread Marek Šabo
Hi all, I was wondering, is there a way to localize messages comming from info() and error() form methods via property files? I could do it via session logic but I'm interested in other ways. Regards, -- Marek Šabo - To

Re: FeedbackMessage Localization

2010-01-31 Thread Andrew Lombardi
You could use a StringResourceModel or ResourceModel and just grab the object that results On Jan 31, 2010, at 6:12 AM, Marek Šabo wrote: Hi all, I was wondering, is there a way to localize messages comming from info() and error() form methods via property files? I could do it via session

Re: FeedbackMessage Localization

2010-01-31 Thread Igor Vaynberg
info(getstring(key)) -igor On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I was wondering, is there a way to localize messages comming from info() and error() form methods via property files? I could do it via session logic but I'm interested in other ways.

Re: FeedbackMessage Localization

2010-01-31 Thread Marek Šabo
@Igor - works like a charm @Andrew - took me a while to play with hierarchy but got it working Thank you both, regards -- Marek Šabo On 01/31/2010 07:16 PM, Igor Vaynberg wrote: info(getstring(key)) -igor On Sun, Jan 31, 2010 at 6:12 AM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I

Re: FeedbackMessage Localization

2010-01-31 Thread Andrew Lombardi
No problem. Igor's is probably a helluva lot easier :) If this helped, consider writing an example in the Wiki and/or adding an Example to WicketByExample.com! :P Cheers! On Jan 31, 2010, at 4:35 PM, Marek Šabo wrote: @Igor - works like a charm @Andrew - took me a while to play with