Re: DataTable : Setting the Column with from Java ?

2010-02-05 Thread nino martinez wael
In my point of view. Thats prettier done/more clean with a dynamic css.. But there's some way for you to get there. regards Nino 2010/2/5 Ashika Umanga Umagiliya auma...@biggjapan.com Thanks for the tips, I found the solution: public void populateItem(ItemICellPopulatorE cellitem,

Re: DataTable : Setting the Column with from Java ?

2010-02-04 Thread Ashika Umanga Umagiliya
Hi nino, I just use table wicket:id=table cellspacing=0 width=100% class=grid to display my datatable. I dont want to change the CSS style for the class.I want the change the width of each Column ,according to the value read from XML. Something like: int colWidth=vcol.getColumnWidth();

Re: DataTable : Setting the Column with from Java ?

2010-02-04 Thread Ashika Umanga Umagiliya
Thanks for the tips, I found the solution: public void populateItem(ItemICellPopulatorE cellitem, String id, IModelE model) { cellitem.add(new SimpleAttributeModifier(style,width:+width+px)); } regards umanga nino martinez wael wrote: I susspect you should add

DataTable : Setting the Column with from Java ?

2010-02-03 Thread Ashika Umanga Umagiliya
Greetings, For my DataTable ,I create 'IColumn's using data from an XML file. In the code-snippet below, the 'vcol' instance has information about Column-title,bean property field,visible or not..etc. Now I want to set the column width using the same way.How can I change the CSS property from

Re: DataTable : Setting the Column with from Java ?

2010-02-03 Thread nino martinez wael
use a attribute modifier 2010/2/4 Ashika Umanga Umagiliya auma...@biggjapan.com Greetings, For my DataTable ,I create 'IColumn's using data from an XML file. In the code-snippet below, the 'vcol' instance has information about Column-title,bean property field,visible or not..etc. Now I

Re: DataTable : Setting the Column with from Java ?

2010-02-03 Thread Ashika Umanga Umagiliya
Hi nino, To which component I should add an attribute-modifier. In IColumn ,i should add the 'width' to the headers ,i assume. any tips to do this? nino martinez wael wrote: use a attribute modifier 2010/2/4 Ashika Umanga Umagiliya auma...@biggjapan.com Greetings, For my DataTable ,I

Re: DataTable : Setting the Column with from Java ?

2010-02-03 Thread nino martinez wael
I susspect you should add the attribute modifier to your LinkoutColumn telling what css class you want to use.. I would have to see the html aswell to help further.. 2010/2/4 Ashika Umanga Umagiliya auma...@biggjapan.com Hi nino, To which component I should add an attribute-modifier. In