Versions :
Aapche MyFaces 2.1.14
RichFaces 4.3.5
Issue :
I am facing very strange issue for tag.
As shown in below code , when from is renderd for the first time , bean.getPassword method should be called.
But it seems that this method is not getting called when form is rendered for the first time (before post back is made ). I have verified it by debugging.
Strangely , if I put the EL of the h:inputSecret elsewhere in the page , this method does get called
I am really getting stuck as why is this happening ? Has anybody came across such an issue ?
Code :
<h:form prependId="false">
<!-- check whether getter is called , it gets called in this case -->
#{bean.password}
<h:panelGrid columns="2">
<h:outputText value="User ID:"/>
<h:inputText value="#{bean.userId}"/>
<h:outputText value="Password:"/>
<h:inputSecret id="passwd1" name="passwd1" required="true" value="#{bean.password}"
requiredMessage="Password is required"/>
<h:panelGrid>
</h:form>