thanks igor,
I tried with the simple attribute modifier, but it does nothing to the
width. I've modified the color in order to test it, and it worked fine with
it, but no modifications on the width....
chris
On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
On 6/23/07, Christian Alejandro Marquez Grabia <[EMAIL PROTECTED]> wrote:
>
> Hi everyone, I'm kinda new to wicket and I'm trying to get closer to it
> =) here comes the question...
>
> I was wondering if there is a way to set the width of the columns for
> the DataTable when it's constructed as defining the columns element, I've
> seen the possibility of doing this with one of the Column class, but in the
> DataTable I have to link it with a Model, while the other one that contains
> the Location property does not provide a link to a model, at least I haven't
> found any...
>
> If someone knows how to set the width of the columns in this DataTables,
> i will appreciate it very much, if you don't, thank you for the time
> invested =)
>
> Once again, thank you for your time and attention =)
>
> Christian
there are a couple of ways. override datatable.newrowitem() and do
something lile:
newrowitem(..) { return super.newrowitem(..).add(new
SimpleAttributeModifler("style","100px;")) or if you want to do it on column
level let the column implement IStyledColumn(or something like that) which
is only in latest 1.3 snapshot
-igor
-------------------------------------------------------------------------
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