I am trying to use the p:inplace tag. I have this mapped to a bean variable 'dayOfMoth' annotated to have a value between 1-31
Code: Select all
@Max(31)
@Min(1)
private Integer dayOfMonth = 1;
Code: Select all
<p:panelGrid styleClass="panelGridCenter" columns="3">
<p:outputLabel >Day of Month</p:outputLabel>
<p:inplace id="aDay" editor="true">
<p:inputText value="#{configBean.dayOfMonth}"
required="true" label="text" />
</p:inplace>
<p:message id="msg1" for="aDay"/>
</p:panelGrid>
There are some unhandled FacesMessages, this means not every FacesMessage had a chance to be rendered.
These unhandled FacesMessages are:
- text: must be less than or equal to 31
How can code it so that the error message is displayed?
Thanks