Re: Getting localized string in constructor.

2009-04-14 Thread Srikanth.NT
) { String value = loader.loadStringResource(clazz, propertyName, null, MyOwnSession.get().getStyle()); if (StringUtils.isNotBlank(value)) { return value; } } return null; } Michał Letyński wrote: > > Hi. > When im getting localized string in constr

Re: Getting localized string in constructor.

2009-04-14 Thread Jonas
ey").getObject().toString(). >> >> cheers, >> Witold >> >> Am Tue, 14 Apr 2009 11:07:05 +0200 >> schrieb Michał Letyński : >> >>> Hi. >>> When im getting localized string in constructor via getString method the >>> warning mess

Re: Getting localized string in constructor.

2009-04-14 Thread Jonas
del you may want to call: new > ResourceModel("key").getObject().toString(). > > cheers, > Witold > > Am Tue, 14 Apr 2009 11:07:05 +0200 > schrieb Michał Letyński : > >> Hi. >> When im getting localized string in constructor via getString method the >> w

Re: Getting localized string in constructor.

2009-04-14 Thread Witold Czaplewski
Hi Michał, if you need the string of a ResourceModel you may want to call: new ResourceModel("key").getObject().toString(). cheers, Witold Am Tue, 14 Apr 2009 11:07:05 +0200 schrieb Michał Letyński : > Hi. > When im getting localized string in constructor via getString metho

Getting localized string in constructor.

2009-04-14 Thread Michał Letyński
Hi. When im getting localized string in constructor via getString method the warning message is dispalyed: "Tried to retrieve a localized string for a component that has not yet been added to the page. " I know that one possible way to "fix" this is to use ResourceModel(&