• Post Reply Bookmark Topic Watch Topic
  • New Topic

PanelGrid Colums are not alligned in same size

 
P Arunkumar
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi




in panel grid i kept 4 colums , first panel grid colums and second pangrid colums are not alligning properly. it wants to be like table

ex

networkdetails

A B C D
AVALUE BVALUE CVALUE DVALUE

A1 B1 C1 D1
A1VALUE B1VALUE C1VALUE D1VALUE

IT WANTS TO COME LIKE THIS, please help me to solve my issue

for me the result is comming like

A B C D
AVALUE BVALUE CVALUE DVALUE

A1 B1 C1 D1
A1VALUE B1VALUE C1VALUE D1VALUE


the second pannelgrid row colums are not comming in order like 1 panelgrid.



 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you are effectively generating is a pair of HTML TABLE elements. And, just as in HTML, the JSF equivalent auto-sizes columns.

I presume that you are using PrimeFaces, and I'm not that familiar with it, but the stock JSF h:dataTable tag has a columnClasses attribute that can be used to list a set of classes that regulate each column. If these classes include a width specification, you can get consistent widths by simply using the same list of columnClasses for both panelGrids.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!