1 Reply Latest reply: May 3, 2012 7:02 AM by omar elassri RSS

    [RF 4.2.0] org.richfaces.context.ExtendedPartialViewContextImpl processPartialExecutePhase

    omar elassri Newbie

      Hello 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

        • 1. Re: [RF 4.2.0] org.richfaces.context.ExtendedPartialViewContextImpl processPartialExecutePhase
          omar elassri Newbie

          this code works fine

           

          <!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="header">Header</ui:define>

           

                  <ui:define name="title">Victime Gestion</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()" />

                 

                 

                              

                               

                                  

                                 

                      

                      

                  <rich:panel header="Gestion des victimes " style="width:110%">

           

                          <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>

           

                          <h:form id="myform">

                        

                     

                      

                      

                      

                      

                          <rich:dataTable id="table" value="#{victimeBean.victimeList}"

                              var="victime" rows="4" 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 filterValue="#{victimeFiltringBean.matriculeFilter}"

                                  filterExpression="#{fn:containsIgnoreCase(victime.victimeMatricule,victimeFiltringBean.matriculeFilter)}">

                                  <f:facet name="header">

                                      <h:panelGroup>

                                          <h:outputText value="Matricule " />

                                          <br />

                                          <h:inputText value="#{victimeFiltringBean.matriculeFilter}"

                                              size="10">

                                              <a4j:ajax event="blur" render="table@body" execute="@this" />

                                          </h:inputText>

                                      </h:panelGroup>

                                  </f:facet>

                                  <h:outputText value="#{victime.victimeMatricule}" />

                              </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>

                              <rich:column>

                                  <f:facet name="header">Salaire annuel</f:facet>

                                  <h:outputText value="#{victime.victimeSalaireAnnuel}" />

                              </rich:column>

              

                               <rich:column>

                                  <f:facet name="header">IPP reel</f:facet>

                                  <h:outputText value="#{victime.victimeIppReel}" />

                              </rich:column>

                              <rich:column>

                                  <f:facet name="header">IPP util</f:facet>

                                  <h:outputText value="#{victime.victimeIppUtil}" />

                              </rich:column>

                              <rich:column>

                                  <f:facet name="header">Ayants droit</f:facet>

                                  <h:outputText value="#{victime.victimeNombreAyantsDroit}" />

                              </rich:column>

           

           

                              <rich:column>

                                  <f:facet name="header">Date Accident</f:facet>

                                  <h:outputText value="#{victime.victimeDateAccident}" />

                              </rich:column>

                             

                              <rich:column>

                                  <f:facet name="header">Date guerison</f:facet>

                                  <h:outputText value="#{victime.victimeDateGuerison}" />

                              </rich:column>

                            

                             

                              <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="detailsPane" header="victime Details"

                                  left="450%" top="120%" autosized="true"

                                  domElementAttachment="parent">

           

                                  <rich:tabPanel switchType="client">

           

           

                                      <rich:tab header="Etat civil">

                                          <h:panelGrid columns="3">

                                              <h:outputText value="CIN :" />

                                              <h:outputText value="#{victimeBean.victime.victimeCin}" />

                                              <h:panelGroup />

                                              <h:outputText value="Date naissance :" />

                                              <h:outputText value="#{victimeBean.victime.victimeDateBirth}" />

                                              <h:panelGroup />

                                          </h:panelGrid>

                                      </rich:tab>

           

           

                                      <rich:tab header="Adresse">

                                          <h:panelGrid columns="3">

                                              <h:outputText value="Rue :" />

                                              <h:outputText value="#{victimeBean.victime.victimeAdresse.rue}" />

                                              <h:panelGroup />

                                              <h:outputText value="Quartier :" />

                                              <h:outputText

                                                  value="#{victimeBean.victime.victimeAdresse.quartier}" />

                                              <h:panelGroup />

                                              <h:outputText value="Ville :" />

                                              <h:outputText

                                                  value="#{victimeBean.victime.victimeAdresse.ville}" />

                                              <h:panelGroup />

                                          </h:panelGrid>

                                      </rich:tab>

           

                                      <rich:tab header="Contacts">

                                          <h:panelGrid columns="3">

           

                                              <h:outputText value="Phone :" />

                                              <h:outputText

                                                  value="#{victimeBean.victime.victimeAdresse.phone}" />

                                              <h:panelGroup />

                                              <h:outputText value="Email :" />

                                              <h:outputText

                                                  value="#{victimeBean.victime.victimeAdresse.email}" />

                                          </h:panelGrid>

                                      </rich:tab> 

           

                                      <rich:tab header="Ayants droit">

                                          

                                              <rich:dataTable id="tableH" value="#{victimeBean.heritierList}"

                                                  var="heritier" rows="4" rendered="true">

           

                                                  <f:facet name="noData">

                                                      Nothing found

                                                       </f:facet>

             

                                                  <rich:column>

                                                      <f:facet name="header">Id</f:facet>

                                                      <h:outputText value="#{heritier.heritierId}  " />

                                                  </rich:column>

           

                                                  <rich:column>

                                                      <f:facet name="header">Nom</f:facet>

                                                      <h:outputText value="#{heritier.heritierNom}  " />

                                                  </rich:column>

                                                  <rich:column>

                                                      <f:facet name="header">Prenom</f:facet>

                                                      <h:outputText value="#{heritier.heritierPrenom}" />

                                                  </rich:column>

                                          

           

                                                  <rich:column>

                                                      <f:facet name="header">Statut</f:facet>

                                                      <h:outputText value="#{heritier.heritierStatut}" />

                                                  </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>

           

                                      

                                      </rich:tab>

           

           

           

           

                                  </rich:tabPanel>

           

           

                                  <a4j:commandButton value="Cancel"

                                      onclick="#{rich:component('detailsPane')}.hide(); return false;" />

           

           

                              </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">

           

           

                                          <rich:tab header="Etat civil">

                                              <h:panelGrid columns="3">

                                                  <h:outputText value="Nom" />

                                                  <h:inputText value="#{victimeBean.victime.victimeNom}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Prenom" />

                                                  <h:inputText value="#{victimeBean.victime.victimePrenom}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Date naissance" />

                                                  <rich:calendar value="#{victimeBean.victime.victimeDateBirth}"

                                                      cellWidth="24px" cellHeight="22px" style="width:200px">

                                                  </rich:calendar>

                                                  <h:panelGroup />

                                                  <h:outputText value="CIN" />

                                                  <h:inputText value="#{victimeBean.victime.victimeCin}" />

                                                  <h:panelGroup />

                                              </h:panelGrid>

                                          </rich:tab>

           

           

                                          <rich:tab header="Taux IPP">

                                              <h:panelGrid columns="3">

                                                  <h:outputText value="Matricule" />

                                                  <h:inputText value="#{victimeBean.victime.victimeMatricule}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Salaire annuel" />

                                                  <h:inputText

                                                      value="#{victimeBean.victime.victimeSalaireAnnuel}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="IPP Réel" />

                                                  <h:inputText value="#{victimeBean.victime.victimeIppReel}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="IPP Util" />

                                                  <h:inputText value="#{victimeBean.victime.victimeIppUtil}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Date Accident" />

                                                  <rich:calendar

                                                      value="#{victimeBean.victime.victimeDateAccident}"

                                                      cellWidth="24px" cellHeight="22px" style="width:200px">

                                                  </rich:calendar>

                                                  <h:panelGroup />

                                                  <h:outputText value="Date guérison" />

                                                  <rich:calendar

                                                      value="#{victimeBean.victime.victimeDateGuerison}"

                                                      cellWidth="24px" cellHeight="22px" style="width:200px">

                                                  </rich:calendar>

                                                  <h:panelGroup />

                                                  <h:outputText value="Nbre Ayants droit" />

                                                  <h:inputText

                                                      value="#{victimeBean.victime.victimeNombreAyantsDroit}" />

                                                  <h:panelGroup />

                                              </h:panelGrid>

                                          </rich:tab>

           

                                          <rich:tab header="Contacts">

                                              <h:panelGrid columns="3">

                                                  <h:outputText value="Email" />

                                                  <h:inputText

                                                      value="#{victimeBean.victime.victimeAdresse.email}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Phone" />

                                                  <h:inputText

                                                      value="#{victimeBean.victime.victimeAdresse.phone}" />

                                                  <h:panelGroup />

                                              </h:panelGrid>

                                          </rich:tab>

           

                                          <rich:tab header="Adresse">

                                              <h:panelGrid columns="3">

                                                  <h:outputText value="Rue" />

                                                  <h:inputText value="#{victimeBean.victime.victimeAdresse.rue}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Quartier" />

                                                  <h:inputText

                                                      value="#{victimeBean.victime.victimeAdresse.quartier}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Ville" />

                                                  <h:inputText

                                                      value="#{victimeBean.victime.victimeAdresse.ville}" />

                                                  <h:panelGroup />

                                              </h:panelGrid>

                                          </rich:tab>

           

           

                                      </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"

                          left="450%" top="40%" width="450" height="550"   domElementAttachment="form">

           

                                <rich:messages />

                              <h:panelGrid id="addGrid">

           

                                  <rich:accordion switchType="client" width="400" height="465px"    >

                             

                                      <rich:accordionItem header="ETAT CIVIL"   >

             

                                          <h:panelGrid columns="3">

                                     

                                              <h:outputText value="Nom" />

                                              <h:inputText id ="nomvi" value="#{victimeBean.victimeCree.victimeNom}" required="true"

                                              requiredMessage="Champ Obligatoire" />

                                               <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:message for="nomvi" style="color:red" />

           

           

                                      </rich:accordionItem>

           

           

                                          <rich:accordionItem header="Adresse"   >

           

                                              <h:panelGrid columns="3">

                                                  <h:outputText value="Rue" />

                                                  <h:inputText value="#{victimeBean.victimeAdresse.rue}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Quartier" />

                                                  <h:inputText value="#{victimeBean.victimeAdresse.quartier}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Ville" />

                                                  <h:inputText value="#{victimeBean.victimeAdresse.ville}" />

                                                  <h:panelGroup />

                                              </h:panelGrid>

           

                                          </rich:accordionItem>

           

           

                                          <rich:accordionItem header="Contact">

           

                                              <h:panelGrid columns="3">

                                                  <h:outputText value="Telephone" />

                                                  <h:inputText value="#{victimeBean.victimeAdresse.phone}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Email" />

                                                  <h:inputText value="#{victimeBean.victimeAdresse.email}" />

                                                  <h:panelGroup />

                                              </h:panelGrid>

           

                                          </rich:accordionItem>

           

           

                                          <rich:accordionItem header="Taux IPP">

                                              <h:panelGrid columns="3">

                                                  <h:outputText value="Matricule" />

                                                  <h:inputText

                                                      value="#{victimeBean.victimeCree.victimeMatricule}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="Date guérison" />

                                                  <rich:calendar

                                                      value="#{victimeBean.victimeCree.victimeDateGuerison}"

                                                      cellWidth="24px" cellHeight="22px" style="width:200px">

                                                  </rich:calendar>

                                                  <h:panelGroup />

                                                  <h:outputText value="Salaire annuel" />

                                                  <h:inputText

                                                      value="#{victimeBean.victimeCree.victimeSalaireAnnuel}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="IPP Réel" />

                                                  <h:inputText value="#{victimeBean.victimeCree.victimeIppReel}" />

                                                  <h:panelGroup />

                                                  <h:outputText value="IPP Util" />

                                                  <h:inputText value="#{victimeBean.victimeCree.victimeIppUtil}" />

                                                  <h:panelGroup />

           

                                                  <h:outputText value="Nbre Ayants droit" />

                                                  <h:inputText

                                                      value="#{victimeBean.victimeCree.victimeNombreAyantsDroit}" />

                                                  <h:panelGroup />

           

                                              </h:panelGrid>

                                          </rich:accordionItem>

           

                                      </rich:accordion>

           

                                      <h:panelGrid columns="2">

                                              <a4j:commandButton value="Cancel"

                                                  onclick="#{rich:component('addVPane')}.hide(); return false;" />

           

                                              <a4j:commandButton value="Terminer" action="#{victimeBean.add}"

                                                  render="table, detailsPane" execute="addVPane"

                                                  oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('addVPane')}.hide();}" />

                                          </h:panelGrid>

           

           

                                 

           

           

           

                                  </h:panelGrid>

           

           

                             

           

           

                              </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>