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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 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é

Joined: Nov 24, 2005
Posts: 14687

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

Consider Paul's rocket mass heater.
subject: missing columnClasses in h:panelGrid
Similar Threads
Ajax status doesn't stop in IE8
Problem with Spring Web Flow
css problem, the table always show below the image, not next to it
JSF and CSS issues
height tag is not working correctly in 'body' element.