Thanks,
Added as https://issues.apache.org/jira/browse/WICKET-854
Tauren
On 8/16/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> setTitle(getString("editTitle"));
>
> but that method really should take an imodel, please add an rfe
>
> -igor
>
> On 8/16/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
> >
> > 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]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]