Primefaces how to trigger the blur event and update the data

1

I need a help with the Primefaces, I need in this event below that already is half way forward an example that I took of the own Primefaces more that later I will adapt to that I want, well it is an editable grid already working, of there you fill in the enrollment and it will call a method, in this method I will search the information, and fill in two more fields of the Datatable respectively, my question is, how do I get this line that I am editing and trigger with the blur event passing the enrollment I want search, and then have it update that same row with those two new fields filled in. It falls halfway on a project in the company, and I've never worked with Primefaces. So briefly what I need is that the blur blur works that already gets up to work already, but I do not know if it is the best way and with that I will have to get the registration that I typed and can get it in Java to be able to do the research of the Employee and pick up two information and fill in the Name and Shift in the code below.

<h:form id="form">
   <p:growl id="msgs" showDetail="true"/>

   <p:dataTable id="cars1" widgetVar="cars1" var="car" value="#{dtAddRowView.cars1}" editable="true" style="margin-bottom:20px">
       <f:facet name="header">
           Funcionários
       </f:facet>

       <p:ajax event="rowEdit" listener="#{dtAddRowView.onRowEdit}" update=":form:msgs" />
       <p:ajax event="rowEditCancel" listener="#{dtAddRowView.onRowCancel}" update=":form:msgs" />

       <p:column headerText="Matricula">
           <p:cellEditor>
               <f:facet name="output"><h:outputText value="#{car.id}" /></f:facet>
               <f:facet name="input">
               <p:inputText value="#{car.id}" style="width:100%" label="Matricula">
                    <p:ajax event="blur" listener="#{dtAddRowView.onRowSelect}" update="@form"/>
                </p:inputText>
               </f:facet>
           </p:cellEditor>
       </p:column>

       <p:column headerText="Nome">
           <p:cellEditor>
               <f:facet name="output"><h:outputText value="#{car.year}" /></f:facet>
               <f:facet name="input"><p:inputText value="#{car.year}" style="width:100%" label="Year" disabled="true"/></f:facet>
           </p:cellEditor>
       </p:column>

       <p:column headerText="Turno">
           <p:cellEditor>
               <f:facet name="output"><h:outputText value="#{car.brand}" /></f:facet>
               <f:facet name="input"><p:inputText value="#{car.brand}" style="width:100%" label="Year" disabled="true"/></f:facet>
           </p:cellEditor>
       </p:column>

       <p:column headerText="Transporte">
           <p:cellEditor>
               <f:facet name="output"><h:selectBooleanCheckbox value="#{car.soldState}" /></f:facet>
               <f:facet name="input"><p:selectBooleanCheckbox value="#{car.soldState}" style="width:100%" label="Year"/></f:facet>
           </p:cellEditor>
       </p:column>

       <p:column style="width:32px">
           <p:rowEditor />
       </p:column>
   </p:dataTable>

    <div class="ui-g">
        <div class="ui-g-12">
            <p:commandButton value="Novo Registro" styleClass="ui-priority-primary" process="@this" update=":form:msgs"
                             actionListener="#{dtAddRowView.onAddNew()}" oncomplete="PF('cars1').addRow();"/>
        </div>
    </div>

</h:form>
    
asked by anonymous 23.08.2018 / 04:19