function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Radio button in pagination



The page wizard contains 4 page. in first page,When i select radio boutton and moved to next page ,Now i need to go previous page again,So i clicked previous button and return to first page but the Radiobutton have nt selected which i clicked...


Plz help..

Rahul SharmaRahul Sharma
You need to have same controller for that and use pagereference setRedirect as false, in that way the state will be maintained in between two pages.



It returns the previous page fine..but the radio button i selected have nt checked...




i used like this...


public PageReference step1() {

PageReference p = Page.page1;
return p;


public PageReference step2() { 

PageReference p = Page.page2;
return p;


There are so my radio buttonin page 1......i selected one and click next....Now the thing when i clicked previous button the selected radio button is to be selected by default......



only it returns the previous page ..