You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jan Kriesten <ja...@renitence.de> on 2007/09/21 19:43:03 UTC

StringResourceModel.toString()

hi,

there seems to be a change in the current trunk to
StringResourceModel.toString() - which before returned the localized String.

now it returns some 'useful' information like
StringResourceModel[key:CONTENTTYPE:date.published.description,default:null,params:]


hmm.

why was that changed?

regards, --- jan.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: StringResourceModel.toString()

Posted by Johan Compagner <jc...@gmail.com>.
toString is for debug (except for the default String/Number classes and so
on)
The problem is that StirngResourceModel uses internal stuff that doesnt have
to be set at that time of the toString() call
so debug statements don't work and generate nullpointers.

johan



On 9/21/07, Jan Kriesten <ja...@renitence.de> wrote:
>
>
> hi,
>
> there seems to be a change in the current trunk to
> StringResourceModel.toString() - which before returned the localized
> String.
>
> now it returns some 'useful' information like
> StringResourceModel[key:CONTENTTYPE:date.published.description
> ,default:null,params:]
>
>
> hmm.
>
> why was that changed?
>
> regards, --- jan.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>