ways of doing markup Inheritance [WAS Re: Page title when using markup inheritance]

2008-03-05 Thread Nino Saturnino Martinez Vazquez Wael
: 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

Re: ways of doing markup Inheritance [WAS Re: Page title when using markup inheritance]

2008-03-05 Thread Nino Saturnino Martinez Vazquez Wael
] 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

ways of doing markup Inheritance [WAS Re: Page title when using markup inheritance]

2008-03-05 Thread Nino Saturnino Martinez Vazquez Wael
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;

Re: ways of doing markup Inheritance [WAS Re: Page title when using markup inheritance]

2008-03-05 Thread James Carman
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

Re: ways of doing markup Inheritance [WAS Re: Page title when using markup inheritance]

2008-03-05 Thread Nino Saturnino Martinez Vazquez Wael
; } } - 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

Re: ways of doing markup Inheritance [WAS Re: Page title when using markup inheritance]

2008-03-05 Thread Nino Saturnino Martinez Vazquez Wael
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

Re: ways of doing markup Inheritance [WAS Re: Page title when using markup inheritance]

2008-03-05 Thread James Carman
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

Re: ways of doing markup Inheritance [WAS Re: Page title when using markup inheritance]

2008-03-05 Thread Nino Saturnino Martinez Vazquez Wael
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

Page title when using markup inheritance

2008-03-04 Thread Kaspar Fischer
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

Re: Page title when using markup inheritance

2008-03-04 Thread Sebastiaan van Erk
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

Re: Page title when using markup inheritance

2008-03-04 Thread richardwilko
] -- 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

Re: Page title when using markup inheritance

2008-03-04 Thread James Carman
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

Re: Page title when using markup inheritance

2008-03-04 Thread Nino Saturnino Martinez Vazquez Wael
; } } - 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

Re: Page title when using markup inheritance

2008-03-04 Thread James Carman
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

Re: Page title when using markup inheritance

2008-03-04 Thread Sebastiaan van Erk
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

Re: Page title when using markup inheritance

2008-03-04 Thread James Carman
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

Re: Page title when using markup inheritance

2008-03-04 Thread Jonathan Locke
://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