• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

<h:dataTable column size problem

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In primefaces the tag <p:dataGrid has the attribute columns that creates a new row once the columns value has been reached.
I have the following code that needs to create 2 columns for each row using the jsf2 tag ><h:dataTable.
It works ok wen using primefaces tag ><p:dataGrid , but how do you do the same using jsf2 tag ><h:dataTable.



Mat
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mat Anthony wrote:Hi All,
In primefaces the tag <p:dataGrid has the attribute columns that creates a new row once the columns value has been reached.
I have the following code that needs to create 2 columns for each row using the jsf2 tag ><h:dataTable.
It works ok wen using primefaces tag ><p:dataGrid , but how do you do the same using jsf2 tag ><h:dataTable.



Mat



Hey Mat.

You want to create x columns dynamically?

Then maybe this? http://jsf-tables-tutorials-and-examples.blogspot.com/2010/06/how-to-create-table-with-dynamic_29.html

If you need further help please specify what JSF version you are using and also versions of other frameworks should you use them. I'm guessing JSF2 and in that case ui:fragment and ui:repeat comes to mind
 
grapes are vegan food pellets. Eat this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic