+ Start a Discussion
sfpsfp 

apex:inputSecret tag value is empty even assigned controller value also?

Hi All,

 I have used apex InputSecret tag in vf page. And assigned object field value, even its showing null value.

<apex:inputSecret value="{!inputValue}" id="theSecretInput"/>

value="" is null one I have open the vf page in browser. 

Please help this issue.

Kind Regards,
Mohan
Best Answer chosen by sfp
David ZhuDavid Zhu
You may miss redisplay attribute of inputsecret.

<apex:inputsecret value="{!inputValue}" redisplay= "true"/>

All Answers

David ZhuDavid Zhu
what if you change <apex:inputsecret> to <apex:inputtext>?
sfpsfp
Hi David, 

If I have changed inputtext the value displaying.
   

 
David ZhuDavid Zhu
You may miss redisplay attribute of inputsecret.

<apex:inputsecret value="{!inputValue}" redisplay= "true"/>
This was selected as the best answer
sfpsfp
Thank you very much :)