You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Alexandre Jaquet <a....@avintis.com> on 2006/07/10 09:20:42 UTC

dataTable rowOnClick execute a JSF action

Hi,

Does anybody knows how to execute a JSF action when user click on a row.
I found a not proper way and I'm looking for a simple.

Code used right now:
                
rowOnClick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:data:0:lnkEdit';document.forms['_idJsp0'].elements['selectCurrencyId'].value='#{row.id}';if(document.forms['_idJsp0'].onsubmit){var 
result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 
'undefined') || result ) 
{document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return 
false;"        

Thanks in advance.
Regards