File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

missing columnClasses in h:panelGrid

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 245

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é

Joined: Nov 24, 2005
Posts: 14688

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: 245

I agree. Here's the link:
subject: missing columnClasses in h:panelGrid
It's not a secret anymore!