I have a h:panelGroup in JSF page with input field for data selection:
<h:panelGroup>Date to change password</h:panelGroup>
<h:panelGroup>
<h:inputText value="#{AddAccountController.formMap['DATETOCHANGEPASSWD']}" autocomplete="off" >
<f:validateLength minimum="0" maximum="35"/>
</h:inputText>
</h:panelGroup>
The question is how I can integrate the calendar into the input menu. Something like this:
<h:panelGroup>Date to change password</h:panelGroup>
<h:panelGroup>
<h:inputText value="#{AddAccountController.formMap['DATETOCHANGEPASSWD']}" autocomplete="off" >
<p:calendar value="#{AddAccountController.date4}" pattern="MM/dd/yyyy HH:mm:ss" />
<f:validateLength minimum="0" maximum="35"/>
</h:inputText>
</h:panelGroup>
I tested the code but it’s not working. What is the proper way to use it into input field?
think you have to add two different field in from because this way it will not work in this way.