1 Reply Latest reply on Sep 19, 2007 3:28 PM by Ray Santiago

    toggle panel control can not find parent

    Ray Santiago Newbie

       

      <div xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich"
       xmlns:webuijsf="http://www.sun.com/web/ui">
       <f:subview id="HeaderPanelF">
       <h:panelGrid>
       <h:panelGrid>
       <h:outputText value="Title"/>
       </h:panelGrid>
       <rich:togglePanel id="ahdrTogglePanel"
       switchType="client"
       initialState="closedState"
       stateOrder="closedState,openState">
       <f:facet name="closedState">
       <h:panelGrid>
       <f:facet name="header">
       <h:panelGrid>
       <h:outputText value="CLOSED"/>
       <rich:toggleControl id="toggleControl_openState"
       for="form1:ahdrTogglePanel" >
       <h:graphicImage url="resources/down.gif" />
       </rich:toggleControl>
       </h:panelGrid>
       </f:facet>
       </h:panelGrid>
       </f:facet>
      
       <f:facet name="openState">
       <h:panelGrid>
       <f:facet name="header">
       <h:panelGrid>
       <h:outputText value="OPENED"/>
       <rich:toggleControl id="toggleControl_closeState"
       for="form1:ahdrTogglePanel" >
       <h:graphicImage value="resources/up.gif"/>
       </rich:toggleControl>
       </h:panelGrid>
       </f:facet>
      
       <h:panelGrid>
       <h:panelGrid>
       <h:panelGrid>
       <h:outputText value="SOME STUFF"/>
       </h:panelGrid>
       </h:panelGrid>
       </h:panelGrid>
       </h:panelGrid>
       </f:facet>
       </rich:togglePanel>
       </h:panelGrid>
       </f:subview>
      


      I then use this page fragment in other pages via

      <jsp:directive.include file="HeaderPanelF.jspf"/>
      


      This toggle panel works fine if it is not in an f:subview ?

      But the toggleControl can not find the parent.