• 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

Dynamic columns at rich:scrollableDataTable

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there boys..

I need make a way to do a scrollableDataTable with Dynamic columns using richfaces just the version v3.1 !

Any idea ? Im tryn with scriptlet or jstl, but dont work.


ah, and sorry my english, i never was good with it..


Thanks anyway!

Robson
 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't understand your problem completely.

However, a few weeks back I faced a problem with datascroller when using dynamic columns inside the datatable.

Richfaces datascroller uses Ajax request for pagination. During ajax request your bean value may not be available hence some your condition for column display may go wrong.

my recommendation is to keep your managed bean in session scope to avoid this issue.
 
Greenhorn
Posts: 1
Tomcat Server Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Try using the below template, this will generate the dynamic rows and columns.

Each row is a list that has the cell data to be displayed.

<rich:ScrollableDataTable rowKeyVar="idx" id="table" value="#{bean.rowsList}" var="eachRow">
<rich:columns value="#{bean.columnsHeaderList}" var="eachColumn" sortable="false" index="index">
<<f:facet name="header" style="text-align: center;">
<h:OutputText value="#{eachColumn}" style="font-weight: bold;"/>
</f:facet>
<h:OutputText value="#{eachRow[index]}"/>
</rich:columns>
</rich:ScrollableDataTable>
reply
    Bookmark Topic Watch Topic
  • New Topic