depends on how much control you need over the markup that is already in
datatable.html. if what is in there doesnt bother you you have a few options

border that you put a datatable in, or a panel that adds datatable as a
child

if you dont like what is inside datatable.html then you simply replace it
with whatever you want in your subclass.html.

-igor


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


Since my eventual objective is to have a Filter that when changed modifies
the contents of the table below, would it better to use a border or write my
own table markup? I will also be having elements like a legend etc.

Thanks
Ravi.

Igor Vaynberg wrote:

you cant do it like that. you would either have to make that title a
border that surrounds the datatable, or you have to copy and paste html from
defaultdatatable into yours.

-igor


On 5/20/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote:
>
>
> I decided to write a simple example demonstrating that I can add a Title
> to the DefaultTable which is shown "above" the toolbars of the DataTable
> without having to repeat the entire layout of the DataTable.html
>
> I wrote a new class DefaultTableWithTitle that extends DefaultDataTable
> and I wrote a DefaultTableWithTitle.html that adds the Title. Now how do
> I get the html of the DataTable to show below my title?
>
> Thanks
> Ravi.
>
> Igor Vaynberg wrote:
>
> 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
> > > Wicket-user@lists.sourceforge.net
> > > 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
> > Wicket-user@lists.sourceforge.net
> >
> > 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
> > Wicket-user@lists.sourceforge.net
> > 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
> Wicket-user@lists.sourceforge.net
> 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
> Wicket-user@lists.sourceforge.net
> 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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to