Igor,
   It was a bug.

thanks

On Thu, May 27, 2010 at 12:32 PM, Igor Vaynberg <igor.vaynb...@gmail.com>wrote:

> how is the TituloReadOnlyModel  used?
>
> -igor
>
> On Thu, May 27, 2010 at 8:22 AM, Fernando Wermus
> <fernando.wer...@gmail.com> wrote:
> > I got this message,
> >
> > [Warning: String resource for 'Define el recorrido que harán' not found]
> >
> > where '*Define el recorrido que harán*' is the string I do want to show
> > instead of *[Warning: String resource for 'Define el recorrido que harán'
> > not found]*. It seems that wicket is trying to reevaluate the key twice.
> >
> > The model that resolves the string is,
> >
> > public abstract class TituloReadOnlyModel extends AbstractReadOnlyModel{
> > ...
> >       public Object getObject(){
> >             if (*someBoolean*){
> >
> >
> *Application.get().getResourceSettings().getLocalizer().getString("desafio.crear",
> > wrappingComponent(), "");*
> >             }else{
> >
> >
> *Application.get().getResourceSettings().getLocalizer().getString("recorrido.crear",
> > wrappingComponent(), "");*
> >             }
> >       }
> >       public abstract Component wrappingComponent();
> > }
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

Reply via email to