0

I have the following faces code:

<h:outputText value="Name: "/>
<!--<p:inplace id="inplace" editor="true" emptyLabel="N/A">-->
<p:inputText id="name" value="#{testBean.name}" label="Name"/>
<!--</p:inplace>-->

<p:commandButton value="Save" validateClient="true" ajax="false" update="form"/>

And TestBean is:

public class TestBean
{
    @Size(min=2,max=5)
    private String name;
}

In the way it presented above validation works, but as soon as I uncomment the lines to introduce inplace editor for this field validation does not happen.

Isn't inplace element just designed for validation or I'm doing anything wrong ? I feel it is due to the fact that inputText is actually invisible.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
ievgen
  • 1,081
  • 11
  • 20

1 Answers1

0

It appears to be related to not properly configured JSF implementation, in this case it is Mojarra 2.2.5. See this topic: Bean validation doesn't work with mojarra 2.2.4

Community
  • 1
  • 1
ievgen
  • 1,081
  • 11
  • 20