[RF 4.2.0] org.richfaces.context.ExtendedPartialViewContextImpl processPartialExecutePhase
ensemien Apr 29, 2012 12:47 PMHello everyone,
i am working my project with RF 4.2.0 with JSF 2.1.2 , i can easily to edit and remove record , because i am doing like in showcase ( http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=dataTable&sample=dataTableEdit&skin=blueSky)
but i have problem in creating new record , here is my facelet
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:fn="http://java.sun.com/jsp/jstl/functions" > <link href="style.css" rel="stylesheet" type="text/css" /> <ui:composition template="templates/layout.xhtml"> <ui:define name="title">Gestion des victimes</ui:define> <ui:define name="menu"> <ui:include src="leftMenu.xhtml"></ui:include> </ui:define> <ui:define name="content"> <a4j:status onstart="#{rich:component('statPane')}.show()" onstop="#{rich:component('statPane')}.hide()" /> <a4j:commandLink styleClass="no-decor" render="addGrid" execute="@this" oncomplete="#{rich:component('addVPane')}.show()"> <h:graphicImage value="addPerson.gif" alt="add" title="Add" /> </a4j:commandLink> <rich:panel header="Gestion des victimes " style="width:120%"> <h:form id="myform"> <rich:messages /> <rich:dataTable id="table" value="#{victimeBean.victimeList}" var="victime" rows="5" rendered="true"> <f:facet name="noData"> Nothing found </f:facet> <rich:column> <f:facet name="header">ID</f:facet> <h:outputText value="#{victime.victimeId}" /> </rich:column> <rich:column> <f:facet name="header">Nom</f:facet> <h:outputText value="#{victime.victimeNom} " /> </rich:column> <rich:column> <f:facet name="header">Prenom</f:facet> <h:outputText value="#{victime.victimePrenom}" /> </rich:column> // CODE OMITTED <rich:column> <a4j:commandLink styleClass="no-decor" execute="@this" render="detailsPane" oncomplete="#{rich:component('detailsPane')}.show()"> <h:graphicImage value="ad.png" alt="details" title="Details" /> <f:setPropertyActionListener target="#{victimeBean.victime}" value="#{victime}" /> <a4j:param value="#{victime.victimeId}" assignTo="#{victimeBean.currentVictimeIndex}" /> </a4j:commandLink> <a4j:commandLink styleClass="no-decor" render="editGrid" execute="@this" oncomplete="#{rich:component('editPane')}.show()"> <h:graphicImage value="edit.gif" alt="edit" title="Edit" /> <f:setPropertyActionListener target="#{victimeBean.victime}" value="#{victime}" /> <a4j:param value="#{victime.victimeId}" assignTo="#{victimeBean.currentVictimeIndex}" /> </a4j:commandLink> <a4j:commandLink styleClass="no-decor" execute="@this" render="@none" oncomplete="#{rich:component('confirmPane')}.show()"> <h:graphicImage value="delete.gif" alt="delete" title="Delete"/> <a4j:param value="#{victime.victimeId}" assignTo="#{victimeBean.currentVictimeIndex}" /> </a4j:commandLink> </rich:column> <f:facet name="footer"> <rich:dataScroller> <f:facet name="first">First</f:facet> <f:facet name="first_disabled">First</f:facet> <f:facet name="last">Last</f:facet> <f:facet name="last_disabled">Last</f:facet> <f:facet name="next">Next</f:facet> <f:facet name="next_disabled">Next</f:facet> <f:facet name="previous">Prev</f:facet> <f:facet name="previous_disabled">Prev</f:facet> <f:facet name="fastForward" /> <f:facet name="fastForward_disabled" /> <f:facet name="fastRewind"/> <f:facet name="fastRewind_disabled" /> </rich:dataScroller> </f:facet> </rich:dataTable> <a4j:jsFunction name="remove" action="#{victimeBean.remove}" render="table" execute="@this" oncomplete="#{rich:component('confirmPane')}.hide();" /> <rich:popupPanel id="statPane" autosized="true"> <h:graphicImage value="ai.gif" alt="ai" /> Please wait... </rich:popupPanel> <rich:popupPanel id="editPane" header="Edit victime Details" left="450%" top="110%" autosized="true" domElementAttachment="parent"> <h:panelGrid columns="3" id="editGrid"> <rich:tabPanel switchType="client"> // CODE OMITTED </rich:tabPanel> </h:panelGrid> <a4j:commandButton value="Cancel" onclick="#{rich:component('editPane')}.hide(); return false;" /> <a4j:commandButton value="Terminer" action="#{victimeBean.update}" render="table, detailsPane" execute="editPane" oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('editPane')}.hide();}" /> </rich:popupPanel> <rich:popupPanel id="addVPane" header="Add new victime Details" domElementAttachment="parent" left="450%" top="110%" autosized="true"> <h:panelGrid columns="3" id="addGrid"> <rich:tabPanel switchType="client"> <rich:tab header="Etat civil"> <h:panelGrid columns="3"> <h:outputText value="Nom" /> <h:inputText value="#{victimeBean.victimeCree.victimeNom}" /> <h:panelGroup /> <h:outputText value="Prenom" /> <h:inputText value="#{victimeBean.victimeCree.victimePrenom}" /> <h:panelGroup /> <h:outputText value="Date naissance" /> <rich:calendar value="#{victimeBean.victimeCree.victimeDateBirth}" cellWidth="24px" cellHeight="22px" style="width:200px"> </rich:calendar> <h:panelGroup /> <h:outputText value="CIN" /> <h:inputText value="#{victimeBean.victimeCree.victimeCin}" /> <h:panelGroup /> </h:panelGrid> </rich:tab> </rich:tabPanel> </h:panelGrid> <a4j:commandButton value="Cancel" onclick="#{rich:component('newVPane')}.hide(); return false;" /> <a4j:commandButton value="Terminer" action="#{victimeBean.add}" render="table" execute="addVPane" oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('addVPane')}.hide();}" /> </rich:popupPanel> <rich:popupPanel id="confirmPane" autosized="true"> Are you sure you want to delete the row? <a4j:commandButton value="Cancel" onclick="#{rich:component('confirmPane')}.hide(); return false;" /> <a4j:commandButton value="Delete" onclick="remove(); return false;" /> </rich:popupPanel> </h:form> </rich:panel> </ui:define> </ui:composition> </ui:composition>
and the error :
avr. 29, 2012 4:46:42 PM org.richfaces.context.ExtendedPartialViewContextImpl processPartialExecutePhase Grave: null java.lang.IllegalArgumentException at org.richfaces.component.AbstractTogglePanel.getChildName(AbstractTogglePanel.java:490) at org.richfaces.component.AbstractTogglePanel.isActiveItem(AbstractTogglePanel.java:481) at org.richfaces.component.AbstractTogglePanel.processDecodes(AbstractTogglePanel.java:205) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176) at org.richfaces.context.PartialViewExecuteVisitCallback.visit(PartialViewExecuteVisitCallback.java:53) at org.richfaces.context.BaseExtendedVisitContext.invokeVisitCallback(BaseExtendedVisitContext.java:321) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1589) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIForm.visitTree(UIForm.java:344) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at org.richfaces.context.ExtendedPartialViewContextImpl.executeComponents(ExtendedPartialViewContextImpl.java:237) at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialExecutePhase(ExtendedPartialViewContextImpl.java:217) at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:196) at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:931) at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Unknown Source) avr. 29, 2012 4:46:42 PM org.richfaces.context.ExtendedPartialViewContextImpl processPartialExecutePhase Grave: null java.lang.IllegalArgumentException at org.richfaces.component.AbstractTogglePanel.getChildName(AbstractTogglePanel.java:490) at org.richfaces.component.AbstractTogglePanel.isActiveItem(AbstractTogglePanel.java:481) at org.richfaces.component.AbstractTogglePanel.processValidators(AbstractTogglePanel.java:259) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214) at org.richfaces.context.PartialViewExecuteVisitCallback.visit(PartialViewExecuteVisitCallback.java:55) at org.richfaces.context.BaseExtendedVisitContext.invokeVisitCallback(BaseExtendedVisitContext.java:321) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1589) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIForm.visitTree(UIForm.java:344) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at org.richfaces.context.ExtendedPartialViewContextImpl.executeComponents(ExtendedPartialViewContextImpl.java:237) at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialExecutePhase(ExtendedPartialViewContextImpl.java:217) at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:196) at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1170) at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Unknown Source) avr. 29, 2012 4:46:42 PM org.richfaces.context.ExtendedPartialViewContextImpl processPartialExecutePhase Grave: null java.lang.IllegalArgumentException at org.richfaces.component.AbstractTogglePanel.getChildName(AbstractTogglePanel.java:490) at org.richfaces.component.AbstractTogglePanel.isActiveItem(AbstractTogglePanel.java:481) at org.richfaces.component.AbstractTogglePanel.processUpdates(AbstractTogglePanel.java:296) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1242) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1242) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1242) at org.richfaces.context.PartialViewExecuteVisitCallback.visit(PartialViewExecuteVisitCallback.java:57) at org.richfaces.context.BaseExtendedVisitContext.invokeVisitCallback(BaseExtendedVisitContext.java:321) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1589) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIForm.visitTree(UIForm.java:344) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600) at org.richfaces.context.ExtendedPartialViewContextImpl.executeComponents(ExtendedPartialViewContextImpl.java:237) at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialExecutePhase(ExtendedPartialViewContextImpl.java:217) at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:196) at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:1229) at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:78) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Unknown Source)
please i need your help
-
Sans titre.png 35.8 KB