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

Reply via email to