File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes value in rich:dataTable facet? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "value in rich:dataTable facet?" Watch "value in rich:dataTable facet?" New topic
Author

value in rich:dataTable facet?

bostian tov
Ranch Hand

Joined: Mar 11, 2010
Posts: 32
Why ins't value in datatable facet shown - #{subList.msisdnPK.msisdn}?



Outside of that facet value #{subList.msisdnPK.msisdn} is shown normaly...

Vadym Baranenko
Greenhorn

Joined: Oct 06, 2010
Posts: 18
Correct my if I wrong, but subList in your code is an iterator for your data, but header in your teble should contain names of the columns, not data. So, you don't meed it in #{subList.msisdnPK.msisdn} in your header, use it only on the body of the table.
bostian tov
Ranch Hand

Joined: Mar 11, 2010
Posts: 32
Yes the thing is that i have 2 rows in header... in 1.row i need some data, so if anyone know how to do that... because i didn't find any solution.
Vadym Baranenko
Greenhorn

Joined: Oct 06, 2010
Posts: 18
But the problem is than value of #{subList.msisdnPK.msisdn} changes while table fills with data. You should use "immutable" data, something like this "#{xxx..msisdnPK.msisdn} which will be a property of your bean.
bostian tov
Ranch Hand

Joined: Mar 11, 2010
Posts: 32
Well this data that i need is the same for all rows of table, but header is probably generated before iterator, so data is unavailable. I will then just create some bean property or something.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: value in rich:dataTable facet?
 
Similar Threads
Problem with headers in sorted rich:datatable with subtable
Header, Footer with dynamic data
Skinning issue in Richfaces 4 and JSF 2
h:dataTable and rich:toolTip
How to stop Richfaces replace <> with &lt; and &gt;