:
http://www.nabble.com/Page-title-when-using-markup-inheritance-tp15827853p15828280.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Page-title-when-using-markup-inheritance-tp15827853p15828280.html
Sent from the Wicket - User mailing list archive at Nabble.com
Sure there a dozens of ways todo this, mine is just one of them. Im
starting a new thread since it'll be more exposed then.
The idea is following:
Parent:
public class BasePage extends WebPage {
protected final String LINK_LABEL_ID = linkText;
protected final String LINK_ID = link;
this message in context:
http://www.nabble.com/Page-title-when-using-markup-inheritance-tp15827853p15828280.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
;
}
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Page-title-when-using-markup-inheritance
Answer below:
James Carman Wrote:
Couldn't you use a VelocityPanel to generate your markup and have it
parse the markup after it's generated to avoid the whole need to use
the right markup ids part? I was thinking about doing something like
this for generating dynamic editor
On 3/5/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
Answer below:
James Carman Wrote:
Couldn't you use a VelocityPanel to generate your markup and have it
parse the markup after it's generated to avoid the whole need to use
the right markup ids part? I
James Carman wrote:
On 3/5/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
Answer below:
James Carman Wrote:
Couldn't you use a VelocityPanel to generate your markup and have it
parse the markup after it's generated to avoid the whole need to use
the
I am using markup inheritance (wicket:child and wicket:extend)
and need to set the
page title from my subpage. I currently add a label in the base class
(BasePage.java)
and make it use an abstract method getTitle(), which is overridden in
the subclass
(SubPage.java). Has anybody found a
I do basically the same thing, but since the title does not change on my
pages I see no need to have a (dynamic) model for the property, plus I
just use the constructor to set it, which saves some loc. In other words:
public abstract class BasePage extends WebPage
{
// ...
public
]
--
View this message in context:
http://www.nabble.com/Page-title-when-using-markup-inheritance-tp15827853p15828280.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
On 3/4/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
I do basically the same thing, but since the title does not change on my
pages I see no need to have a (dynamic) model for the property, plus I
just use the constructor to set it, which saves some loc. In other words:
public abstract
;
}
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Page-title-when-using-markup-inheritance-tp15827853p15828280.html
Sent from the Wicket - User mailing list archive at Nabble.com
On 3/4/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
James Carman wrote:
The problem with this approach is that you're not able to localize the
title if you hard-code it. What I've done is actually specify a key
for my messages file and I use that. So, every page has to define its
James Carman wrote:
The problem with this approach is that you're not able to localize the
title if you hard-code it. What I've done is actually specify a key
for my messages file and I use that. So, every page has to define its
page.title key in its PageClass.properties file.
That's what I
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of James Carman
Sent: Tuesday, March 04, 2008 10:53 AM
To: users@wicket.apache.org
Subject: Re: Page title when using markup inheritance
On 3/4/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
James Carman wrote
://www.nabble.com/Page-title-when-using-markup-inheritance-tp15827853p15828280.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
17 matches
Mail list logo