I'm using a panel based ModalWindow and want to localize the window
title. Without localization, I'd do this:
modalWindow.setTitle("Edit User");
The setTitle() method takes a string, not a resource. I'm not clear
how to make this work. I tried this:
modalWindow.setTitle((String)new ResourceModel("editTitle").getObject());
However, I then get this exception:
java.util.MissingResourceException: Unable to find resource: editTitle
at org.apache.wicket.Localizer.getString(Localizer.java:233)
at org.apache.wicket.Localizer.getString(Localizer.java:127)
at org.apache.wicket.model.ResourceModel.getObject(ResourceModel.java:75)
I've tried adding the property "editTitle" to all sorts of property
files in my project, but it just isn't finding it.
What should I be doing?
Tauren
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]