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
sunny@99-chgsunny@99-chg 

To show the selected Radio button Even after Page Refresh

Hai All,

 

I have a problem with Radio Button.

I had Taken 2 HTML Radio buttons in apex page,Now i selected one Radio Button,Now i performed some action on the page and the page will get Refresh,After Refresh The Selected Radio button is not showing as selected.

How to make it as selected Even After Page Refresh....Suggest me...

Gunners_23Gunners_23

Rather doing whole page refresh you can make intended section to refresh after some action. For that you can use reRender

 

attribute on component ( button or commandlink ..etc) and refer the id of the component to be refreshed

sunny@99-chgsunny@99-chg

Hai Gunners Thanks for Your Reply

In that Page InputFile Is there,For that the total page is Refreshing.In that case The Radio Selected Is not there

Gunners_23Gunners_23

Yeah if that is the case you cannot use reRender. But if you refresh remaining data will be lost. May be passing the parameter

 

on click of it and getting the value in constructor. Not sure how far it works!! Can't think of any other way

sunny@99-chgsunny@99-chg

k gunner Thanks Any Way

DevelopersDevelopers

Hi Sunny,

 

Could you please share the screen of the VF Page.

 

If you want to refresh the particular portion of the page, we can use apex:outputpanel. 

 

on selecting the radio button, that particular outputpanel gets refreshed. rest of the page remains the same.

 

If it solves your problem, please mark it as solved. 

 

Regards,

Phanikumar