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/11/03 23:27:34 UTC
svn commit: r330657 - in /myfaces/examples/trunk/simple:
WEB-INF/examples-config.xml collapsiblePanel.jsp
Author: mmarinschek
Date: Thu Nov 3 14:27:30 2005
New Revision: 330657
URL: http://svn.apache.org/viewcvs?rev=330657&view=rev
Log:
fixes in collapsible panel bean
Modified:
myfaces/examples/trunk/simple/WEB-INF/examples-config.xml
myfaces/examples/trunk/simple/collapsiblePanel.jsp
Modified: myfaces/examples/trunk/simple/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/simple/WEB-INF/examples-config.xml?rev=330657&r1=330656&r2=330657&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/WEB-INF/examples-config.xml (original)
+++ myfaces/examples/trunk/simple/WEB-INF/examples-config.xml Thu Nov 3 14:27:30 2005
@@ -74,7 +74,19 @@
<!-- Managed Beans for collapsiblePanel.jsp -->
<managed-bean>
- <managed-bean-name>collapsiblePanelBean</managed-bean-name>
+ <managed-bean-name>firstCollapsiblePanelBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.collapsiblepanel.CollapsiblePanelBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>secondCollapsiblePanelBean</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.collapsiblepanel.CollapsiblePanelBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>thirdCollapsiblePanelBean</managed-bean-name>
<managed-bean-class>org.apache.myfaces.examples.collapsiblepanel.CollapsiblePanelBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
Modified: myfaces/examples/trunk/simple/collapsiblePanel.jsp
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/simple/collapsiblePanel.jsp?rev=330657&r1=330656&r2=330657&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/collapsiblePanel.jsp (original)
+++ myfaces/examples/trunk/simple/collapsiblePanel.jsp Thu Nov 3 14:27:30 2005
@@ -28,20 +28,22 @@
<f:view>
- <t:saveState value="#{collapsiblePanelBean}"/>
+ <t:saveState value="#{firstCollapsiblePanelBean}"/>
+ <t:saveState value="#{secondCollapsiblePanelBean}"/>
+ <t:saveState value="#{thirdCollapsiblePanelBean}"/>
<h:form id="form">
- <%--t:collapsiblePanel id="test1" collapsed="#{collapsiblePanelBean.collapsed}" value="testTitle">
+ <t:collapsiblePanel id="test1" value="#{firstCollapsiblePanelBean.collapsed}" title="testTitle">
<h:panelGrid>
- <h:outputText value="#{collapsiblePanelBean.firstName}"/>
- <h:inputText value="#{collapsiblePanelBean.surName}"/>
- <t:inputCalendar value="#{collapsiblePanelBean.birthDate}" renderAsPopup="true"/>
+ <h:outputText value="#{firstCollapsiblePanelBean.firstName}"/>
+ <h:inputText value="#{firstCollapsiblePanelBean.surName}"/>
+ <t:inputCalendar value="#{firstCollapsiblePanelBean.birthDate}" renderAsPopup="true"/>
</h:panelGrid>
</t:collapsiblePanel>
- <t:collapsiblePanel id="test2" collapsed="#{collapsiblePanelBean.collapsed}" value="testTitle"
- collapsedVar="test2collapsed">
+ <t:collapsiblePanel id="test2" value="#{secondCollapsiblePanelBean.collapsed}" title="testTitle"
+ var="test2collapsed">
<f:facet name="header">
<t:div style="width:500px;background-color:#CCCCCC;">
<h:outputText value="Person"/>
@@ -53,22 +55,22 @@
</f:facet>
<f:facet name="closedContent">
<h:panelGroup>
- <h:outputText value="#{collapsiblePanelBean.firstName}"/>
+ <h:outputText value="#{secondCollapsiblePanelBean.firstName}"/>
<h:outputText value=" "/>
- <h:outputText value="#{collapsiblePanelBean.surName}"/>
+ <h:outputText value="#{secondCollapsiblePanelBean.surName}"/>
<h:outputText value=", born on: "/>
- <h:outputText value="#{collapsiblePanelBean.birthDate}"/>
+ <h:outputText value="#{secondCollapsiblePanelBean.birthDate}"/>
</h:panelGroup>
</f:facet>
<h:panelGrid>
- <h:outputText value="#{collapsiblePanelBean.firstName}"/>
- <h:inputText value="#{collapsiblePanelBean.surName}"/>
- <t:inputCalendar value="#{collapsiblePanelBean.birthDate}" renderAsPopup="true"/>
+ <h:outputText value="#{secondCollapsiblePanelBean.firstName}"/>
+ <h:inputText value="#{secondCollapsiblePanelBean.surName}"/>
+ <t:inputCalendar value="#{secondCollapsiblePanelBean.birthDate}" renderAsPopup="true"/>
</h:panelGrid>
</t:collapsiblePanel>
- <t:collapsiblePanel id="test3" collapsed="#{collapsiblePanelBean.collapsed}" value="testTitle"
- collapsedVar="test2collapsed">
+ <t:collapsiblePanel id="test3" value="#{thirdCollapsiblePanelBean.collapsed}" title="testTitle"
+ var="test2collapsed">
<f:facet name="header">
<t:div style="width:500px;background-color:#CCCCCC;">
<h:outputText value="Person"/>
@@ -80,21 +82,21 @@
</f:facet>
<f:facet name="closedContent">
<h:panelGroup>
- <h:outputText value="#{collapsiblePanelBean.firstName}"/>
+ <h:outputText value="#{thirdCollapsiblePanelBean.firstName}"/>
<h:outputText value=" "/>
- <h:outputText value="#{collapsiblePanelBean.surName}"/>
+ <h:outputText value="#{thirdCollapsiblePanelBean.surName}"/>
<h:outputText value=", born on: "/>
- <h:outputText value="#{collapsiblePanelBean.birthDate}"/>
+ <h:outputText value="#{thirdCollapsiblePanelBean.birthDate}"/>
</h:panelGroup>
</f:facet>
<h:panelGrid>
- <h:outputText value="#{collapsiblePanelBean.firstName}"/>
- <h:inputText value="#{collapsiblePanelBean.surName}"/>
- <t:inputCalendar value="#{collapsiblePanelBean.birthDate}" renderAsPopup="true"/>
+ <h:outputText value="#{thirdCollapsiblePanelBean.firstName}"/>
+ <h:inputText value="#{thirdCollapsiblePanelBean.surName}"/>
+ <t:inputCalendar value="#{thirdCollapsiblePanelBean.birthDate}" renderAsPopup="true"/>
</h:panelGrid>
- </t:collapsiblePanel--%>
+ </t:collapsiblePanel>
- <t:dataTable id="test_dt" var="person" value="#{collapsiblePanelBean.persons}" preserveDataModel="false">
+ <t:dataTable id="test_dt" var="person" value="#{thirdCollapsiblePanelBean.persons}" preserveDataModel="false">
<h:column>
<t:collapsiblePanel id="test4" var="test4collapsed">
<f:facet name="header">