The Wicket way is to use <wicket:child/> in MyPanel.html and
<wicket:extend>....</wicket:extend> in MyExtPanel.html
See the examples.

On Thu, Feb 24, 2011 at 7:05 PM, GOODWIN, MATTHEW (ATTCORP)
<mg0...@att.com>wrote:

> I would like to extend a custom panel that we have and add some
> additional components.
>
>
>
> Ex pseudocode:
>
>
>
> public class MyPanel extends Panel {
>
> // adding 2 components
>
> add(component a);
>
> add(component b);
>
> }
>
>
>
>
>
> public class MyExtPanel extends MyPanel {
>
> // add additional 2 components
>
> add(component c);
>
> add(component d);
>
> }
>
>
>
> I've copied the markup form MyPanel.html to MyExtPanel.html (and added
> the markup for the additional 2 components).  I'm getting the error:
> unable to find component hierarchy does not match.  I sort of think I
> understand why I'm getting the error but can someone explain the "wicket
> way" of basically extending a panel to add additional components?
>
>
>
> Thanks,
>
>
>
> Matt
>
>
>
>

Reply via email to