On 6/22/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> 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.
Yeah, that something we use a lot here as well.
Eelco
-------------------------------------------------------------------------
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