Re: How to access wicket parent page wicket:message

2016-11-01 Thread Martin Grigorov
On Tue, Nov 1, 2016 at 10:06 AM, ganea iulia wrote: > Hello again, > > So I need to change the parent page markup? > Yes. > I was thinking if there was a way to not change anything in the parent > page... > > So my parent page html contains this markup: > [pageTitle] >

Re: How to access wicket parent page wicket:message

2016-11-01 Thread ganea iulia
Hello again, So I need to change the parent page markup? I was thinking if there was a way to not change anything in the parent page... So my parent page html contains this markup: [pageTitle] I need in my child pages, to be able to dinamically change the title. Until now, every child page had

Re: How to access wicket parent page wicket:message

2016-11-01 Thread Martin Grigorov
I'd expect Wicket to complain (i.e. throw an exception) that you have added a component in the Java code but there is no element for it in the HTML. You need to remove and add wicket:id="pageTitle" on the element. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

Re: How to access wicket parent page wicket:message

2016-11-01 Thread ganea iulia
Hello, Could you please provide an example? I have added the below line in my constructor, but nothing appears where the title should be. add(new Label("pageTitle", new ResourceModel("pageTitle", "my title"))); In the child .properties files I have left the pageTitle empty: pageTitle= In the

Re: How to access wicket parent page wicket:message

2016-11-01 Thread Martin Grigorov
Hi, You will need to use a Label component with ResourceModel instead of . Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Nov 1, 2016 at 9:02 AM, ganea iulia wrote: > [pageTitle] > > Hi, > I'm using wicket 7.5. > > I have a parent