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/25 11:26:24 UTC

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

Author: mmarinschek
Date: Tue Oct 25 02:26:19 2005
New Revision: 328318

URL: http://svn.apache.org/viewcvs?rev=328318&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=328318&r1=328317&r2=328318&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/collapsiblePanel.jsp (original)
+++ myfaces/examples/trunk/simple/collapsiblePanel.jsp Tue Oct 25 02:26:19 2005
@@ -66,6 +66,33 @@
                 <t:inputCalendar value="#{collapsiblePanelBean.birthDate}" renderAsPopup="true"/>
             </h:panelGrid>
         </t:collapsiblePanel>
+
+        <t:collapsiblePanel id="test3" collapsed="#{collapsiblePanelBean.collapsed}" value="testTitle"
+                            collapsedVar="test2collapsed">
+            <f:facet name="header">
+                <t:div style="width:500px;background-color:#CCCCCC;">
+                    <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">
+                <h:panelGroup>
+                    <h:outputText value="#{collapsiblePanelBean.firstName}"/>
+                    <h:outputText value=" "/>
+                    <h:outputText value="#{collapsiblePanelBean.secondName}"/>
+                    <h:outputText value=", born on: "/>
+                    <h:outputText value="#{collapsiblePanelBean.birthDate}"/>
+                </h:panelGroup>
+            </f:facet>
+            <h:panelGrid>
+                <h:outputText value="#{collapsiblePanelBean.firstName}"/>
+                <h:inputText value="#{collapsiblePanelBean.secondName}"/>
+                <t:inputCalendar value="#{collapsiblePanelBean.birthDate}" renderAsPopup="true"/>
+            </h:panelGrid>
+        </t:collapsiblePanel>
     </h:form>
 
 </f:view>