if you want a lot of control over the markup then you should use the
dataview. datatable trades markup control for functionality - you get a lot
of functionality for very little setup. that said, you can still write your
own icolumn implementations that can set the width, etc, but it is less
flexible then the dataview where you have full control.

eg

class mypropcol extends propertycolumn {
 public Component getHeader(String componentId) {
     Component header=super.getHeader(componentId);
     header.add(new SimpleAttributeModifier("style","width:300px;"));
 }
}


-igor



On 4/19/07, craigdd <[EMAIL PROTECTED]> wrote:


I found the repeater examples in the examples download, that helps a
little
bit, but that still doesn't answer my question  as to how you would do
things like set the alignment to center on the test of the second column
of
my table.

When it comes down to it...should I be using DataView instead of
DataTable?

-Craig


craigdd wrote:
>
> Sorry, I keep asking what are probably simple questions regarding the
> DataTable.
>
> How do I utilize this component and still have access to format things
> such and the alignment / width of each column.
>
> By the way, is there any good example out there using DataTable /
> DataView, I don't see any in the normal wicket examples download.
>
> Thanks
> Craig
>

--
View this message in context:
http://www.nabble.com/DataTable-row-and-header-formatting-tf3610550.html#a10090175
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

Reply via email to