Error msg display for p:inplace tag

UI Components for JSF
Post Reply
rpattanaik@gmail.com
Posts: 1
Joined: 15 Sep 2021, 23:48

16 Sep 2021, 00:10

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;
I use the following Facelet code

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>
This displays fine. When enter a value outside the 1-31 range, I do get the error but the error message does not display. I see the following in the logs:

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?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests