I have created set of pages that are linked through train. There are 4 pages in all. One of the pages has radio button group (several of them).
Say there are 5 radio groups. User can select one of 5 options for each radio group. After making the selection, when users goes to NEXT page and navigates back to original page, the selection is not being retained. I have set the name of the group for all 5 option for each radio group (using rb.setname function). The last choice in the group is the one that shows as selected when navigated back to the original page.
radio button 1: choice1 choice2 choice3 choice4 choice5
|radio button 2:||choice1||choice2||choice3||choice4||choice5|
|radio button 3:||choice1||choice2||choice3||choice4||choice5|
|radio button 4:||choice1||choice2||choice3||choice4||choice5|
|radio button 5:||choice1||choice2||choice3||choice4||choice5|
If user selected choice1, choice2, choice3, choice4 and choice5 for radio button 1, 2, 3, 4 and 5 respectively, when navigating back to this page after navigating out, all 5 radio buttons are showing choice5 as selected and not what was originally selected by user. In order to get around this, i created a transient variable in the underlying VO and updated it to the choice selected. But when navigating out, the values are being lost and when i come back to this page, none of what i set as selected value is there. It appears that the AM state is not being retained. I also tried appending the "&retainAM=Y" to the URL for each page that are defined a part of train setup. When doing that, I can't even navigate to all pages. It goes to page2 and then stays there and other pages become not navigable. I am at loss as to how to go about this. I need to retain the values of what user selected so I can mark those radio boxes as selected when i navigate to my page with radio buttons. I don't want to commit to database for this because user can always cancel out and not want to save. I'd really appreciate if someone has any advice as to how I can go about this.
Appreciate your help.