Excellent, thanks. I also posted a detailed Wiki explanation how to use the two together so hopefully more people will be trying this out soon.
Gili Juergen Donnerstag wrote:
inheritance and header contributors are both very new. But I think you found the solution already (patch provide). I'll check it as soon as possible and will add a test case for t as well. Juergen On 8/9/05, Gili <[EMAIL PROTECTED]> wrote:I think I found a bug in header contribution. It seems that when you mix markup inheritance with header contribution, it fails. Specifically, in MarkupHeaderContainer.java line 109 it reads: MarkupContainer parent = getParent(); if (parent instanceof IHeaderRenderer) { ((IHeaderRenderer)parent).renderHeadSections(this); } but at runtime I see that parent is actually of type MarkupInheritanceContainer which is why this fails. Basically what I'm trying to do is this... - Page2 Child1, Child2, Child3 extend Page Parent - Page Parent's markup contains a WebMarkupContainer used to do header contribution but it does not add this component on the Java end. - Pages Child1,2,3 then add the header contribution on the Java end. This way the child is able to inject header information into the Page while <wicket:extend> is used to modify the body of the page. So basically I'm trying to use markup inheritance together with header contribution so a child page can inject code into both the header and body of the parent page. I'm *so* close :) :) Juergen, what do you think? Is there an easy way to fix this or workaround the problem? Thanks, Gili-- http://www.desktopbeautifier.com/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
-- http://www.desktopbeautifier.com/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
