Author: viktor_volkov
Date: 2007-10-24 04:34:35 -0400 (Wed, 24 Oct 2007)
New Revision: 3493
Added:
branches/3.1.x/test-applications/facelets/src/main/java/richPanels/
branches/3.1.x/test-applications/facelets/src/main/java/richPanels/RichPanelsBean.java
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/Panel/
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/PanelBar.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/TabPanel.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/TogglePanel.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-RichPanelsBean.xml
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanels/
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanels/RichPanels.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/RichPanelsMenu.xhtml
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/main.xhtml
Log:
Merging the RichPanels framework to main test application
Added:
branches/3.1.x/test-applications/facelets/src/main/java/richPanels/RichPanelsBean.java
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/java/richPanels/RichPanelsBean.java
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/java/richPanels/RichPanelsBean.java 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,17 @@
+package richPanels;
+
+public class RichPanelsBean {
+ private String src;
+
+ public RichPanelsBean() {
+ src = "/RichPanels/Panel/Panel.xhtml";
+ }
+
+ public String getSrc() {
+ return src;
+ }
+
+ public void setSrc(String src) {
+ this.src = src;
+ }
+}
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/ModalPanel/ModalPanel.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,68 @@
+<f:subview id="modalPanelSubviewID"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich">
+
+ <h:form id="MPform">
+ <rich:modalPanel id="MPid" minHeight="#{modalPanel.minHeight}"
+ minWidth="#{modalPanel.minWidth}" height="#{modalPanel.height}"
+ width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
+ resizeable="#{modalPanel.resizeable}" keepVisualState=""
visualOptions="" >
+
+ <f:facet name="header">
+ <h:outputText value="Heder goes here..." />
+ </f:facet>
+ <h:outputText value="This is Modal Panel example"
styleClass="text1" />
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <h:outputLink
+ onclick="Richfaces.hideModalPanel('MPform:MPid');return false;"
+ value="Close">
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+
+ </rich:modalPanel>
+
+ <a onclick="Richfaces.showModalPanel('MPform:MPid');"
href="#">Show
+ MP</a>
+
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:panelGrid columns="2">
+
+ <h:outputText value="Width:" />
+ <h:inputText value="#{modalPanel.width}">
+ <a4j:support event="onchange"
reRender="MPform:MPid"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:" />
+ <h:inputText value="#{modalPanel.height}">
+ <a4j:support event="onchange"
reRender="MPform:MPid"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="minWidth:" />
+ <h:inputText value="#{modalPanel.minWidth}">
+ <a4j:support event="onchange"
reRender="MPform:MPid"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="minHeight:" />
+ <h:inputText value="#{modalPanel.minHeight}">
+ <a4j:support event="onchange"
reRender="MPform:MPid"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Resizeable:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.resizeable}">
+ <a4j:support event="onclick"
reRender="MPform:MPid"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Moveable:" />
+ <h:selectBooleanCheckbox value="#{modalPanel.moveable}">
+ <a4j:support event="onclick"
reRender="MPform:MPid"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ </h:panelGrid>
+ </h:form>
+</f:subview>
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,71 @@
+<f:subview id="panelSubviewID"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:c="http://java.sun.com/jstl/core">
+ <h:form>
+
+ <h:outputText
+ value="Panel 1, rendered: #{!panel.rendered}; Panel 2, rendered
#{panel.rendered};"></h:outputText>
+
+ <rich:panel rendered="#{!panel.rendered}" id="p1"
+ style="width:#{panel.width};height:#{panel.height};overflow:auto;">
+ <f:facet name="header">
+ <h:outputText id="t1" value="#{panel.title[0]} (Panel 1)"
/>
+ </f:facet>
+
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText id="t2" value="#{panel.title[1]}" />
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText id="o1" value="width #{panel.title[2]}, eg.
250px"></h:outputText>
+ <h:inputText value="#{w}">
+ <a4j:support event="onchange"
reRender="p3"></a4j:support>
+ </h:inputText>
+
+ <h:outputText id="o2" value="height #{panel.title[2]}, eg.
200px"></h:outputText>
+ <h:inputText value="#{h}">
+ <a4j:support event="onchange"
reRender="p3"></a4j:support>
+ </h:inputText>
+ </h:panelGrid>
+
+ <rich:panel id="p3"
style="width:#{w};height:#{h};overflow:auto;">
+ <f:facet name="header">
+ <h:outputText id="t3" value="#{panel.title[2]}" />
+ </f:facet>
+ <h:graphicImage value="/pics/asus.jpg" width="150"
height="100"></h:graphicImage>
+ </rich:panel>
+ </rich:panel>
+ </rich:panel>
+
+ <rich:panel onmousedown="alert('OnMouseDown');"
id="panelId"
+ onclick="submit()" rendered="#{panel.rendered}"
+ style="width:#{panel.width};height:#{panel.height}">
+ <f:verbatim>This is panel 2 example...</f:verbatim>
+
+ </rich:panel>
+
+ <h:panelGrid columns="2" cellpadding="10px">
+ <h:outputText value="Title"></h:outputText>
+ <h:inputText valueChangeListener="#{panel.makeTitle}">
+ <a4j:support event="onchange"
reRender="t1,t2,t3,o1,o2"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panel.width}">
+ <a4j:support event="onchange"
reRender="panelId,p1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panel.height}">
+ <a4j:support event="onchange"
reRender="panelId,p1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panel.rendered}"
onclick="submit()"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </h:form>
+</f:subview>
+
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/PanelBar.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/PanelBar.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/PanelBar/PanelBar.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,72 @@
+<f:subview id="panelBarSubviewID"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:rich="http://richfaces.org/rich">
+ <h:form>
+
+ <h:messages></h:messages>
+
+ <rich:panelBar id="pBId" height="#{panelBar.height}"
+ width="#{panelBar.width}" contentClass="#{panelBar.contentStyle}"
+ styleClass="#{panelBar.style}" selectedPanel="pBiId4">
+ <rich:panelBarItem rendered="#{panelBar.rendered}" id="pBiId1"
+ label="#{panelBar.label[0]}"
headerClass="#{panelBar.headerStyle}">
+ <h:outputText value="Some text..."></h:outputText>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId2" label="#{panelBar.label[1]}"
+ headerClass="#{panelBar.headerStyle}">
+ <h:graphicImage value="/pics/masshtaby_01.jpg" width="300"
+ height="200"></h:graphicImage>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId3" label="#{panelBar.label[2]}"
+ headerClass="#{panelBar.headerStyle}">
+ <f:facet name="openMarker">
+ <h:graphicImage
value="/pics/ajax_process.gif"></h:graphicImage>
+ </f:facet>
+ <f:facet name="closeMarker">
+ <h:graphicImage
value="/pics/ajax_stoped.gif"></h:graphicImage>
+ </f:facet>
+ <h:graphicImage value="/pics/podb109_61.jpg" width="300"
+ height="200"></h:graphicImage>
+ </rich:panelBarItem>
+
+ <rich:panelBarItem id="pBiId4" label="#{panelBar.label[3]}"
+ headerClass="#{panelBar.headerStyle}">
+ <h:outputText value="Select Panel"></h:outputText>
+ </rich:panelBarItem>
+
+ </rich:panelBar>
+
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Label: "></h:outputText>
+ <h:inputText valueChangeListener="#{panelBar.makeLabels}">
+ <a4j:support event="onchange"
reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{panelBar.width}">
+ <a4j:support event="onchange"
reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height: "></h:outputText>
+ <h:inputText value="#{panelBar.height}">
+ <a4j:support event="onchange"
reRender="pBId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{panelBar.rendered}">
+ <a4j:support event="onchange" reRender="pBId" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{panelBar.doStyles}"
+ value="#{panelBar.btnLabel}" />
+
+ </h:panelGrid>
+ </h:form>
+</f:subview>
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,93 @@
+<f:subview id="simpleTogglePanelSubviewID"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich">
+
+ <h:form>
+ <rich:simpleTogglePanel id="sTP" bodyClass="body"
headerClass="head"
+ label="simpleTogglePanel with some text"
+ width="#{simpleTogglePanel.width}"
+ height="#{simpleTogglePanel.height}"
+ switchType="#{simpleTogglePanel.switchType}" opened="false">
+ <f:facet name="closeMarker">
+ <h:outputText value="Close It" />
+ </f:facet>
+ <f:facet name="openMarker">
+ <h:outputText value="Open It" />
+ </f:facet>
+ <f:verbatim>
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some
text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some
text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some
text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some
text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text... Some
text... Some text...
+ </f:verbatim>
+ </rich:simpleTogglePanel>
+
+ <rich:simpleTogglePanel id="sTP1" headerClass="head"
+ label="simpleTogglePanel wiht image"
+ width="#{simpleTogglePanel.width}"
+ height="#{simpleTogglePanel.height}"
+ rendered="#{simpleTogglePanel.rendered}"
+ switchType="#{simpleTogglePanel.switchType}" opened="false">
+ <h:graphicImage value="/pics/podb109_61.jpg" width="500"
height="300"></h:graphicImage>
+ </rich:simpleTogglePanel>
+
+ <rich:simpleTogglePanel id="sTP2" label="Focus
simpleTogglePanle"
+ width="#{simpleTogglePanel.width}" ignoreDupResponses="true"
+ focus="#{simpleTogglePanel.focus}">
+ <f:facet name="closeMarker">
+ <h:graphicImage
value="/pics/ajax_stoped.gif"></h:graphicImage>
+ </f:facet>
+ <f:facet name="openMarker">
+ <h:graphicImage
value="/pics/ajax_process.gif"></h:graphicImage>
+ </f:facet>
+ <rich:simpleTogglePanel id="INsTP">
+ <h:panelGrid columns="2">
+ <h:graphicImage value="/pics/podb109_61.jpg" width="250px"
height="200px"></h:graphicImage>
+ <f:verbatim>
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ </f:verbatim>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+ </rich:simpleTogglePanel>
+
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:panelGrid columns="2" border="1">
+ <h:outputText value="Width:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.width}">
+ <a4j:support event="onchange" reRender="sTP,
sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height:">
+ </h:outputText>
+ <h:inputText value="#{simpleTogglePanel.height}">
+ <a4j:support event="onchange" reRender="sTP,
sTP1"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Switch Type:"></h:outputText>
+ <h:selectOneRadio value="#{simpleTogglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="sTP, sTP1,
sTP2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{simpleTogglePanel.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ </h:panelGrid>
+
+ </h:form>
+</f:subview>
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/TabPanel.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/TabPanel.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TabPanel/TabPanel.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,112 @@
+<f:subview id="tabPanelSubviewID"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:c="http://java.sun.com/jsp/jstl/core">
+<h:form>
+ <rich:tabPanel id="tabPanelId"
+ headerAlignment="#{tabPanel.headerAlignment}"
+ width="#{tabPanel.width}" height="#{tabPanel.height}"
+ rendered="#{tabPanel.rendered}" title="#{tabPanel.title}"
+ switchType="#{tabPanel.switchType}"
+ headerSpacing="#{tabPanel.headerSpacing}"
+ selectedTab="#{tabPanel.selectedTab}"
+ activeTabClass="#{tabPanel.activeTabStyle}"
+ disabledTabClass="#{tabPanel.disabledTabStyle}"
+ inactiveTabClass="#{tabPanel.inactiveTabStyle}"
+ contentClass="#{tabPanel.contentStyle}">
+
+ <rich:tab id="tabOne"
onmousedown="alert('OnMouseDown');"
+ labelWidth="#{tabPanel.labelWidth}" label="#{tabPanel.label}">
+ <h:outputText value="This is tab panel test example"
+ styleClass="text1"></h:outputText>
+ </rich:tab>
+ <rich:tab id="tabTwo" label="Tab with image"
+ disabled="#{tabPanel.disabledTab}">
+ <f:facet name="header">
+ <h:outputText value="client switchType from facet" />
+ </f:facet>
+ <h:graphicImage value="/pics/masshtaby_01.jpg" width="560"
+ height="383"></h:graphicImage>
+ </rich:tab>
+ <rich:tab id="tabThree" label="Tab with some text"
+ disabled="#{tabPanel.disabledTab}">
+ <h:outputText
+ value=" Some text... Some text... Some text... Some text... Some text... Some
text... Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text...
+ Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text..." />
+ </rich:tab>
+ </rich:tabPanel>
+
+ <rich:spacer height="20px"></rich:spacer>
+
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.width}">
+ <a4j:support event="onchange"
reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.height}">
+ <a4j:support event="onchange"
reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{tabPanel.title}">
+ <a4j:support event="onchange"
reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="LabelWidth:"></h:outputText>
+ <h:inputText value="#{tabPanel.labelWidth}">
+ <a4j:support event="onchange"
reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="SwitchType:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onchange"
reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Alignment:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.headerAlignment}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange"
reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Header Spacing:"></h:outputText>
+ <h:inputText value="#{tabPanel.headerSpacing}">
+ <a4j:support event="onchange"
reRender="tabPanelId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Selected Tab:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.selectedTab}"
onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="tabOne" />
+ <f:selectItem itemLabel="2" itemValue="tabTwo" />
+ <f:selectItem itemLabel="3" itemValue="tabThr" />
+ </h:selectOneRadio>
+
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable Tab"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{tabPanel.doStyles}"
+ value="#{tabPanel.btnLabel}" />
+
+
+ </h:panelGrid>
+</h:form>
+</f:subview>
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/TogglePanel.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/TogglePanel.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/TogglePanel/TogglePanel.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,203 @@
+<f:subview id="togglePanelSubviewID"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:form id="tooggleTest">
+ <rich:togglePanel id="panel1"
switchType="#{togglePanel.switchType}"
+ initialState="asus" stateOrder="asus,blank"
+ style="width:300px!important">
+ <f:facet name="blank">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <rich:toggleControl id="toggleControl_blank"
+ for="tooggleTest:panel1">
+ <h:outputText value="Expand" style="font-weight: bold;"
/>
+ <h:graphicImage url="/pics/collapse.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="asus">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <rich:toggleControl id="toggleControl_panel1"
+ for="tooggleTest:panel1">
+ <h:outputText value="Collapse" style="font-weight: bold;"
/>
+ <h:graphicImage url="/pics/expand.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0"
+ style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300"
width="300"
+ alt="asus.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;"
+ value="Asus F 3 Tc" />
+ <f:verbatim>
+ Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: NVIDIA GeForce Go 7300<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+ </rich:togglePanel>
+
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+
+ <rich:togglePanel id="panel2"
switchType="#{togglePanel.switchType}"
+ initialState="#{togglePanel.initialState}"
+ stateOrder="#{togglePanel.stateOrder}">
+ <f:facet name="asus">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel"
+ style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_1"
+ for="tooggleTest:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0"
+ style="width: 100%;background-color: white;">
+ <h:graphicImage url="/pics/asus.jpg" height="300"
width="300"
+ alt="asus.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;"
+ value="Asus F 3 Tc" />
+ <f:verbatim>
+ Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: NVIDIA GeForce Go 7300<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="benq">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel"
+ style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_2"
+ for="tooggleTest:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0"
+ style="width: 100%;background-color: yellow;">
+ <h:graphicImage url="/pics/benq.jpg" height="300"
width="300"
+ alt="benq.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;"
+ value="BenQ A 52" />
+ <f:verbatim>
+ Processor: Core Duo T2250 (1.73GHz)<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: ATI Mobility Radeon X 200<br />
+ Drive: DVD- RW D<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+
+ <f:facet name="toshiba">
+ <rich:panel>
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:outputText value="Customizable toggle panel"
+ style="font-weight: bold;" />
+ <rich:toggleControl id="toggleControl_panel_3"
+ for="tooggleTest:panel2">
+ <h:outputText value="Next"></h:outputText>
+ <h:graphicImage url="/pics/expand.gif"
+ style="border-width: 0px;" />
+ </rich:toggleControl>
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2" border="0"
+ style="width: 100%;background-color: orange;">
+ <h:graphicImage url="/pics/toshiba.jpg" height="300"
width="300"
+ alt="toshiba.jpg" />
+ <h:panelGroup>
+ <h:outputText style="font: 18px;font-weight: bold;"
+ value="Toshiba Satellite A 100-784" />
+ <f:verbatim>
+ Processor: Intel Core Duo T2250 - 1.73GHz<br />
+ RAM: 1024 Mb<br />
+ HDD: 100 Gb<br />
+ Screen: 15.4 WXGA<br />
+ Video: Intel Graphics Media 950<br />
+ Drive: DVD- RW DL<br />
+ </f:verbatim>
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:panel>
+ </f:facet>
+ </rich:togglePanel>
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
+ <rich:separator height="5px" width="500px" />
+
+ <h:panelGrid columns="2" cellpadding="5px"
cellspacing="5px">
+ <h:outputText value="InitialState:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.initialState}">
+ <f:selectItem itemLabel="Asus" itemValue="asus" />
+ <f:selectItem itemLabel="Benq" itemValue="benq" />
+ <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
+ <a4j:support event="onchange"
reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="StateOrder:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.stateOrder}">
+ <f:selectItem itemLabel="Asus,Benq,Toshiba"
+ itemValue="asus,benq,toshiba" />
+ <f:selectItem itemLabel="Toshiba, Asus, Benq"
+ itemValue="toshiba,asus,benq" />
+ <a4j:support event="onchange"
reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="switchType:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick"
reRender="panel1,panel2"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ <ui:debug hotkey="L"></ui:debug>
+ </h:form>
+</f:subview>
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-RichPanelsBean.xml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-RichPanelsBean.xml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-RichPanelsBean.xml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN"
+
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>richPanelsBean</managed-bean-name>
+ <managed-bean-class>richPanels.RichPanelsBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml 2007-10-24
00:15:41 UTC (rev 3492)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -121,6 +121,10 @@
<to-view-id>/pages/Rich/Rich.xhtml</to-view-id>
</navigation-case>
<navigation-case>
+ <from-outcome>RichPanels</from-outcome>
+ <to-view-id>/pages/RichPanels/RichPanels.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
<from-outcome>Map</from-outcome>
<to-view-id>/pages/Select/Map.xhtml</to-view-id>
</navigation-case>
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanels/RichPanels.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanels/RichPanels.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanels/RichPanels.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:ui="http://java.sun.com/jsf/facelets">
+<f:view>
+ <head>
+ <title></title>
+ <link rel="stylesheet"
+ href="#{facesContext.externalContext.requestContextPath}/styles/styles.css"
+ type="text/css" />
+ </head>
+ <body>
+ <div id="divOpthID" align="right" style="z-index:
200">
+ <ui:include src="/pages/RichPanelsMenu/RichPanelsMenu.xhtml"/>
+ </div>
+
+ <ui:include src="${richPanelsBean.src}" />
+ </body>
+</f:view>
+</html>
+
+
+
+
+
Added:
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/RichPanelsMenu.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/RichPanelsMenu.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichPanelsMenu/RichPanelsMenu.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -0,0 +1,23 @@
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich">
+
+<h:form id="forvDivOpthID2">
+ <h:panelGrid columns="2">
+ <h:selectOneMenu
binding="#{skinBean.component}"></h:selectOneMenu>
+ <h:commandLink action="#{skinBean.change}" value="set skin"
/>
+
+ <h:outputText value="Select component:" />
+ <h:selectOneMenu value="#{richPanelsBean.src}"
onchange="submit();">
+ <f:selectItem itemValue="/RichPanels/Panel/Panel.xhtml"
itemLabel="Panel" />
+ <f:selectItem itemValue="/RichPanels/ModalPanel/ModalPanel.xhtml"
itemLabel="Modal Panel" />
+ <f:selectItem itemValue="/RichPanels/PanelBar/PanelBar.xhtml"
itemLabel="Panel Bar" />
+ <f:selectItem
itemValue="/RichPanels/SimpleTogglePanel/SimpleTogglePanel.xhtml" itemLabel="Simple
Toggle Panel" />
+ <f:selectItem itemValue="/RichPanels/TogglePanel/TogglePanel.xhtml"
itemLabel="Toggle Panel" />
+ <f:selectItem itemValue="/RichPanels/TabPanel/TabPanel.xhtml"
itemLabel="Tab Panel" />
+ </h:selectOneMenu>
+ </h:panelGrid>
+ <h:commandLink value="Back"
action="main"></h:commandLink>
+</h:form>
+</html>
\ No newline at end of file
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/pages/main.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/pages/main.xhtml 2007-10-24
00:15:41 UTC (rev 3492)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/pages/main.xhtml 2007-10-24
08:34:35 UTC (rev 3493)
@@ -19,6 +19,7 @@
<h:commandLink value="Div"
action="TestDiv"></h:commandLink>
<h:commandLink value="Select"
action="Map"></h:commandLink>
<h:commandLink value="Customize page"
action="CustomizePage"></h:commandLink>
+ <h:commandLink value="RichPanels"
action="RichPanels"></h:commandLink>
</h:panelGrid>
</rich:panel>
</h:form>