You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Gwyn Evans <gw...@gmail.com> on 2007/10/11 17:07:51 UTC

Localizer warning...

I'm getting a Localizer warning - "Tried to retrieve a localized
string for a component that has not yet been added to the page...".

The odd thing is that this is triggered by a

  <wicket:message key="header.text">Text</wicket:message>

line in the markup and is appearing in the renderPage() phase.

The component is the page itself, so it's parent is null,
leading to the message, but it seems a bit odd - Anyone got any
comments?

One possibly related thing might be that I've added my own
BundleStringResourceLoader?  It does find the message correctly,
though...

/Gwyn


Re: Localizer warning...

Posted by Mark Sandori <ms...@gmail.com>.
See:

https://issues.apache.org/jira/browse/WICKET-990

On 10/11/07, Gwyn Evans <gw...@gmail.com> wrote:
>
> I'm getting a Localizer warning - "Tried to retrieve a localized
> string for a component that has not yet been added to the page...".
>
> The odd thing is that this is triggered by a
>
>   <wicket:message key="header.text">Text</wicket:message>
>
> line in the markup and is appearing in the renderPage() phase.
>
> The component is the page itself, so it's parent is null,
> leading to the message, but it seems a bit odd - Anyone got any
> comments?
>
> One possibly related thing might be that I've added my own
> BundleStringResourceLoader?  It does find the message correctly,
> though...
>
> /Gwyn
>
>

Re: Localizer warning...

Posted by Igor Vaynberg <ig...@gmail.com>.
are you using latest trunk?

-igor


On 10/11/07, Gwyn Evans <gw...@gmail.com> wrote:
>
> I'm getting a Localizer warning - "Tried to retrieve a localized
> string for a component that has not yet been added to the page...".
>
> The odd thing is that this is triggered by a
>
>   <wicket:message key="header.text">Text</wicket:message>
>
> line in the markup and is appearing in the renderPage() phase.
>
> The component is the page itself, so it's parent is null,
> leading to the message, but it seems a bit odd - Anyone got any
> comments?
>
> One possibly related thing might be that I've added my own
> BundleStringResourceLoader?  It does find the message correctly,
> though...
>
> /Gwyn
>
>