Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

row selected index id (rich data table)  RSS feed

 
Cristian Boariu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have this rich data table:

From inside the data table i can play with #{row} to get the current selected row of the table.
I have a checkbox as a rich column and the user select it. When the user press a button like: Archive, the current selected row must be hidden using this js function:


The Question is: How can i take the row id from OUTSIDE the rich data table?
For instance at the click of the btn i want to hide that row:



BUT HERE, the #{row} is no longer available because it's outside the data table...

Any ideea?

Ps: Please note that i do not want to hide the row when selecting the checkbox (which is easy) but i must do it using this button...

Thanks in advance.


 
Akaine Harga
Ranch Hand
Posts: 99
Java MyEclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could pass the row variable to some managed bean attribute with a4j:actionparam on some action. Worked for me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!