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

Win a copy of Android Security Essentials Live Lessons this week in the Android 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

I agree. Here's the link:
subject: missing columnClasses in h:panelGrid
Similar Threads
height tag is not working correctly in 'body' element.
JSF and CSS issues
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