Sorry, my bad. I didn't see the overriding of 'isTransparentResolver'. I didn't know that existed. Thanks a lot!
Marieke Vandamme wrote: > > Hello, > > Thanks for the answer, but that's not what I want. > As I specified in my first post: > I don't want to add a wicket:id to the body, because then I have to add > all components for my ChildPage's to that bodyComponent (that is on the > parent). > > Thanks again for any help! > > > igor.vaynberg wrote: >> >> add(new webmarkupcontainer("body") { istransparentresolver() { return >> true; } oncomponenttag(tag) { tag.put("id",foo); }}); >> >> <html><body wicket:id="body">...</body></html> >> >> -igor >> >> On Mon, Jun 29, 2009 at 10:47 PM, Marieke Vandamme<ma...@tvh.be> wrote: >>> >>> Can't anyone help me with my problem? >>> Many thanks in advance ! Marieke >>> >>> >>> Marieke Vandamme-2 wrote: >>>> >>>> Hello, >>>> >>>> I'm using the following setup with markup inheritance >>>> >>>> ParentPage.java extends WebPage >>>> ChildPage.java extends ParentPage.java >>>> >>>> In the constructor of my ParentPage I want the following: >>>> public Parent(String bodyId) >>>> >>>> Then when the html is written, this id should be added to the body-tag >>>> in >>>> the id-attribute. >>>> In this way, each ChildPage will have a different id-attribute in the >>>> body-tag, that will be used inside css. >>>> >>>> I tried to override the OnComponentTag in the ParentPage, but this >>>> function is never called. >>>> >>>> I don't want to add a wicket:id to the body, because then I have to add >>>> all components for my ChildPage's to that bodyComponent (that is on the >>>> parent). >>>> >>>> Can anyone help me out or give me any hint? Thanks a lot ! Marieke. >>>> **** DISCLAIMER **** >>>> http://www.tvh.be/newen/pages/emaildisclaimer.html >>>> http://www.tvh.be/newen/pages/emaildisclaimer.html >>>> >>>> "This message is delivered to all addressees subject to the conditions >>>> set forth in the attached disclaimer, which is an integral part of this >>>> message." >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/add-id-to-body-with-onComponentTag--tp24211496p24266407.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/add-id-to-body-with-onComponentTag--tp24211496p24266596.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org