• 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

row selected index id (rich data table)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Ranch Hand
Posts: 99
MyEclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic