4 Replies Latest reply on Oct 17, 2007 2:07 AM by Ralf

    toggleControl before togglePanel gives ID not found

    Ralf Newbie

      I have a working togglePanel.
      But now I want to put the control outside the panel, in my case before the panel. But this doesnt work, only if I put the control inside or behind the panel. So I guess this is because the panel is not rendered at the time the control is. Is there any solution?


      <rich:toggleControl for="form:toggleAdvancedSearchID" immediate="true" >
      <h:outputText value="#{ msg.global_advancedSearch}"></h:outputText>
      </rich:toggleControl>


      <rich:togglePanel id="toggleAdvancedSearchID" switchType="client" stateOrder="closed, display">

      <f:facet name="closed">
      <rich:spacer></rich:spacer>
      </f:facet>

      <f:facet name="display">
      <rich:panel styleClass="standardContainer">
      ....
      </f:facet>
      </rich:togglePanel>