This content has been marked as final.
Show 1 reply
-
1. Re: <rich:togglePanel> says parent panel can't be found
jeffzzang Mar 28, 2008 4:01 PM (in response to jeffzzang)Figured it out. I'm using MyFaces 1.1.5 and the toggleControl cannot come before the togglePanel on the page. The workaround is this:
1) Create the toggleControl AFTER the togglePanel and set style="visibility:hidden"
2) Create the navigation controls (links, images, etc.) using normal JSF tags and set their onclick to:TogglePanelManager.toggleOnClient('body:add_edit_form:panel22','dateLocation');
The first parameter to toggleOnClient is the name of the toggle panel and the second parameter is the name of the facet.
This DOES NOT work if you fail to include the regular toggleControls because TogglePanelManager never gets created. Hope this helps someone.