<p:ajax event="page" process not working in 3.0 M4
Posted: 03 Nov 2011, 16:52
I have a selectOneRadio inside a p:dataTable column as given below. If i use <p:ajax event="page" to process any selection of the option in radio button just before a page change, it is not getting reflected when i come back to the page.
That is
Step 1: Assume user is on page 1. He selects the first option in the selectOneRadio.
Step 2: User clicks on page 10 and the page 10 content is shown. (Now I expect due to the process attribute value the previous selection would get updated at server side)
Step 3: Again user clicks on page 1. Now the first option in the radio button IS NOT selected (The first option was selected in step 1)
Is this the desired behavior or I am wrong in my understanding?
That is
Step 1: Assume user is on page 1. He selects the first option in the selectOneRadio.
Step 2: User clicks on page 10 and the page 10 content is shown. (Now I expect due to the process attribute value the previous selection would get updated at server side)
Step 3: Again user clicks on page 1. Now the first option in the radio button IS NOT selected (The first option was selected in step 1)
Is this the desired behavior or I am wrong in my understanding?
Code: Select all
<p:dataTable id="qlist_tbl" widgetVar="qlisttbl" paginator="true" rows="1" value="#{freeExamDeliveryAction.examToDeliver.questionCollection}" var="q">
<p:ajax event="page" process="SelAnswerRadio"/>
<p:column>
<h:selectOneRadio styleClass="smallWidth" id="SelAnswerRadio" value="#{q.radioSelOption}" rendered="#{q.isRadio}" layout="pageDirection">
<f:selectItems value="#{q.populateSI()}"/>
</h:selectOneRadio>
</p:column>
</p:dataTable>