Hello,
is there a possibility to call a a4j:jsFunction at rowclick and to change the style of the clicked row at the same time?
I have something like this:
{code:xml}
<a4j:jsFunction name="selectLight" render="timerListe, createTimerButton" action="#{control.selectLight}">
<a4j:param name="param1" assignTo="#{control.selectedLightID}" />
</a4j:jsFunction>
<rich:dataTable value="#{control.lightList}" onrowclick="selectLight(#{licht['id'].integerValue})".......
{code}
This will call the js function as soon as I click on the row.
I also can do something like this:
{code:xml}
onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
{code}
but can I combine both?
Regards,
Hauke
you can call the functions of javascript more times in the attribute onrowclick, like this onrowclick="fun1();fun2();"