Hi MSantos, I have similar problem. I want to localize a string inside a class, but I think your approach is not the good solution. I will look around but If someone has any alternatives please say...
Tnx. El lun, 06-09-2010 a las 06:00 -0700, msantos escribió: > Hello there. > > I am using the StringResourceModel to get from the *.properties file strings > to the pages of my web app. and it is working fine. > > For instance: > > StringResourceModel emailLabelModel = new StringResourceModel("emailLabel", > null); > emailLabel = new Label("emailLabel", emailLabelModel); > > But when i need string from the file on the fly, not on the rendering fase, > it raise an exception: > > StringResourceModel resultadoMsgModel = new StringResourceModel("msgResult", > null); > resultadoMsgModel.getString(); > > java.util.MissingResourceException: Unable to find property: 'msgResult' > > Someone can explain why it happens and how can i get it work? > > Thanks a lot --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org