title: Resetting value of p:inputText in p:inplace when DB constraint validation failed
body: <p>I have this code:</p>
  
  <pre><code>&lt;p:inplace id="staffno" editor="true"&gt;
                      &lt;p:ajax event="save" listener="#{staffbean.onSave}" update="staffnoInplace messages" /&gt;                    
                      &lt;p:inputText id="staffnoInplace" value="#{staffbean.vieweditStaff.staffno}"/&gt;                                                 
  &lt;/p:inplace&gt;  
  </code></pre>
  
  <p>In staffbean.onSave() I store this through JPA/Hibernate. In the case where its successful, I face no issues. It's stored in the DB. </p>
  
  <p>My problem has to do with the cases where Hibernate throws an exception due to DB constraints. In those cases, I would like to have the inplace to remain in editable state and NOT change the value. Currently, it fails on DB level but I still see the value changed on the UI object to the incorrect value. </p>