You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Anil Kommareddi <an...@effone.com> on 2007/04/30 22:58:05 UTC

panelAccordion/showDetail does not collapse/expand

Hi
 
I am using the 1.0-incubating version of trinidad with MyFaces 1.1.6. In the
following sample, the item does not collapse/expand when the link is clicked
on, unless the commented out line is uncommented. Am I doing something
incorrectly? 
 
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:tr="http://myfaces.apache.org/trinidad">
 <jsp:directive.page contentType="text/html;charset=utf-8"/>
 <f:view>
  <tr:document>
   <tr:form>

    <!-- <tr:panelAccordion />  -->

    <tr:panelAccordion discloseMany="true" discloseNone="true">
     <tr:showDetailItem text="Test"
disclosureListener="#{toggle.onDisclosure}">
      <tr:commandButton id="button" text="Test" action="action" />
     </tr:showDetailItem>
    </tr:panelAccordion>
   </tr:form>
  </tr:document>
 </f:view>
</jsp:root>

Thanks - Anil