0 Replies Latest reply on Aug 4, 2011 5:03 PM by Ghostbrown KT

    probleme showing rich:popupPanel into ui:include

    Ghostbrown KT Newbie

      Hi all

      I've an issue for showing a rich:popupPanel into an ui:include.

      Someone can help me please!

       

      this is my code:

      the template when i include the code:

       

      <div class="post" >

      <a4j:outputPanel ajaxRendered="#{not empty pageViewIdList.includedPage}"  >

                          <h:outputText value="#{not empty pageViewIdList.includedPage}" id="current" />

                          <ui:include src="#{pageViewIdList.includedPage}" />

                      </a4j:outputPanel>

      </div>

       

      and the included page:

      <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:c="http://java.sun.com/jsp/jstl/core">

      <h:head></h:head>

      <h:form>

       

      <rich:dataTable value="#{antenneBean.listAntenne}" var="antenneCourant"

      iterationStatusVar="it" id="table" rows="15">

      <rich:column>

      <f:facet name="header">#</f:facet>#{it.index}

      </rich:column>

      <rich:column>

      <f:facet name="header">

      <h:outputText value="#{msg['legend.antenne']} " />

      </f:facet>

      <h:outputText value="#{antenneCourant.nom}" />                              

      </rich:column>

      <rich:column>

      <a4j:commandLink styleClass="no-decor" execute="@this"

      render="@none" oncomplete="#{rich:component('confirmPane')}.show()">

      <h:graphicImage value="/image/general/delete.gif" alt="delete" />

      </a4j:commandLink>

      <a4j:commandLink styleClass="no-decor" render="editGrid"

      execute="@this" oncomplete="#{rich:component('editPane')}.show()">

      <h:graphicImage value="/image/general/edit.gif" alt="edit"/>

      <f:setPropertyActionListener target="#{antenneBean.antenneCourant}"

      value="#{antennecourant}" />

      </a4j:commandLink>

      </rich:column>

      <f:facet name="footer">

      <rich:dataScroller  />

      </f:facet>

      </rich:dataTable>

       

      <a4j:jsFunction name="remove" action="#{antennebean.remove}"

      render="table" execute="@this"

      oncomplete="#{rich:component('confirmPane')}.hide();" />

       

      <rich:popupPanel id="statPane" autosized="true">

      <h:graphicImage value="/image/general/ai.gif" alt="ai" />

      Please wait...

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

       

      <rich:popupPanel header="Edit Car Details" id="editPane" domElementAttachment="parent" width="400" height="170">

      <h:panelGrid columns="3" id="editGrid">

      <h:outputText value="Nom" />

      <h:outputText value="#{antenneBean.antenneCourant.nom}" />                                        

      </h:panelGrid>                        

      </rich:popupPanel>

       

      </h:form>

      </ui:composition>

       

       

      I've impress that the javascript into the ui:include wasn't be executed.

      can Someone help me please!