Author: msorokin
Date: 2009-03-26 07:29:37 -0400 (Thu, 26 Mar 2009)
New Revision: 13207
Added:
trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.xhtml
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/page.xhtml
trunk/test-applications/richfaces-docs/web/src/main/webapp/queue.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-6419https://jira.jboss.org/jira/bro...
added new features
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.xhtml
(rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.xhtml 2009-03-26
11:29:37 UTC (rev 13207)
@@ -0,0 +1,130 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="layout/template.xhtml"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">Layout Components: rich:page, rich:layout,
rich:layoutPanel </f:facet>
+
+<h3>Case 1: rich:page + rich:layout + rich:layoutPanel</h3>
+
+<rich:page sidebarPosition="left" style="border: 1px solid black"
sidebarWidth="300" theme="#{layout.theme}"
pageTitle="Rich:page">
+ <f:facet name="header">
+ header
+ </f:facet>
+ <f:facet name="sidebar">
+menu stuff
+ </f:facet>
+ <rich:layout >
+
+ <rich:layoutPanel position="left"
width="33*">
+ <rich:layoutPanel position="left"
width="33*">
+ <p> inner left part of the body</p>
+
+
+ </rich:layoutPanel>
+
+
+
+ <rich:layoutPanel position="center"
width="33*">
+ <p>inner left part of the body</p>
+ </rich:layoutPanel>
+
+
+ </rich:layoutPanel>
+
+
+
+ <rich:layoutPanel position="center"
width="33*">
+ <p> left part of the body</p>
+ </rich:layoutPanel>
+
+
+
+ </rich:layout>
+ <f:facet name="footer">
+ footer
+ </f:facet>
+ </rich:page>
+
+
+ <h3>Case 2: rich:page + rich:layout + rich:layoutPanel</h3>
+
+
+
+ <rich:layout style="border 1px solid black">
+
+ <rich:layoutPanel position="left" >
+ <p> left part of the body</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="center" >
+ <p> right part of the body</p>
+ </rich:layoutPanel>
+ <rich:layoutPanel position="right" >
+ <p> right part of the body</p>
+ </rich:layoutPanel>
+
+
+ </rich:layout>
+
+
+
+
+<table class="tableofattributes" cellpadding="0"
cellspacing="0">
+<thead>
+
+
+ <tr>
+ <td>
+ Attribute
+ </td>
+ <td>
+ Value
+ </td>
+ </tr>
+</thead>
+ <tbody>
+ <tr>
+ <td>
+ Theme
+ </td>
+ <td>
+ <h:form>
+ <h:selectOneMenu value="#{layout.theme}"
onchange="submit()">
+ <f:selectItem itemLabel="Default" itemValue="" />
+ <f:selectItem itemLabel="simple" itemValue="simple"
/>
+ <f:selectItem itemLabel="csszend" itemValue="csszend" />
+
+
+ </h:selectOneMenu>
+ </h:form>
+ </td>
+ </tr>
+
+
+ </tbody>
+
+
+</table>
+
+
+
+
+
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/page.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/page.xhtml 2009-03-26
11:29:11 UTC (rev 13206)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/page.xhtml 2009-03-26
11:29:37 UTC (rev 13207)
@@ -17,29 +17,77 @@
<rich:panel>
- <f:facet name="header">rich:page</f:facet>
+ <f:facet name="header">Layout Components: rich:page, rich:layout,
rich:layoutPanel </f:facet>
+<h3>Case 1: Simple variant</h3>
+<rich:page width="600px">
+<p>some content</p>
+</rich:page>
-<rich:page sidebarPosition="left" sidebarWidth="300"
pageTitle="Rich:page">
- <f:facet name="header">
- header
- </f:facet>
+
+<h3>Case 2: with facets</h3>
+
+
+<rich:page sidebarPosition="right" sidebarWidth="300"
bodyClass="bodyClass">
+ <f:facet name="header" >
+ header content
+
+ </f:facet>
+
<f:facet name="sidebar">
-menu stuff
+side bar content
</f:facet>
- <rich:layout>
-
- <rich:layoutPanel>
-<h:outputText value="body text" />
- </rich:layoutPanel>
-
- </rich:layout>
+ <p>body content</p>
+
<f:facet name="footer">
- footer
+ footer content
</f:facet>
</rich:page>
+
+
+<table class="tableofattributes" cellpadding="0"
cellspacing="0">
+<thead>
+
+
+ <tr>
+ <td>
+ Attribute
+ </td>
+ <td>
+ Value
+ </td>
+ </tr>
+</thead>
+ <tbody>
+ <tr>
+ <td>
+ Theme
+ </td>
+ <td>
+ <h:form>
+ <h:selectOneMenu value="#{layout.theme}"
onchange="submit()">
+ <f:selectItem itemLabel="Default" itemValue="" />
+ <f:selectItem itemLabel="simple" itemValue="simple"
/>
+ <f:selectItem itemLabel="csszend" itemValue="csszend" />
+
+
+ </h:selectOneMenu>
+ </h:form>
+ </td>
+ </tr>
+
+
+ </tbody>
+
+
+</table>
+
+
+
+
+
</rich:panel>
</ui:define>
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/queue.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/queue.xhtml 2009-03-26
11:29:11 UTC (rev 13206)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/queue.xhtml 2009-03-26
11:29:37 UTC (rev 13207)
@@ -34,8 +34,9 @@
<h:outputText value="#{queue.b}" id="b" />
<br />
</h:form>
-
- </rich:panel>
-
+
+
+
+</rich:panel>
</ui:define>
</ui:composition>