title: Saving changed values from PrimeFaces inplace
body: <p>I Want to save the value of an inplace if it was changed.</p>
  
  <p>The methode employeeController.save() is called when I click on the save button. But how can I pass along the new and old value? I want to do this so I can know if the value was changed without asking the database.</p>
  
  <pre><code>&lt;h:panelGrid id="display" columns="2" cellpadding="4"  
                               style="width:300px;"  
                               styleClass="ui-widget-content"  
                               columnClasses="label, value"&gt;  
  
                      &lt;h:outputText value="ID:" /&gt;  
                      &lt;h:outputText id="ID" value="#{emp.id}" /&gt;  
  
                      &lt;h:outputText value="Voornaam:"/&gt;
                      &lt;p:inplace id="firstnam" editor="true"&gt;
                          &lt;p:ajax event="save" onsuccess="#{employeeController.saveName()}"&gt;
                          &lt;/p:ajax&gt;
                          &lt;p:inputText id ="firstName" value="#{emp.firstName}"  
                                       required="true" label="text"/&gt;
                      &lt;/p:inplace&gt;
  </code></pre>