Re: HeaderContributer for a title

2008-07-01 Thread Eyal Golan
Thanks John, That is a great way of doing it. On Tue, Jul 1, 2008 at 5:35 PM, John Krasnay [EMAIL PROTECTED] wrote: I like to do this in my base page: title wicket:id=titlefoo/title protected IModel getPageTitleModel() { return new ResourceModel(getClass().getSimpleName()); } add(new

HeaderContributer for a title

2008-07-01 Thread Eyal Golan
Hi, Is there a special header contributer for title/title ? -- Eyal Golan [EMAIL PROTECTED] 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

Re: HeaderContributer for a title

2008-07-01 Thread Martijn Dashorst
nope. just use: title wicket:id=title/title add(new Label(title, Hello, World!)); On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, Is there a special header contributer for title/title ? -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/

Re: HeaderContributer for a title

2008-07-01 Thread Eyal Golan
yeah, but what if I have a markup inheritance? I then must use wicket:head ... don't I ? On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: nope. just use: title wicket:id=title/title add(new Label(title, Hello, World!)); On Tue, Jul 1, 2008 at 2:28 PM, Eyal Golan

Re: HeaderContributer for a title

2008-07-01 Thread Martijn Dashorst
only if you define the title wicket:id=foo/title in your sub pages. Martijn On Tue, Jul 1, 2008 at 2:36 PM, Eyal Golan [EMAIL PROTECTED] wrote: yeah, but what if I have a markup inheritance? I then must use wicket:head ... don't I ? On Tue, Jul 1, 2008 at 3:34 PM, Martijn Dashorst [EMAIL

Re: HeaderContributer for a title

2008-07-01 Thread John Krasnay
I like to do this in my base page: title wicket:id=titlefoo/title protected IModel getPageTitleModel() { return new ResourceModel(getClass().getSimpleName()); } add(new Label(title, new AbstractReadOnlyModel() { public Object getObject() { return getPageTitleModel().getObject();