As far as I remember, you need to call the proprty 'header'

header = Sidebar Header!



Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Aug 4, 2009 at 5:14 PM, Robin Sander <robin.san...@gmx.net> wrote:

>
> Hello,
>
> I'm trying to add internationalization to my wicket application using
> Wicket 1.4 final.
> In order to customize labels I don't use wicket:message but use Label
> subclasses.
>
> So, both the Wiki page "General i18n in Wicket" an Wicket in Action state
> that I may define
> a property file for a page, say Index.properties and define any label
> resource in this file.
>
> So far so good, it seems to work as long as I don't have a label nested in
> a panel or in a form!
> Say I have a page Index and a panel Sidebar like this:
>
> public class Sidebar extends Panel {
>        public Sidebar(final String id) {
>                super(id);
>                add(new Label("header", new ResourceModel("header")));
>                ...
>       }
> }
>
> public class Index extends WebPage {
>        public Index() {
>                super();
>                add(new Sidebar("sidebar"));
>       }
> }
>
> Now, if I define
>
> sidebar.header = Sidebar Header!
>
> in a file 'Index.properties' a MissingResourceException is thrown.
> Does anybody know how to do it right?
>
> regards,
>
> Robin.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to