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
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
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/
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
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
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();