Error while perfoming Row Edit in p:dataTable
<p>I am trying to perform a row edit in primefaces databable. My problem is when I key in new value in  inputText in CellEditor 
and click edit (primefaces icon) onCellEdit method is calledsuccessfully but does not pick the newly value in the inputText it pick value that was initially in the datatable. What Am I doing wrong? I am using primefaces 3.5
Here in jsf code</p>

<pre><code>&lt;h:form id="form1"&gt;
        &lt;p:growl id="messages" showDetail="true"/&gt;
        &lt;p:panel header="Registered Devices" style="min-height: 400px;" id="paneldevices"&gt;
        &lt;p:dataTable  emptyMessage="No Device Registered"  editable="true"  widgetVar="deviceTable" id="idGrid" value="#{deviceMgdBean.devices}" var="item" &gt;
        &lt;p:ajax  event="rowEdit" listener="#{deviceMgdBean.onCellEdit()}" update=":form1:messages"/&gt;
        &lt;p:ajax event="rowEditCancel" listener="#{deviceMgdBean.onCancel}" update=":form1:messages" /&gt;
        &lt;p:column headerText="Options" style="width:50px"&gt;  
         &lt;p:rowEditor  /&gt;  
        &lt;/p:column&gt; 
        &lt;p:column&gt;
        &lt;f:facet name="header"&gt;
        &lt;h:outputText value="Device_name"/&gt;
        &lt;/f:facet&gt;
        &lt;p:cellEditor&gt;  
        &lt;f:facet name="output"&gt;  
       &lt;h:outputText value="#{item.device_name}"/&gt;
       &lt;/f:facet&gt;  
       &lt;f:facet name="input"&gt;  
      &lt;p:inputText value="#{item.device_name}"  style="width:80%"  /&gt;
      &lt;/f:facet&gt;  
       &lt;/p:cellEditor&gt;                                    
       &lt;/p:column&gt;
       &lt;/h:form&gt;
</code></pre>

<p>Here is my managed Bean</p>

<pre><code> @ManagedBean
    @ViewScoped
    public class DeviceMgdBean implements Serializable {
        public List&lt;Devices&gt; getDevices()
        {
            List&lt;Devices&gt; l=getDevdao().getDevices();//devices fetched from database

            return l;
        }
             public void onCellEdit(RowEditEvent event)
             {  
               Devices devo=(Devices) event.getObject();
               FacesMessage msg = new FacesMessage("Device Edit","Test:"+devo.getDeviceName());  
               FacesContext.getCurrentInstance().addMessage(null, msg);  
             }  

        public void onCancel(RowEditEvent event)
        {  
            FacesMessage msg = new FacesMessage("Item Cancelled");   
            FacesContext.getCurrentInstance().addMessage(null, msg); 
            Devices devo=(Devices) event.getObject();
        }



    }
    class Devices {
    private int device_id;
    private String device_name;
    //getter and setters

    }
</code></pre>