You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/10/24 15:09:06 UTC

svn commit: r328058 - /myfaces/examples/trunk/simple/collapsiblePanel.jsp

Author: mmarinschek
Date: Mon Oct 24 06:09:01 2005
New Revision: 328058

URL: http://svn.apache.org/viewcvs?rev=328058&view=rev
Log:
improved Collapsible Panel

Modified:
    myfaces/examples/trunk/simple/collapsiblePanel.jsp

Modified: myfaces/examples/trunk/simple/collapsiblePanel.jsp
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/simple/collapsiblePanel.jsp?rev=328058&r1=328057&r2=328058&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/collapsiblePanel.jsp (original)
+++ myfaces/examples/trunk/simple/collapsiblePanel.jsp Mon Oct 24 06:09:01 2005
@@ -40,14 +40,15 @@
             </h:panelGrid>
         </t:collapsiblePanel>
 
-        <t:collapsiblePanel id="test2" value="testTitle" var="test2Title" collapsedVar="test2Collapsed">
+        <t:collapsiblePanel id="test2" collapsed="#{collapsiblePanelBean.collapsed}" value="testTitle"
+                            collapsedVar="test2collapsed">
             <f:facet name="header">
                 <t:div style="width:500px;background-color:#CCCCCC;">
-                    <h:outputText value="#{test2Title}"/>
-                    <h:commandLink immediate="true" id="ToggleCollapsed">
-                        <h:outputText value="> Details" rendered="#{test2Collapsed}"/>
-                        <h:outputText value="v Overview" rendered="#{!test2Collapsed}"/>
-                    </h:commandLink>
+                    <h:outputText value="Person"/>
+                    <t:headerLink immediate="true">
+                        <h:outputText value="> Details" rendered="#{test2collapsed}"/>
+                        <h:outputText value="v Overview" rendered="#{!test2collapsed}"/>
+                    </t:headerLink>
                 </t:div>
             </f:facet>
             <f:facet name="closedContent">