+ Start a Discussion

Keeping values populated within inputSecret field



I want to keep values entered within apex:inputSecret field if the action failed.


I am not making the variable as transient , still the value disappear if action fails.


So is there any work around for it.


Thank you.


this component is for typing passwords not to keep the values when an action fails......

transient field on Visualforce page that is needed only for the duration of a page request but its not the part of the view state...construct the url with repest to ur input values that needs to be filled when an error hits




string Url1 = 'https://' + ApexPages.currentPage().getHeaders().get('Host') + '/apex/NewAppointment?AId='+AppointmentId;
PageReference PageRef = new PageReference(Url1);
return Pageref;