Re: add id to body with onComponentTag?

2010-01-26 Thread kurtadam
Just making the example more clear: add(new WebMarkupContainer(bodyId) { @Override public boolean isTransparentResolver() { return true; } @Override protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag);

Re: add id to body with onComponentTag?

2009-06-30 Thread Marieke Vandamme
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:

Re: add id to body with onComponentTag?

2009-06-30 Thread Marieke Vandamme
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

Re: add id to body with onComponentTag?

2009-06-29 Thread Marieke Vandamme
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

Re: add id to body with onComponentTag?

2009-06-29 Thread Igor Vaynberg
add(new webmarkupcontainer(body) { istransparentresolver() { return true; } oncomponenttag(tag) { tag.put(id,foo); }}); htmlbody wicket:id=body.../body/html -igor On Mon, Jun 29, 2009 at 10:47 PM, Marieke Vandammema...@tvh.be wrote: Can't anyone help me with my problem? Many thanks in