• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

PanelGrid Colums are not alligned in same size

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
Saloon Keeper
Posts: 28665
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic