This content has been marked as final.
Show 1 reply
-
1. Re: clear selectedClass
hispeedsurfer Jan 29, 2008 10:32 AM (in response to hispeedsurfer)Not the best way, but one way..
<a:jsFunction name="clearRowSelection" data="#{reportDisplay.currentRowNumber}" oncomplete="clearRowSelectionDelegation(data)" immediate="true"/>
here the bean method where current is the selected entitypublic int getcurrentRowNumber(){ return resultList.indexOf(current); }
and the javascript functionfunction function clearRowSelectionDelegation(currentRow){ var row = document.getElementById('resultTableForm:shortQueryResult:n:' +currentRow); row.style.backgroundColor = '#FFFFFF'; row.style.color ='#000000'; }