I've often seen folk want what I see as "abstract" tags that can then
be implemented by subclasses. The way I've handled that for our
application is by creating an abstract component (say it's a page)
with div tags with appropriate wicket:ids.
public class BasePage extends WebPage
{
public BasePage()
{
add(buildFoo("foo"));
add(buildBar("bar"));
}
public abstract Panel buildFoo(String id);
public abstract Component buildBar(String id);
}
Then subclass appropriately.
On 6/21/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Yes. Markup inheritance is meant to go one-on-one with Java
> inheritance which is limited to single parents. If people feel a
> markup inheritance-like pattern would be useful, we could discuss it,
> but it has to be a different kind of concept.
>
> Eelco
>
>
> On 6/21/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > "natural" is an extremely subjective term. the core team does not entirely
> > think so. but there is nothing stopping you from writing tag handlers to do
> > exactly what you want.
> >
> > -igor
> >
> >
> >
> > On 6/21/07, rc.china <[EMAIL PROTECTED]> wrote:
> > >
> > > Panels and fragments are useful. As of page layout, however,
> > <wicket:extend>
> > > / <wicket:child> is more natual than Panels and fragments.
> > >
> > > Some possible solutions is:
> > > 1) use different tag values to differentiate:
> > > ...
> > > <wicket:child childid="1"/>
> > > ...
> > > <wicket:child childid="2"/>
> > > ...
> > > ==================
> > > ...
> > > <wicket:extend extendid="1">
> > > ...
> > > </wicket:extend>
> > > ...
> > > <wicket:extend extendid="2">
> > > ...
> > > </wicket:extend>
> > > ...
> > >
> > > 2)use <wicket:extendN> <wicket:childN> (N=1,2,3,...) instead of
> > > <wicket:extend> <wicket:child>
> > > ...
> > > <wicket:child1/>
> > > ...
> > > <wicket:child2/>
> > > ...
> > > ==================
> > > ...
> > > <wicket:extend1>
> > > ...
> > > </wicket:extend1>
> > > ...
> > > <wicket:extend2>
> > > ...
> > > </wicket:extend2>
> > > ...
> > > --
> > > View this message in context:
> > http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11245019
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > >
> > -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
--
Scott Swank
reformed mathematician
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user