This content has been marked as final.
Show 2 replies
-
1. Re: extendedDataTable: onselectionchange no longer works aft
ilya_shaikovsky Dec 4, 2008 3:23 AM (in response to bisworks)using
<rich:extendedDataTable value="#{capitalsBean.capitals}" var="cap" id="table" width="580px" height="400px" sortMode="#{extendedTableBean.sortMode}" selectionMode="#{extendedTableBean.selectionMode}"> <a4j:support event="onselectionchange" oncomplete="alert(1);"></a4j:support>
Support fires the request every time on selection change for me, and after the refreshes - the same.
And B.t.w. I can't believe that you code can works at all before or after the request because you defined onselectionchange="#{event.onselectionchange}" on the table and uses the same event in the support. This is restricted. Support ignored in such cases if corresponding event attribute defined on the component. -
2. Re: extendedDataTable: onselectionchange no longer works aft
bisworks Dec 4, 2008 7:39 AM (in response to bisworks)Hi Ilya,
You are correct. Once I removed the onselectionchange="#{event.onselectionchange}" call it works fine now. I wonder why it works the first time.
Thank you for the prompt reply.
Regards,
-saurav