You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thies Edeling <th...@rrm.net> on 2009/08/13 17:11:40 UTC
Extending two panels with combined markup
Hi all,
I have two panels, panel A & B where panel B extends panel A. When using
panel B but without giving it it's own markup file it defaults to using
A's markup.
Now I only want to define a different fragment for panel B but still
reuse all of A's markup, is this possible? The findMarkupStream method
is final and I didn't see any hooks on to provide a different lookup
strategy. Thanks
gr,
Thies
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Extending two panels with combined markup
Posted by Igor Vaynberg <ig...@gmail.com>.
create an abstract panel that contains A's markup with the exception
of the fragment. where the fragment goes add a wicket:child tag.
then have A and B extend this panel and have their markup look like:
<wicket:extend>
custom fragment
</wicket:extend>
-igor
On Thu, Aug 13, 2009 at 8:11 AM, Thies Edeling<th...@rrm.net> wrote:
> Hi all,
>
> I have two panels, panel A & B where panel B extends panel A. When using
> panel B but without giving it it's own markup file it defaults to using A's
> markup.
> Now I only want to define a different fragment for panel B but still reuse
> all of A's markup, is this possible? The findMarkupStream method is final
> and I didn't see any hooks on to provide a different lookup strategy. Thanks
>
> gr,
> Thies
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org