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>