jsf 2 - primefaces datatable rowEditor error -
i'm using jsf 2.2 , primefaces 4.0 mojarra 2.2.2 on tomcat server. i'm using p:datatable row editor, whenever try edit row following error when press "check" button save changes:
may 17, 2014 10:17:03 pm com.sun.faces.context.partialviewcontextimpl processpartial información: java.lang.numberformatexception: null java.lang.numberformatexception: null @ java.lang.integer.parseint(integer.java:454) @ java.lang.integer.parseint(integer.java:527) @ org.primefaces.component.datatable.datatable.queueevent(datatable.java:666) @ org.primefaces.behavior.ajax.ajaxbehaviorrenderer.decode(ajaxbehaviorrenderer.java:47) @ javax.faces.component.behavior.clientbehaviorbase.decode(clientbehaviorbase.java:132) @ org.primefaces.renderkit.corerenderer.decodebehaviors(corerenderer.java:486) @ org.primefaces.component.datatable.datatablerenderer.decode(datatablerenderer.java:64) @ javax.faces.component.uicomponentbase.decode(uicomponentbase.java:831) @ org.primefaces.component.api.uidata.processdecodes(uidata.java:246) @ com.sun.faces.context.partialviewcontextimpl$phaseawarevisitcallback.visit(partialviewcontextimpl.java:550) @ com.sun.faces.component.visit.partialvisitcontext.invokevisitcallback(partialvisitcontext.java:183) @ org.primefaces.component.api.uidata.visittree(uidata.java:692) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uiform.visittree(uiform.java:371) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uinamingcontainer.visittree(uinamingcontainer.java:174) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ com.sun.faces.context.partialviewcontextimpl.processcomponents(partialviewcontextimpl.java:399) @ com.sun.faces.context.partialviewcontextimpl.processpartial(partialviewcontextimpl.java:263) @ org.primefaces.context.primepartialviewcontext.processpartial(primepartialviewcontext.java:60) @ javax.faces.component.uiviewroot.processdecodes(uiviewroot.java:927) @ com.sun.faces.lifecycle.applyrequestvaluesphase.execute(applyrequestvaluesphase.java:78) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:198) @ javax.faces.webapp.facesservlet.service(facesservlet.java:646) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:51) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:222) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:123) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:502) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:100) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:953) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1041) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:603) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun(aprendpoint.java:2430) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.run(aprendpoint.java:2419) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:744) may 17, 2014 10:17:03 pm com.sun.faces.lifecycle.applyrequestvaluesphase execute advertencia: java.lang.numberformatexception: null javax.faces.facesexception: java.lang.numberformatexception: null @ com.sun.faces.context.partialviewcontextimpl.processpartial(partialviewcontextimpl.java:270) @ org.primefaces.context.primepartialviewcontext.processpartial(primepartialviewcontext.java:60) @ javax.faces.component.uiviewroot.processdecodes(uiviewroot.java:927) @ com.sun.faces.lifecycle.applyrequestvaluesphase.execute(applyrequestvaluesphase.java:78) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:198) @ javax.faces.webapp.facesservlet.service(facesservlet.java:646) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:51) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:222) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:123) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:502) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:100) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:953) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1041) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:603) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun(aprendpoint.java:2430) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.run(aprendpoint.java:2419) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:744) caused by: java.lang.numberformatexception: null @ java.lang.integer.parseint(integer.java:454) @ java.lang.integer.parseint(integer.java:527) @ org.primefaces.component.datatable.datatable.queueevent(datatable.java:666) @ org.primefaces.behavior.ajax.ajaxbehaviorrenderer.decode(ajaxbehaviorrenderer.java:47) @ javax.faces.component.behavior.clientbehaviorbase.decode(clientbehaviorbase.java:132) @ org.primefaces.renderkit.corerenderer.decodebehaviors(corerenderer.java:486) @ org.primefaces.component.datatable.datatablerenderer.decode(datatablerenderer.java:64) @ javax.faces.component.uicomponentbase.decode(uicomponentbase.java:831) @ org.primefaces.component.api.uidata.processdecodes(uidata.java:246) @ com.sun.faces.context.partialviewcontextimpl$phaseawarevisitcallback.visit(partialviewcontextimpl.java:550) @ com.sun.faces.component.visit.partialvisitcontext.invokevisitcallback(partialvisitcontext.java:183) @ org.primefaces.component.api.uidata.visittree(uidata.java:692) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uiform.visittree(uiform.java:371) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uinamingcontainer.visittree(uinamingcontainer.java:174) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ com.sun.faces.context.partialviewcontextimpl.processcomponents(partialviewcontextimpl.java:399) @ com.sun.faces.context.partialviewcontextimpl.processpartial(partialviewcontextimpl.java:263) ... 26 more may 17, 2014 10:17:03 pm com.sun.faces.context.ajaxexceptionhandlerimpl handlepartialresponseerror grave: java.lang.numberformatexception: null @ java.lang.integer.parseint(integer.java:454) @ java.lang.integer.parseint(integer.java:527) @ org.primefaces.component.datatable.datatable.queueevent(datatable.java:666) @ org.primefaces.behavior.ajax.ajaxbehaviorrenderer.decode(ajaxbehaviorrenderer.java:47) @ javax.faces.component.behavior.clientbehaviorbase.decode(clientbehaviorbase.java:132) @ org.primefaces.renderkit.corerenderer.decodebehaviors(corerenderer.java:486) @ org.primefaces.component.datatable.datatablerenderer.decode(datatablerenderer.java:64) @ javax.faces.component.uicomponentbase.decode(uicomponentbase.java:831) @ org.primefaces.component.api.uidata.processdecodes(uidata.java:246) @ com.sun.faces.context.partialviewcontextimpl$phaseawarevisitcallback.visit(partialviewcontextimpl.java:550) @ com.sun.faces.component.visit.partialvisitcontext.invokevisitcallback(partialvisitcontext.java:183) @ org.primefaces.component.api.uidata.visittree(uidata.java:692) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uiform.visittree(uiform.java:371) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uinamingcontainer.visittree(uinamingcontainer.java:174) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ javax.faces.component.uicomponent.visittree(uicomponent.java:1740) @ com.sun.faces.context.partialviewcontextimpl.processcomponents(partialviewcontextimpl.java:399) @ com.sun.faces.context.partialviewcontextimpl.processpartial(partialviewcontextimpl.java:263) @ org.primefaces.context.primepartialviewcontext.processpartial(primepartialviewcontext.java:60) @ javax.faces.component.uiviewroot.processdecodes(uiviewroot.java:927) @ com.sun.faces.lifecycle.applyrequestvaluesphase.execute(applyrequestvaluesphase.java:78) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.lifecycleimpl.execute(lifecycleimpl.java:198) @ javax.faces.webapp.facesservlet.service(facesservlet.java:646) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:51) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:222) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:123) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:502) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:100) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:953) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1041) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:603) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun(aprendpoint.java:2430) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.run(aprendpoint.java:2419) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:744)
this part of xhtml page datatable:
<p:datatable id="nombreasociados" var="asociado" value="#{nuevainscripcionbacking.asociados}" editable="true" emptymessage="aún no ha agregado asociados"> <p:ajax event="rowedit" update=":#{cc.attrs.id}:formularionewins:distderechosasoc" partialsubmit="true"/> <p:column headertext="rut"> <p:celleditor> <f:facet name="output"> <h:outputtext value="#{asociado.rut}" /> </f:facet> <f:facet name="input"> <p:inputmask value="#{asociado.rut}" mask="99.999.999-*" style="width:100%"/> </f:facet> </p:celleditor> </p:column> <p:column headertext="nombres"> <p:celleditor> <f:facet name="output"> <h:outputtext value="#{asociado.nombre}" /> </f:facet> <f:facet name="input"> <h:inputtext value="#{asociado.nombre}" style="width:100%"/> </f:facet> </p:celleditor> </p:column> <p:column headertext="apellido paterno"> <p:celleditor> <f:facet name="output"> <h:outputtext value="#{asociado.apellidopaterno}"/> </f:facet> <f:facet name="input"> <h:inputtext value="#{asociado.apellidopaterno}" style="width:100%"/> </f:facet> </p:celleditor> </p:column> <p:column headertext="apellido materno"> <p:celleditor> <f:facet name="output"> <h:outputtext value="#{asociado.apellidomaterno}"/> </f:facet> <f:facet name="input"> <h:inputtext value="#{asociado.apellidomaterno}" style="width:100%"/> </f:facet> </p:celleditor> </p:column> <p:column headertext="rol predio"> <p:celleditor> <f:facet name="output"> <h:outputtext value="#{asociado.rolpredio}" /> </f:facet> <f:facet name="input"> <h:inputtext value="#{asociado.rolpredio}" style="width:100%"/> </f:facet> </p:celleditor> </p:column> <p:column style="width:6%" rendered="#{nuevainscripcionbacking.ventana==1 || nuevainscripcionbacking.ventana==3}"> <p:roweditor /> </p:column> <p:column style="width: 6%" rendered="#{nuevainscripcionbacking.ventana==1 || nuevainscripcionbacking.ventana==3}"> <p:commandlink id="eliminar" oncomplete="pf('dialogremoveasoc').show()" update=":#{cc.attrs.id}:formeliminarasociado" process="@this" partialsubmit="true" styleclass="ui-icon ui-icon-trash"> <f:setpropertyactionlistener value="#{asociado}" target="#{nuevainscripcionbacking.asociadoaeliminar}" /> </p:commandlink> </p:column> </p:datatable>
the last column delete row. works fine. in code above, list use iterate of objects "asociados", bean it's corresponding getters , setters. appreciated, in advance.
Comments
Post a Comment