Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 25466
180
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.
 
I didn't say it. I'm just telling you what this tiny ad said.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic