Re: Localizing title of ModalWindow

2007-11-02 Thread Matej Knopp
Sorry, that is just a typo. Will be fixed in a second.

-Matej

On 11/2/07, Per Newgro <[EMAIL PROTECTED]> wrote:
> Is it correct that the jira entry says it is fixed in beta4? Because we use
> beta4 and the title still needs a Model instead of an IModel.
>
> Cheers
> Per
>
> -
> 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]



Re: Localizing title of ModalWindow

2007-11-02 Thread Per Newgro
Is it correct that the jira entry says it is fixed in beta4? Because we use 
beta4 and the title still needs a Model instead of an IModel.

Cheers
Per

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Localizing title of ModalWindow

2007-08-16 Thread Tauren Mills
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]



Re: Localizing title of ModalWindow

2007-08-16 Thread Igor Vaynberg
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]
>
>


Localizing title of ModalWindow

2007-08-16 Thread Tauren Mills
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]