) {
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
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
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
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
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(&