no, you do not create many subclasses.

see defaultdatatable, how it adds toolbars you can also add arbitrary
toolbars. basically this is adding panels into a repeater which gives you
the ability to add 0-n panels.

alternatively you can add a panel but hide it by calling setvisible(false);
or overriding isvisible()

-igor


On 5/18/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote:


Thanks Igor. I'll take a look. With JSP/Templating  one writes if/else
within the view to change layout. With Wicket, does one have to write
separate pages (Java classes) for each? eg.
TableWithFilter/TableWithoutFilter cause there is no if/else within the
Wicket html.

Basically I'm trying to understand how to "think" in Wicket.

-- R


Igor Vaynberg wrote:

see datatable, and its defaultdatatable subclass for inspiration.

-igor


On 5/18/07, Ravindra Wankar < [EMAIL PROTECTED]> wrote:
>
>
> Our html tables optionally have a title, a help link, a filter for the
> table, pick columns capability, multiple item action (each row has a
> checkbox and you can perform a bulk action on multiple rows) and a
> legend at the bottom of a table (that explains symbols/color codes in
> the table).
>
> With JSP or a templating engine we are able to
>
> 1. write a common table layout page where we can write if/else blocks to
> conditionally include the filter, url etc depending on if it is
> available.
>
> 2. We can also change the layout using divs and css. eg we can decide
> what we want to border and what not.
>
> With Wicket, I'm having a hard time understanding how to do this. I
> think I need a TablePanel but what next?
>
> Thanks
> Ravi.
>
> -------------------------------------------------------------------------
>
> 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]://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

Reply via email to