We are using a TimePicker as follows:
Code: Select all
<pe:timePicker id="time" widgetVar="time" value="#{modelBean.initTime}" mode="popup" required="true" showOn="button" />
To be sure everything is correct in the form, I tried to put another required input and check if it's marked with the error class
Code: Select all
<pe:timePicker id="time" widgetVar="time" value="#{userConfigKeyMonthlyProcessInitComputationModelBean.initTime}" mode="popup" required="true" showOn="button" />
<p:inputText required="true"/>
Then I tried to check manually is the component is valid, and add the style class:
Code: Select all
<pe:timePicker id="time" widgetVar="time" value="#{userConfigKeyMonthlyProcessInitComputationModelBean.initTime}" mode="popup" required="true" showOn="button" styleClass="#{component.valid ? '' : 'ui-state-error'}"/>
Is that a bug? I'm doing something wrong?
Primefaces extensions version: 3.0
Primefaces version: 5.2
Thanks in advance