Hi all, In my application I am showing a dataTable .The dataTable has 4 columns. I want that all the columns will take same width(i.e. each column will 25% width of the dataTable) irrespective of the data length. But I am not able to control that one beacuse <h:column> doesn't have width attribute. What is happening in my application is that the columns size is diffrent depending upon the length of the data.as example--
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Thanks for yours reply .Actually I am already using ColumnClasses,StyleClass to display the table with some style..
In the columnClasses i used a css style to set the data alignment for diffrent column.now if i add the width with that style then.in all other pages where i am using the same style they also set to the same width. but that pages may have more or less number of columns so the alignment getting wrong. for clarification i use the following css in columnClasses .leftAlign{ text-align :"left"; } .leftRight{ text-align :"right"; } now if i add width then all other pages are getting effected . now one solution may be to use diffrent style sheet with diffrent width as appropate.but is it good practice? as there will be repetation of the alignment ;only the width is changing..please suggest.
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
a bit of art, as a gift, the permaculture playing cards