Meaningless Drivel is fun!*
The moose likes JSF and the fly likes missing columnClasses in h:panelGrid    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "missing columnClasses in h:panelGrid    " Watch "missing columnClasses in h:panelGrid    " New topic
Author

missing columnClasses in h:panelGrid

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240


the output is


as we can see, only the first column "welcome...." has <td class="tdBorder">, the other two columns "logout", "Language" has not!!
why will this happens?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You should check panelGrid's columnClasses API : Comma-delimited list of CSS style classes that will be applied to the columns of this table. If the number of elements in this list is less than the number of columns specified in the "columns" attribute, no "class" attribute is output for each column greater than the number of elements in the list.
You have 3 columns, and only one element in columnClasses.


[My Blog]
All roads lead to JavaRanch
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
success!!
using

thannks!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: missing columnClasses in h:panelGrid