• Post Reply Bookmark Topic Watch Topic
  • New Topic

value in rich:dataTable facet?

 
bostian tov
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!