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/20 19:36:15 UTC

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

Author: mmarinschek
Date: Thu Oct 20 10:36:10 2005
New Revision: 326954

URL: http://svn.apache.org/viewcvs?rev=326954&view=rev
Log:
made CollapsiblePanelHeader fully configurable via a facet

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=326954&r1=326953&r2=326954&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/collapsiblePanel.jsp (original)
+++ myfaces/examples/trunk/simple/collapsiblePanel.jsp Thu Oct 20 10:36:10 2005
@@ -31,7 +31,25 @@
     <t:saveState value="#{collapsiblePanelBean}"/>
 
     <h:form>
-        <t:collapsiblePanel id="test" collapsed="#{collapsiblePanelBean.collapsed}" value="testTitle">
+
+        <t:collapsiblePanel id="test1" collapsed="#{collapsiblePanelBean.collapsed}" value="testTitle">
+            <h:panelGrid>
+                <h:outputText value="#{collapsiblePanelBean.firstName}"/>
+                <h:inputText value="#{collapsiblePanelBean.secondName}"/>
+                <t:inputCalendar value="#{collapsiblePanelBean.birthDate}" renderAsPopup="true"/>
+            </h:panelGrid>
+        </t:collapsiblePanel>
+
+        <t:collapsiblePanel id="test2" collapsed="#{collapsiblePanelBean.collapsed}" value="testTitle">
+            <f:facet name="header">
+                <t:div style="width:500px;background-color:#CCCCCC;">
+                    <h:outputText value="Person"/>
+                    <h:commandLink immediate="true" id="ToggleCollapsed">
+                        <h:outputText value="> Details" rendered="#{collapsed}"/>
+                        <h:outputText value="v Overview" rendered="#{!collapsed}"/>
+                    </h:commandLink>
+                </t:div>
+            </f:facet>
             <f:facet name="closedContent">
                 <h:panelGroup>
                     <h:outputText value="#{collapsiblePanelBean.firstName}"/>