<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>
<jsp:directive.include file="HeaderPanelF.jspf"/>
I go this to work by changing
for="form1:ahdrTogglePanel" >
for="ahdrTogglePanel" >