I am using primefaces inplace editor. (tried primefaces 3.2, 3.3, 3.4RC1, and 3.4 snapshot)
When form is submitted through non-ajax request, and some other required field in the form was not filled, then the page should reload and show the required message. But what actually happens is: Along with page-reload and requiredMessage, the inplace editor is already being shown. How to solve this problem?
Sample Code to reproduce the problem
<h:form prependId="false"> <p:inplace editor="true" widgetVar="X"> <p:inputTextarea value="#{smsAlertBean.alertText}" /> </p:inplace> </h:form> <h:form prependId="false"> <p:selectOneMenu required="true" requiredMessage="Please select"> <!-- your values --> </p:selectOneMenu> <p:commandButton value="Submit" action="#{smsAlertBean.dummyAction}" ajax="false" /> </h:form>
ajax="false"doprocess="@form" update="@form"