Author: viktor_volkov
Date: 2007-10-25 10:48:37 -0400 (Thu, 25 Oct 2007)
New Revision: 3539
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml
Log:
Adding components to Panel in Richpanels application
Modified:
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 2007-10-25
14:07:36 UTC (rev 3538)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/RichPanels/Panel/Panel.xhtml 2007-10-25
14:48:37 UTC (rev 3539)
@@ -1,71 +1,99 @@
-<f:subview id="panelSubviewID"
-
xmlns:rich="http://richfaces.org/rich"
+<h:form
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>
+
xmlns:c="http://java.sun.com/jstl/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets">
- <h:outputText
- value="Panel 1, rendered: #{!panel.rendered}; Panel 2, rendered
#{panel.rendered};"></h:outputText>
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="any"
+ style="width:#{panel.width};height:#{panel.height};overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:any"></h:outputText>
+ </f:facet>
- <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>
+
+ <rich:panel rendered="true" id="Panel"
+ style="width:500px;height:700px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:panel"></h:outputText>
+ </f:facet>
+ <ui:include src="/Panel/Panel.xhtml" />
+ </rich:panel>
- <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>
+ <rich:spacer width="10" height="50"></rich:spacer>
- <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 rendered="true" id="Calendar"
+ style="width:900px;height:850px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:calendar"></h:outputText>
+ </f:facet>
+ <ui:include src="/Calendar/Calendar.xhtml" />
+ </rich:panel>
- <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:spacer width="10" height="50"></rich:spacer>
- <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 rendered="true" id="DataFilterSlider"
+ style="width:500px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:dataFilterSlider"></h:outputText>
+ </f:facet>
+ <ui:include src="/DataFilterSlider/DataFilterSlider.xhtml" />
+ </rich:panel>
- </rich:panel>
+ <rich:spacer width="10" height="50"></rich:spacer>
- <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>
+ <rich:panel rendered="true" id="DataScroller"
+ style="width:500px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:datascroller"></h:outputText>
+ </f:facet>
+ <ui:include src="/DataScroller/DS.xhtml" />
+ </rich:panel>
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{panel.width}">
- <a4j:support event="onchange"
reRender="panelId,p1"></a4j:support>
- </h:inputText>
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="DataTable"
+ style="width:600px;height:1900px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:dataTable"></h:outputText>
+ </f:facet>
+ <ui:include src="/DataTable/DT.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="DragAndDrop"
+ style="width:700px;height:800px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:dragSupport, rich:dropSupport, rich:dragIndicator,
rich:dndParam "></h:outputText>
+ </f:facet>
+ <ui:include src="/DragAndDrop/DragAndDrop.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="DropDownMenu"
+ style="500px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:dropDownMenu"></h:outputText>
+ </f:facet>
+ <ui:include src="/DropDownMenu/DDMenu.xhtml" />
+ </rich:panel>
+
+ <rich:spacer width="10" height="50"></rich:spacer>
+
+ <rich:panel rendered="true" id="Effect"
+ style="width:500px;height:500px;overflow:auto;">
+ <f:facet name="header">
+ <h:outputText value="rich:effect"></h:outputText>
+ </f:facet>
+ <ui:include src="/Effect/Effect.xhtml" />
+ </rich:panel>
- <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>
+</h:form>
+