• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

Help with MyFaces dataTable in portlet

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have a question and need some help.

I am building a JSF portlet, and trying to use Appache MyFaces custom tags.

I need to use t ataTable, and t:columns tags to display a dynamic ListDataModel, since the number and content of columns will vary.
My code looks like this:

<t ataTable value="#{bean.userList}}" var="varuser" border="0" cellpadding="2" cellspacing="0" columnClasses="columnClass1" headerClass="headerClass" footerClass="footerClass" rowClasses="rowClass1" styleClass="dataTable" id="table1" width="100%" preserveDataModel="false">

<t:columns value="#{bean.columnDataModel}" var="column" id="columns1">
<f:facet name="header">
<h anelGroup>
<h utputText value="#{column} " />
</h anelGroup>
<h utputText value="#{bean.columnValue}" id="output" />
</t ataTable>

The problem is, the dataTable will only display the first row of the ListDataModel, although the data is all there. It seems that the page only reads the first row of the ListDataModel. Anybody has similar experience, or have some work around?

Thank you in advance.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic