You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-commits@incubator.apache.org by ma...@apache.org on 2007/03/07 14:44:48 UTC

svn commit: r515587 [16/19] - in /incubator/adffaces/branches/matzew-core-1.0.0-incubation: ./ examples/ examples/trinidad-demo/ examples/trinidad-demo/src/ examples/trinidad-demo/src/conf/ examples/trinidad-demo/src/main/ examples/trinidad-demo/src/ma...

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/panelPageSkinDemo.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/panelPageSkinDemo.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/panelPageSkinDemo.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/panelPageSkinDemo.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,219 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html"
+          xmlns:tr="http://myfaces.apache.org/trinidad">
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <trh:html>
+      <trh:head title="Skin Demo">
+        <!-- the beach skin is defined in beach.css. If you want to add your own
+     custom style classes, you can add it to beach.css or to your own css 
+     file, like what we demo here in beachCustomStyles.css -->
+        <link rel="stylesheet" charset="UTF-8" type="text/css"
+              href="/adf-faces-demo-context-root/skins/beach/CustomStyles.css"/>
+      </trh:head>
+      <trh:body>
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide"
+                            action="guide"/>
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout layout="horizontal" styleClass="tabsPanelGroup">
+                <tr:navigationPane hint="tabs" shortDesc="Select tab">
+                  <tr:commandNavigationItem text="Home" action="guide.navigationPane"
+                                      selected="true"/>
+                  <tr:commandNavigationItem text="Clothing" action="guide.navigationPane"/>
+                  <tr:commandNavigationItem text="Equipment" action="guide.navigationPane"/>
+                </tr:navigationPane>
+                <tr:panelGroupLayout>
+                  <tr:commandNavigationItem text="Your Account"
+                                      action="guide.navigationPane"/>
+                  <tr:outputText value="|"/>
+                  <tr:icon name="required"/>
+                  <tr:commandNavigationItem text="SALES!" action="guide.navigationPane"/>
+                  <tr:icon name="required"/>
+                  <tr:outputText value="|"/>
+                  <tr:commandNavigationItem text="Help" action="guide.navigationPane"/>
+                </tr:panelGroupLayout>
+              </tr:panelGroupLayout>
+              <!--tr:navigationPane hint="bar">
+                <tr:commandNavigationItem text="Jackets" action="guide.navigationPane"
+                                    selected="true"/>
+                <tr:commandNavigationItem text="Pants" action="guide.navigationPane"/>
+                <tr:commandNavigationItem text="Shirts" action="guide.navigationPane"/>
+                <tr:commandNavigationItem text="Shoes" action="guide.navigationPane"/>
+                <tr:commandNavigationItem text="Swimwear" action="guide.navigationPane"/>
+                <tr:commandNavigationItem text="Sale Items" action="guide.navigationPane"/>
+              </tr:navigationPane-->
+              <tr:panelGroupLayout layout="horizontal"
+                             styleClass="adfFacesDemoSearchPanelGroup">
+                <f:facet name="separator">
+                  <tr:spacer width="10px"/>
+                </f:facet>
+                <tr:selectOneChoice label="Search">
+                  <tr:selectItem label="Cycling"/>
+                  <tr:selectItem label="Climbing"/>
+                </tr:selectOneChoice>
+                <tr:selectOneChoice label="Skin-family:" autoSubmit="false"
+                                    value="#{sessionScope.skinFamily}">
+                  <tr:selectItem label="simple" value="simple"/>
+                  <tr:selectItem label="minimal" value="minimal"/>
+                  <tr:selectItem label="purple" value="purple"/>
+                  <tr:selectItem label="beach" value="beach"/>
+                </tr:selectOneChoice>
+                <tr:commandButton text="Go"/>
+              </tr:panelGroupLayout>
+              <tr:panelGroupLayout layout="horizontal" styleClass="welcomePanel">
+                <tr:outputFormatted styleUsage="instruction"
+                                    value="&lt;b>Welcome!&lt;/b> We hope you find something you like."></tr:outputFormatted>
+              </tr:panelGroupLayout>
+              <tr:panelHorizontalLayout valign="top" inlineStyle="padding:5px;">
+                <tr:panelBox background="medium" text="Browse" inlineStyle="width:160px">
+                  <tr:outputText value="Recent Purchases"
+                                 styleClass="panelBoxHeader"/>
+                  <tr:panelList>
+                    <tr:goLink text="flip flops"
+                               destination="http://www.apache.org"/>
+                    <tr:goLink text="sandals"
+                               destination="http://www.apache.org"/>
+                    <tr:goLink text="trail shoes"
+                               destination="http://www.apache.org"/>
+                  </tr:panelList>
+                  <tr:outputText value="Equipment" styleClass="panelBoxHeader"/>
+                  <tr:panelList>
+                    <tr:goLink text="Cycling"
+                               destination="http://www.apache.org"/>
+                    <tr:goLink text="Climbing"
+                               destination="http://www.apache.org"/>
+                    <tr:goLink text="Kayaking"
+                               destination="http://www.apache.org"/>
+                    <tr:goLink text="Camping"
+                               destination="http://www.apache.org"/>
+                  </tr:panelList>
+                  <tr:outputText value="Clothing" styleClass="panelBoxHeader"/>
+                  <tr:panelList>
+                    <tr:goLink text="Shirts"
+                               destination="http://www.apache.org"/>
+                    <tr:goLink text="Shoes"
+                               destination="http://www.apache.org"/>
+                  </tr:panelList>
+                </tr:panelBox>
+                <tr:panelGroupLayout layout="vertical">
+                  <tr:panelHeader text="Recommendations for you">
+                    <tr:outputText value="Everything in Camping  is on sale! Enjoy huge savings on our most popular tents                     and sleeping bags. We even have dried food and mattresses"
+                                   styleClass="mainContentText"/>
+                  </tr:panelHeader>
+                  <tr:spacer height="5px"/>
+                  <tr:panelHeader text="New in Down Jackets!">
+                    <tr:outputText value="You might be sweltering in 100 degree heat, but think ahead to the cold winters and buy                     a down jacket!"
+                                   styleClass="mainContentText"/>
+                  </tr:panelHeader>
+                  <tr:spacer height="15px"/>
+                  <tr:panelTabbed>
+                    <tr:showDetailItem text="Tab 1">
+                      <tr:panelHeader text="Tab Header 1">
+                        <tr:panelFormLayout>
+                          <tr:inputText readOnly="true" label="Label 2-1"
+                                        value="Value" styleClass="AFDataText"/>
+                          <tr:inputText readOnly="true"
+                                        label="Date/Time from last partial refresh"
+                                        value="#{date.currentDate}"
+                                        styleClass="AFDataText">
+                            <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+                          </tr:inputText>
+                          <tr:inputDate label="Birthdate:"/>
+                        </tr:panelFormLayout>
+                      </tr:panelHeader>
+                    </tr:showDetailItem>
+                    <tr:showDetailItem text="Tab 2" disclosed="true">
+                      <tr:panelHeader text="PanelTabbed details">
+                        <tr:outputText value="Everything in Camping  is on sale!  Enjoy huge savings on our most popular tents                     and sleeping bags. We even have dried food and mattresses"
+                                       styleClass="mainContentText"/>
+                        <tr:panelGroupLayout layout="horizontal">
+                          <tr:goButton text="Sorry, Disabled" disabled="true"/>
+                          <tr:spacer width="10px"/>
+                          <tr:goButton text="Go!" disabled="false"/>
+                        </tr:panelGroupLayout>
+                      </tr:panelHeader>
+                    </tr:showDetailItem>
+                    <tr:showDetailItem text="Tab 4" disabled="true"/>
+                    <tr:showDetailItem text="Tab 5">
+                      <tr:panelHeader text="Header 5">
+                        <tr:panelFormLayout>
+                          <tr:inputText readOnly="true" label="Label 5-1"
+                                        value="Value" styleClass="AFDataText"/>
+                          <tr:inputText readOnly="true"
+                                        label="Date/Time from last partial refresh"
+                                        value="#{date.currentDate}"
+                                        styleClass="AFDataText">
+                            <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+                          </tr:inputText>
+                        </tr:panelFormLayout>
+                      </tr:panelHeader>
+                    </tr:showDetailItem>
+                  </tr:panelTabbed>
+                </tr:panelGroupLayout>
+                <tr:panelGroupLayout layout="vertical">
+                  <f:facet name="separator">
+                    <tr:spacer height="10px"/>
+                  </f:facet>
+                  <tr:panelBox background="medium" inlineStyle="width:160px">
+                    <tr:panelGroupLayout layout="vertical">
+                      <tr:outputText value="New Releases"
+                                     styleClass="panelBoxHeader"/>
+                      <tr:image source="/skins/beach/images/otn_logo_small.gif"/>
+                      <tr:outputFormatted styleUsage="instruction"
+                                          value="Check this out!"/>
+                    </tr:panelGroupLayout>
+                  </tr:panelBox>
+                  <tr:panelBox background="medium" inlineStyle="width:160px">
+                    <tr:panelGroupLayout layout="vertical">
+                      <tr:outputText value="More Stuff"
+                                     styleClass="panelBoxHeader"/>
+                      <tr:image source="/skins/beach/images/otn_logo_small.gif"/>
+                      <tr:outputFormatted styleUsage="instruction"
+                                          value="Check this out!"/>
+                    </tr:panelGroupLayout>
+                  </tr:panelBox>
+                  <tr:panelBox background="medium" inlineStyle="width:160px">
+                    <tr:panelGroupLayout layout="vertical">
+                      <tr:outputText value="Your New Releases"
+                                     styleClass="panelBoxHeader"/>
+                      <tr:image source="/skins/beach/images/otn_logo_small.gif"/>
+                      <tr:outputFormatted styleUsage="instruction"
+                                          value="Check this out!"/>
+                    </tr:panelGroupLayout>
+                  </tr:panelBox>
+                </tr:panelGroupLayout>
+              </tr:panelHorizontalLayout>
+            </tr:panelGroupLayout>
+          </tr:panelGroupLayout>
+        </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/portletSkinDemo.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/portletSkinDemo.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/portletSkinDemo.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/portletSkinDemo.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,194 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+  Copyright 2006 The Apache Software Foundation.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core" 
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html"
+          xmlns:tr="http://myfaces.apache.org/trinidad">
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+
+    <trh:html>
+      <trh:head title="Portlet Skin Demo">
+        <link rel="stylesheet" charset="UTF-8" type="text/css"
+              href="/trinidad-demo-context-root/faces/demos/CustomPortletStyles.css"/>
+      </trh:head>
+      <trh:body>
+
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide" action="guide"/>
+
+            <tr:panelGroupLayout layout="vertical">
+              <tr:outputText styleClass="portlet-font"
+                             value="When &lt;output-mode&gt;portlet&lt;/output-mode> 
+                             is defined in trinidad-config.xml's, all components map
+                             their styleclasses to portlet style classes. This way a Trinidad page 
+                             will look like a portlet when it is running within a portlet.  
+                             This page contains a test portlet css file that defines portlet 
+                             styles like portlet-table-header and portlet-font.  "/>
+              <tr:panelGroupLayout layout="horizontal">
+                <tr:navigationPane hint="tabs" shortDesc="Select tab">
+                  <tr:commandNavigationItem text="Home" action="guide.menuTabs"
+                                            shortDesc="class=portlet-menu-item-selected"
+                                            selected="true"/>
+                  <tr:commandNavigationItem text="Clothing" action="guide.menuTabs"
+                                            shortDesc="class=portlet-menu-item"/>
+                  <tr:commandNavigationItem text="Equipment" action="guide.menuTabs"
+                                            shortDesc="class=portlet-menu-item"/>
+                </tr:navigationPane>
+              </tr:panelGroupLayout>
+              <tr:navigationPane hint="bar">
+                <tr:commandNavigationItem text="MenuBar" action="guide.menuBar" selected="true"
+                                          shortDesc="class=portlet-menu-cascade-item-selected"/>
+                <tr:commandNavigationItem text="MenuBar" action="guide.menuBar"
+                                          shortDesc="portlet-menu-cascade-item"/>
+                <tr:commandNavigationItem text="MenuBar" action="guide.menuBar"/>
+              </tr:navigationPane>
+              <tr:panelGroupLayout layout="horizontal" styleClass="adfFacesDemoSearchPanelGroup">
+                <f:facet name="separator">
+                  <tr:spacer width="10px"/>
+                </f:facet>
+                <tr:panelGroupLayout>
+                  <tr:selectManyCheckbox label="Search" shortDesc="portlet-form-label/portlet-font">
+                    <tr:selectItem label="Cycling"/>
+                    <tr:selectItem label="Climbing"/>
+                  </tr:selectManyCheckbox>
+                  <tr:selectOneRadio label="Search" shortDesc="portlet-form-label/portlet-font">
+                    <tr:selectItem label="Cycling"/>
+                    <tr:selectItem label="Climbing"/>
+                  </tr:selectOneRadio>
+                  <tr:selectBooleanCheckbox label="quick search?"/>
+                  <tr:selectOneChoice label="Skin-family:" autoSubmit="false"
+                                      shortDesc="portlet-form-label/portlet-font"
+                                      value="#{sessionScope.skinFamily}">
+                    <tr:selectItem label="simple" value="simple"/>
+                    <tr:selectItem label="minimal" value="minimal"/>
+                    <tr:selectItem label="purple" value="purple"/>
+                  </tr:selectOneChoice>
+                  <tr:panelLabelAndMessage>
+                    <tr:commandButton text="Go"/>
+                  </tr:panelLabelAndMessage>
+                  <tr:inputText label="Name:"
+                                shortDesc="portlet-form-label/portlet-form-input-field"/>
+                  <tr:chooseDate id="idp1" shortDesc="Choose Date"/>
+
+                  <tr:panelGroupLayout layout="horizontal" inlineStyle="padding:5px;">
+                    <tr:panelBox background="medium" text="Browse" inlineStyle="width:160px">
+                      <tr:outputText value="Recent Purchases" styleClass="AFInstructionText"/>
+                      <tr:panelList>
+                        <tr:goLink text="flip flops" destination="http://www.oracle.com"/>
+                        <tr:goLink text="sandals" destination="http://www.oracle.com"/>
+                      </tr:panelList>
+                    </tr:panelBox>
+                    <tr:panelGroupLayout layout="vertical">
+                      <tr:panelHeader text="table uses portlet-table-* styles when in portlet output-mode">
+                        <tr:table allDetailsEnabled="true" var="row" rowBandingInterval="2"
+                                  value="#{periodicTable.tableData}" rows="5"
+                                  summary="Element information">
+                          <tr:column>
+                            <f:facet name="header">
+                              <tr:outputText value="Name"/>
+                            </f:facet>
+                            <tr:outputText value="#{row.name}"/>
+                          </tr:column>
+                          <tr:column>
+                            <f:facet name="header">
+                              <tr:outputText value="Symbol"/>
+                            </f:facet>
+                            <tr:outputText value="#{row.symbol}"/>
+                          </tr:column>
+                          <tr:column>
+                            <f:facet name="header">
+                              <tr:outputText value="Action Column"/>
+                            </f:facet>
+                            <tr:commandButton text="Action" action="#{row.action}"/>
+                          </tr:column>
+                          <f:facet name="detailStamp">
+                            <tr:panelGroupLayout layout="vertical">
+                              <tr:outputText value="Element Name: #{row.name}"/>
+                              <tr:outputText value="Atomic Number: #{row.number}"/>
+                              <tr:outputText value="Symbol: #{row.symbol}"/>
+                              <tr:outputText value="Group: #{row.group}"/>
+                            </tr:panelGroupLayout>
+                          </f:facet>
+                        </tr:table>
+                      </tr:panelHeader>
+                      <tr:spacer height="5px"/>
+                      <tr:panelHeader text="showOneTab renders links"></tr:panelHeader>
+                      <tr:spacer height="15px"/>
+                      <tr:panelTabbed>
+                        <tr:showDetailItem text="Tab 1">
+                          <tr:panelHeader text="chooseDate uses portlet-table styles">
+                            <tr:panelFormLayout>
+                              <tr:chooseDate id="idp1" shortDesc="Choose Date"/>
+                            </tr:panelFormLayout>
+                          </tr:panelHeader>
+                        </tr:showDetailItem>
+                        <tr:showDetailItem text="Tab 2" disclosed="true">
+                          <tr:panelHeader text="ShowOneTab details">
+                            <tr:outputText value="Everything in Camping  is on sale!  Enjoy huge savings on our most popular tents                     and sleeping bags. We even have dried food and mattresses"
+                                           styleClass="AFInstructionText"/>
+                            <tr:panelGroupLayout layout="horizontal">
+                              <tr:goButton text="Sorry, Disabled" disabled="true"/>
+                              <tr:spacer width="10px"/>
+                              <tr:goButton text="Go!" disabled="false"/>
+                            </tr:panelGroupLayout>
+                            <tr:panelHeader text="subheader"></tr:panelHeader>
+                          </tr:panelHeader>
+                        </tr:showDetailItem>
+                        <tr:showDetailItem text="Tab 4" disabled="true"/>
+                        <tr:showDetailItem text="Tab 5">
+                          <tr:panelHeader text="Header 5">
+                            <tr:panelFormLayout>
+                              <tr:inputText readOnly="true" label="Label 5-1" value="Value"
+                                            styleClass="AFDataText"/>
+                              <tr:inputText 
+                                            label="Date/Time from last partial refresh"
+                                            value="#{date.currentDate}" styleClass="AFDataText">
+                                <tr:convertDateTime pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+                              </tr:inputText>
+                              <!--
+                              <tr:inputDate label="InputDate"/>
+                              <tr:inputColor label="InputColor"/>
+                              -->
+                            </tr:panelFormLayout>
+                          </tr:panelHeader>
+                        </tr:showDetailItem>
+                      </tr:panelTabbed>
+                      <tr:showDetailHeader text="showDetailHeader">
+                        <tr:showDetailHeader text="showDetailHeader again"/>
+                      </tr:showDetailHeader>
+                    </tr:panelGroupLayout>
+                  </tr:panelGroupLayout>
+                </tr:panelGroupLayout>
+              </tr:panelGroupLayout>
+            </tr:panelGroupLayout>
+              
+          </tr:panelGroupLayout>
+               
+        </tr:form>
+
+        
+      </trh:body>
+    </trh:html>
+    
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,287 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html"
+          xmlns:tr="http://myfaces.apache.org/trinidad">
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+  <tr:document title="Partial Page Rendering Demos">
+    <tr:form>
+
+     <tr:panelPage>
+      <f:facet name="navigationGlobal">
+       <tr:navigationPane hint="buttons">
+        <tr:commandNavigationItem text="Return to Feature Demos page"
+                                immediate="true"
+                                action="demos"/>
+       </tr:navigationPane>
+      </f:facet>
+
+    <tr:panelHeader text="Welcome to the Apache Trinidad Partial Page Rendering Demos">
+      <tr:outputFormatted styleUsage="instruction"
+                          value="These demos illustrate Partial Page Refresh capabilities using the autoSubmit attribute of various input components."/>
+      <tr:panelGroupLayout layout="vertical">
+       <!--tr:panelHeader text="Globally updated">
+        <tr:outputFormatted styleUsage="instruction"
+                            value="This text gets updated on ANY partial update of the page."/>
+        <tr:panelGroupLayout>
+         <tr:panelLabelAndMessage label="last PPR update: ">
+          <tr:outputFormatted id="globalUpdate"
+                              partialTriggers="*"
+                              styleUsage="instruction"
+                              binding="#{partialDemoUtil.globalUpdate}"
+                              value="never">
+           <f:convertDateTime pattern="HH:mm:ss"/>
+          </tr:outputFormatted>
+         </tr:panelLabelAndMessage>
+        </tr:panelGroupLayout>
+       </tr:panelHeader-->
+       <tr:panelHeader text="Radio Buttons">
+       <tr:outputFormatted styleUsage="instruction"
+                           value="This demo shows a two sets of radio buttons which use autoSubmit. There is also an output component which is listening on updates to the radio buttons and displaying status text accordingly."/>
+        <tr:panelGroupLayout layout="horizontal">
+         <tr:panelGroupLayout layout="vertical">
+          <tr:panelGroupLayout layout="horizontal">
+           <tr:outputFormatted styleUsage="instruction"
+                               value="selectBooleanRadio buttons"/>
+           <tr:panelGroupLayout layout="vertical">
+            <tr:selectBooleanRadio id="rb1"
+                                   group="theGroup"
+                                   selected="false"
+                                   text="item 1"
+                                   autoSubmit="true"
+                                   valueChangeListener="#{partialDemoUtil.valueChanged}"/>
+            <tr:selectBooleanRadio id="rb2"
+                                   group="theGroup"
+                                   text="item 2"
+                                   selected="false"
+                                   autoSubmit="true"
+                                   valueChangeListener="#{partialDemoUtil.valueChanged}"/>
+            <tr:selectBooleanRadio id="rb3"
+                                   group="theGroup"
+                                   text="item 3"
+                                   selected="false"
+                                   autoSubmit="true"
+                                   valueChangeListener="#{partialDemoUtil.valueChanged}"/>
+           </tr:panelGroupLayout>
+          </tr:panelGroupLayout>
+          <tr:spacer width="30" height="10"/>
+          <tr:panelGroupLayout layout="vertical">
+           <tr:selectOneRadio id="sor1"
+                              label="selectOneRadio buttons"
+                              autoSubmit="true"
+                              valueChangeListener="#{partialDemoUtil.valueChanged}">
+            <tr:selectItem label="item 1" value="1" />
+            <tr:selectItem label="item 2" value="2" />
+            <tr:selectItem label="item 3" value="3" />
+           </tr:selectOneRadio>
+          </tr:panelGroupLayout>
+         </tr:panelGroupLayout>
+         <tr:spacer width="30" height="10"/>
+         <tr:panelLabelAndMessage label="Selected: ">
+          <tr:outputFormatted id="rbTarget"
+                              partialTriggers="rb1 rb2 rb3 sor1"
+                              styleUsage="instruction"
+                              value="#{partialDemoUtil.status.radioStateText}">
+           <f:convertDateTime pattern="HH:mm:ss"/>
+          </tr:outputFormatted>
+         </tr:panelLabelAndMessage>
+        </tr:panelGroupLayout>
+       </tr:panelHeader>
+       <tr:panelHeader text="InputText">
+       <tr:outputFormatted styleUsage="instruction"
+                           value="This demo shows an autoSubmitting text field."/>
+        <trh:tableLayout width="80%">
+         <trh:rowLayout>
+          <tr:inputText id="itxt"
+                        autoSubmit="true"
+                        value="#{partialDemoUtil.status.textValue}"
+                        label="Enter text here and tab out: "
+                        valueChangeListener="#{partialDemoUtil.valueChanged}"/>
+          <tr:panelLabelAndMessage label="You entered: ">
+           <tr:outputFormatted id="itTarget"
+                               partialTriggers="itxt"
+                               styleUsage="instruction"
+                               value="#{partialDemoUtil.status.textStateText}"/>
+          </tr:panelLabelAndMessage>
+         </trh:rowLayout>
+        </trh:tableLayout>
+       </tr:panelHeader>
+       <tr:panelHeader text="selectOneChoice">
+       <tr:outputFormatted styleUsage="instruction"
+                           value="This demo illustrates PPR from a choice component."/>
+        <tr:panelGroupLayout layout="horizontal">
+         <tr:selectOneChoice id="selOne"
+                             autoSubmit="true"
+                             label="Choose one"
+                             valueChangeListener="#{partialDemoUtil.valueChanged}"
+                             value="#{partialDemoUtil.status.choiceInt}">
+          <tr:selectItem label="First" value="1"/>
+          <tr:selectItem label="Second" value="2"/>
+          <tr:selectItem label="Third" value="3"/>
+         </tr:selectOneChoice>
+         <tr:spacer width="30" height="10"/>
+         <tr:panelLabelAndMessage label="You picked: ">
+          <tr:outputFormatted partialTriggers="selOne"
+                              styleUsage="instruction"
+                              value="#{partialDemoUtil.status.choiceText}"/>
+         </tr:panelLabelAndMessage>
+        </tr:panelGroupLayout>
+       </tr:panelHeader>
+
+       <tr:panelHeader text="selectManyListbox">
+       <tr:outputFormatted styleUsage="instruction"
+
+
+                           value="This demo also shows a multiple select list box component that is bound to a value that will be updated by the ValueChangeEvent listener. This demo only shows the multi-select listbox, but the single select (selectOneListbox) works in exactly the same way."/>
+        <tr:panelGroupLayout layout="horizontal">
+         <tr:selectManyListbox id="smlb"
+                               autoSubmit="true"
+                               label="Choose one or more values: "
+                               valueChangeListener="#{partialDemoUtil.valueChanged}">
+          <tr:selectItem label="One"   value="1"/>
+          <tr:selectItem label="Two"   value="2"/>
+          <tr:selectItem label="Three" value="3"/>
+          <tr:selectItem label="Four"  value="4"/>
+         </tr:selectManyListbox>
+         <tr:spacer width="30" height="10"/>
+         <tr:panelLabelAndMessage label="List items selected: ">
+          <tr:outputFormatted id="smlbTarget"
+                              styleUsage="instruction"
+                              binding="#{partialDemoUtil.listUpdate}"
+                              value="nothing yet."/>
+         </tr:panelLabelAndMessage>
+        </tr:panelGroupLayout>
+       </tr:panelHeader>
+       <tr:panelHeader text="SelectBooleanCheckbox">
+       <tr:outputFormatted styleUsage="instruction"
+                           value="This demo shows a simple checkbox which uses autoSubmit. There are two components listening on the change to the checkbox, one is now visible, the other will become visible after the first click. This also illustrates a cascading PPR update."/>
+
+        <tr:panelGroupLayout layout="horizontal">
+         <tr:selectBooleanCheckbox id="cb1"
+                                   value="#{partialDemoUtil.status.checked}"
+                                   label="This PPR checkbox"
+                                   valueChangeListener="#{partialDemoUtil.valueChanged}"
+                                   autoSubmit="true"/>
+         <tr:outputFormatted id="cbTarget"
+                             partialTriggers="cb1"
+                             styleUsage="instruction"
+                             value="#{partialDemoUtil.status.checkBoxStateText}"/>
+         <tr:spacer width="20"/>
+         <tr:panelGroupLayout id="pg1" partialTriggers="cbTarget">
+          <tr:outputFormatted styleUsage="instruction"
+                              rendered="#{partialDemoUtil.status.checkBoxUpdateCount > 0}"
+                              value="(clicked #{partialDemoUtil.status.checkBoxUpdateCount} time"/>
+          <tr:outputFormatted styleUsage="instruction"
+                              rendered="#{partialDemoUtil.status.checkBoxUpdateCount > 1}"
+                              value="s"/>
+          <tr:outputFormatted styleUsage="instruction"
+                              rendered="#{partialDemoUtil.status.checkBoxUpdateCount > 0}"
+                              value=")"/>
+         </tr:panelGroupLayout>
+        </tr:panelGroupLayout>
+       </tr:panelHeader>
+
+       <tr:panelHeader text="Command components with partialSubmit">
+        <tr:outputFormatted styleUsage="instruction"
+                            value="This demo shows how command links and buttons can be used to generate partial events."/>
+        <tr:panelGroupLayout layout="horizontal">
+         <tr:panelGroupLayout layout="vertical">
+          <tr:commandLink id="pSub_link"
+                          immediate="true"
+                          partialSubmit="true"
+                          text="Do a partial Submit."
+                          actionListener="#{partialDemoUtil.action}"/>
+          <tr:spacer height="6"/>
+          <tr:commandButton id="pSub_button"
+                            immediate="true"
+                            partialSubmit="true"
+                            text="partialSubmit Button"
+                            actionListener="#{partialDemoUtil.action}"/>
+         </tr:panelGroupLayout>
+         <tr:spacer width="30" height="10"/>
+         <tr:panelGroupLayout>
+          <tr:panelLabelAndMessage label="last link click: ">
+           <tr:outputFormatted id="cmdTarget"
+                               partialTriggers="pSub_link pSub_button"
+                               styleUsage="instruction"
+                               value="#{partialDemoUtil.status.linkUpdate}">
+            <f:convertDateTime pattern="HH:mm:ss"/>
+           </tr:outputFormatted>
+          </tr:panelLabelAndMessage>
+         </tr:panelGroupLayout>
+        </tr:panelGroupLayout>
+       </tr:panelHeader>
+       <tr:panelHeader text="Command components with partialSubmit going to another page.">
+        <tr:panelGroupLayout layout="vertical">
+         <tr:commandLink immediate="true"
+                         partialSubmit="true"
+                         action="home"
+                         text="Go to Trinidad demos home page."/>
+         <tr:spacer height="6"/>
+         <tr:commandLink immediate="true"
+                         partialSubmit="true"
+                         action="demos.direct"
+                         text="Go to feature demos page (no redirect)."/>
+         <tr:spacer height="6"/>
+         <tr:commandButton immediate="true"
+                           partialSubmit="true"
+                           action="demos"
+                           text="Go to feature demos page."/>
+         </tr:panelGroupLayout>
+       </tr:panelHeader>
+       <tr:panelHeader text="Naming container tests"> 
+         <tr:panelGroupLayout layout="vertical">
+           <f:subview id="sub">
+             <tr:outputFormatted  partialTriggers="::pSub_link ::pSub_button"
+                                  styleUsage="instruction"
+                                  value="#{partialDemoUtil.status.linkUpdate}">
+               <f:convertDateTime pattern="HH:mm:ss"/>
+             </tr:outputFormatted>
+           </f:subview>
+           <f:subview id="sub2">
+            <f:subview id="sub3">
+             <tr:outputFormatted  partialTriggers=":::pSub_link :::pSub_button"
+                                  styleUsage="instruction"
+                                  value="#{partialDemoUtil.status.linkUpdate}">
+               <f:convertDateTime pattern="HH:mm:ss"/>
+             </tr:outputFormatted>
+             </f:subview>
+           </f:subview>
+         </tr:panelGroupLayout>
+       </tr:panelHeader>
+       <tr:panelHeader text="This Reset button will reset all values on the page.">
+        <tr:commandButton id="reset"
+                          text="Reset"
+                          immediate="true"
+                          actionListener="#{partialDemoUtil.reset}">
+         <tr:resetActionListener/>
+        </tr:commandButton>
+       </tr:panelHeader>
+      </tr:panelGroupLayout>
+     </tr:panelHeader>
+     </tr:panelPage>
+    </tr:form>
+  </tr:document>
+ </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/progressSteps.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/progressSteps.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/progressSteps.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/progressSteps.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:h="http://java.sun.com/jsf/html"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Progress steps Demo">
+        <tr:form>
+          <tr:panelPage>
+          
+            <f:facet name="navigationGlobal">
+             <tr:navigationPane hint="buttons">
+              <tr:commandNavigationItem 
+                text="Return to Feature Demos page"
+                immediate="true"
+                action="demos"
+                actionListener="#{progressSteps.cancelProcess}"/>
+             </tr:navigationPane>
+            </f:facet>
+          <tr:panelHeader
+             text="Progress steps demo using tr:forEach and BoundedRangeModel">
+
+            <tr:poll 
+              binding="#{editor.component}" 
+              interval="2000" 
+              id="pollid" 
+              pollListener="#{progressSteps.onPoll}"/>
+            <tr:outputFormatted 
+              styleUsage="instruction" 
+              value="&lt;b>The steps completed in a background task could be 
+              shown as a check list or a growing list as shown below.&lt;br>
+              This could be achieved using suitable output components and the
+              'tr:forEach' tag in conjunction with bindings to a 
+              BoundedRangeModel&lt;/b>"/>
+
+            <!--Represents a check list-->
+            <tr:panelHeader text="Progress steps as a check list"/>
+            <tr:panelGroupLayout layout="horizontal">
+              <tr:spacer width="30"/>
+              <tr:panelGroupLayout layout="vertical" partialTriggers="pollid" id="pg1">
+                <tr:forEach 
+                  var="progressStep" 
+                  varStatus="vs" 
+                  begin="0" 
+                  end="#{progressSteps.progressModel.maximum - 1}" 
+                  items="#{progressSteps.progressSteps}">
+                  <tr:panelGroupLayout layout="horizontal">
+                    <tr:spacer 
+                      width="13"
+                      rendered="#{vs.index > progressSteps.progressModel.value}"/>
+                    <tr:image 
+                      source="/components/images/processCheck.gif" 
+                      rendered="#{progressSteps.progressModel.value >= vs.index}"/>
+                    <tr:spacer width="5"/>
+                    <tr:outputText 
+                      value="#{progressStep}" 
+                      styleClass="AFFieldText"/>
+                  </tr:panelGroupLayout>
+                </tr:forEach>
+              </tr:panelGroupLayout>
+            </tr:panelGroupLayout>
+
+            <!--Represents a growing list-->
+            <tr:panelHeader text="Progress steps as a growing list"/>
+            <tr:panelGroupLayout layout="horizontal">
+              <tr:spacer width="30"/>
+              <tr:panelGroupLayout layout="vertical" partialTriggers="pollid" id="pg2">
+                <tr:forEach 
+                  var="progressStep" 
+                  varStatus="vs" 
+                  begin="0" 
+                  end="#{progressSteps.progressModel.maximum - 1}" 
+                  items="#{progressSteps.progressSteps}">
+                  <tr:panelGroupLayout layout="horizontal">
+                    <tr:outputText 
+                      value="#{progressStep}" 
+                      styleClass="AFFieldText"
+                      rendered="#{progressSteps.progressModel.value >= vs.index}"/>
+                  </tr:panelGroupLayout>
+                </tr:forEach>
+              </tr:panelGroupLayout>
+            </tr:panelGroupLayout>
+
+            <tr:panelHeader/>
+            <tr:panelGroupLayout layout="horizontal">
+              <tr:spacer width="30"/>
+              <tr:panelGroupLayout layout="vertical">
+                <tr:inputText 
+                  readOnly="true" 
+                  label="Date/Time from last full page refresh" 
+                  value="#{date.currentDate}" 
+                  styleClass="AFDataText">
+                  <tr:convertDateTime 
+                    pattern="EEEEEEEEE, ddMMMyyyy, HH:mm:ss z"/>
+                </tr:inputText>
+                <tr:spacer height="10"/>
+                <tr:commandButton 
+                  text="Cancel" 
+                  action="progressCancel" 
+                  actionListener="#{progressSteps.cancelProcess}"/>
+              </tr:panelGroupLayout>
+            </tr:panelGroupLayout>
+          </tr:panelHeader>
+
+          </tr:panelPage>
+        </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/simpleDialog.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/simpleDialog.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/simpleDialog.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/simpleDialog.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <trh:html>
+      <trh:head title="Simple dialog"/>
+      <trh:body>
+       <tr:form>
+        <tr:panelPage>
+          <tr:messages/>
+         <tr:panelHeader text="Hi there!">
+           <tr:panelButtonBar>
+            <tr:commandButton text="Say Hello" immediate="true">
+              <tr:returnActionListener/>                      
+            </tr:commandButton>
+           </tr:panelButtonBar>
+         </tr:panelHeader>
+        </tr:panelPage>
+       </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/successDialog.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/successDialog.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/successDialog.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/successDialog.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:trh="http://myfaces.apache.org/trinidad/html"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Success">
+      <tr:form>
+       <tr:panelPage>
+        <tr:panelHeader text="Success">
+         <tr:outputText value="The value was #{pageFlowScope.value}"/>
+         <tr:panelButtonBar>
+          <tr:commandButton text="Done" immediate="true">
+            <tr:returnActionListener/>                      
+          </tr:commandButton>
+         </tr:panelButtonBar>
+        </tr:panelHeader>
+       </tr:panelPage>
+     </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/WelCome.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/WelCome.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/WelCome.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/WelCome.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" 
+  xmlns:f="http://java.sun.com/jsf/core" 
+  xmlns:h="http://java.sun.com/jsf/html" 
+  xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+  xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Welcome to AddRow and TotalRow demos">
+      <tr:form >
+        <tr:panelPage>
+          <f:facet name="navigationGlobal">
+          <tr:navigationPane hint="buttons">
+            <tr:commandNavigationItem text="Return to Feature Demos page"
+                                immediate="true"
+                                action="demos"/>
+           </tr:navigationPane>
+          </f:facet>
+          <tr:outputFormatted styleUsage="instruction" 
+            value="These demos show how you can play around with table data"/>
+          <tr:panelGroupLayout layout="vertical">
+            <tr:panelHeader text="Add Row Demo">
+              <tr:outputFormatted styleUsage="instruction" 
+                value="This demo shows you how to add a row to your model 
+                      based on user input"/>
+              <tr:commandButton id="AddRowButton" 
+                text="go to AddRow Demo" action="addRow"/>
+            </tr:panelHeader>
+            <tr:panelHeader text="Total Row Demo">
+              <tr:outputFormatted styleUsage="instruction" 
+                value="This demo shows you how to calculate totals for
+                a particular column in your table."/>
+              <tr:commandButton id="TotalRowButton" text="go to TotalRow Demo" 
+                action="totalRow"/>
+            </tr:panelHeader>
+          </tr:panelGroupLayout>
+        </tr:panelPage>
+      </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/addRow.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/addRow.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/addRow.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/addRow.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" 
+          xmlns:f="http://java.sun.com/jsf/core" 
+          xmlns:h="http://java.sun.com/jsf/html" 
+          xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+           xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Add Row Demo">
+      <tr:form >
+        <tr:panelPage>
+          <tr:commandLink text ="Return to Demo Start Page" 
+            action="demos.tableDemos"/>
+          <tr:table var="row" value="#{Backer.list}" >
+            <tr:column>
+              <f:facet name="header">
+                <tr:outputText value="Element1"/>
+              </f:facet>
+              <tr:inputText value="#{row.data1}" columns="4" readOnly ="#{row.readOnly}" />
+            </tr:column>
+            <tr:column>
+              <f:facet name="header">
+                <tr:outputText value="Element2"/>
+              </f:facet>
+              <tr:inputText value="#{row.data2}" columns="4" readOnly ="#{row.readOnly}" />
+            </tr:column>
+            <f:facet name="footer">
+              <tr:commandButton text="Add Row" 
+                actionListener="#{Backer.addRow}"/>
+            </f:facet>
+          </tr:table>
+        </tr:panelPage>
+      </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/totalRow.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/totalRow.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/totalRow.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/tableDemos/totalRow.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" 
+  xmlns:f="http://java.sun.com/jsf/core" 
+  xmlns:h="http://java.sun.com/jsf/html" 
+  xmlns:trh="http://myfaces.apache.org/trinidad/html" 
+  xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Total Row Demo">
+      <tr:form >
+        <tr:panelPage>
+          <tr:commandLink text ="Return to Demo Start Page" 
+            action="demos.tableDemos"/>
+          <tr:table var="row" value="#{TotalBacker.list}" width="80%">
+            <tr:column width="20%">
+              <f:facet name="header">
+                <tr:outputText value="Element1" />
+              </f:facet>
+              <tr:outputText value="#{row.data1}"/>
+            </tr:column>
+            <tr:column width = "20%">
+              <f:facet name="header">
+                <tr:outputText value="Element2" />
+              </f:facet>
+              <tr:outputText value="#{row.data2}"/>
+              <f:facet name="footer">
+                <tr:commandButton text="Recalculate" 
+                  actionListener="#{TotalBacker.totalRow}"/>
+              </f:facet>
+            </tr:column>
+            <tr:column width = "20%">
+              <f:facet name="header">
+                <tr:outputText value="Totals" />
+              </f:facet>
+              <tr:outputText value="#{row.data2}"/>
+              <f:facet name="footer">
+                <tr:outputText value="#{TotalBacker.total}" />
+              </f:facet>
+            </tr:column>
+            <f:facet name="footer">
+              <tr:outputText value="Total"/>
+            </f:facet>
+          </tr:table>
+        </tr:panelPage>
+      </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/confirmSent.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/confirmSent.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/confirmSent.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/confirmSent.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core" 
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
+  <f:view>
+    <tr:document title="Message Sent">
+       <tr:form>
+        <tr:panelPage>
+          
+          <f:facet name="branding">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
+                <tr:image source="/email/images/pbs.gif"/>
+              </tr:panelGroupLayout>
+              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
+                                 styleUsage="inContextBranding"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+          
+          <f:facet name="navigationGlobal">
+              <tr:navigationPane hint="buttons">
+                <tr:commandNavigationItem text="Return to Index"
+                    immediate="true"
+                    action="home"/>
+                <tr:commandNavigationItem text="Logout" 
+                                  action="#{email.logout}"/>
+                <tr:commandNavigationItem text="Preferences"
+                                  action="preferences"/>
+                <tr:commandNavigationItem text="Help"
+                                  action="action.none"/>
+              </tr:navigationPane>
+            </f:facet>
+            
+            <f:facet name="infoUser">
+              <tr:outputFormatted value="Logged in as #{email.username}"
+                             styleUsage="pageStamp"/>
+            </f:facet>
+        
+          <tr:panelHeader messageType="confirmation" text="Message Sent">
+            <tr:outputFormatted value="#{nls.MESSAGE_SENT}"/>
+          </tr:panelHeader>
+
+          <!--
+          <f:facet name="infoReturn">
+            <tr:commandLink text="Return to #{email.currentFolder.name}"
+                            action="messages" immediate="true"/>
+          </f:facet>
+          -->
+          <tr:panelButtonBar>
+            <tr:commandButton textAndAccessKey="Back to &amp;Messages" immediate="true"
+                              action="messages"/>                                
+          </tr:panelButtonBar>
+        </tr:panelPage>
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/images/deleted.gif
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/images/deleted.gif?view=auto&rev=515587
==============================================================================
Binary file - no diff available.

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/images/deleted.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/images/pbs.gif
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/images/pbs.gif?view=auto&rev=515587
==============================================================================
Binary file - no diff available.

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/images/pbs.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/login.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/login.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/login.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/login.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad">
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
+  <f:view>
+    <tr:document title="Email Log In">
+        <tr:form>
+          <tr:panelPage>
+            <tr:messages/>
+            <f:facet name="branding">
+              <tr:panelGroupLayout layout="vertical">
+                <tr:panelGroupLayout>
+                  <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}"
+                                      styleClass="AFHeaderLevelOne"/>
+                  <tr:image source="/email/images/pbs.gif"
+                                  shortDesc="Email demo"/>
+                </tr:panelGroupLayout>
+                <tr:outputFormatted value="Customer &lt;b>Foo - Anywhere, U.S.A. &lt;/b>"
+                                    styleUsage="inContextBranding"/>
+              </tr:panelGroupLayout>
+            </f:facet>
+            <f:facet name="navigationGlobal">
+              <tr:navigationPane hint="buttons">
+                <tr:commandNavigationItem text="Return to Index" immediate="true"
+                                    action="home"/>
+                <tr:commandNavigationItem text="Help" action="action.none"/>
+              </tr:navigationPane>
+            </f:facet>
+            <f:facet name="infoStatus">
+              <tr:outputText styleClass="AFErrorText"
+                             value="Note: The Trinidad Email Demo application is not                  configured to use a secure communication channel between                  the browser and the application server - or between the                  application server and the IMAP server.                   This means that your data (including your user name/password                  and email contents) are transmitted in a non-secure manner.                   Thus, this sample application should only be used in environments                 that are known to be secure."/>
+            </f:facet>
+           <tr:panelHeader text="Email Log In">
+            <tr:panelFormLayout>
+              <tr:inputText required="true" labelAndAccessKey="&amp;Username"
+                            value="#{email.username}">
+                <f:facet name="help">
+                  <tr:outputFormatted value="The part that comes &lt;b>before&lt;/b> the @ in your email address"/>
+                </f:facet>
+              </tr:inputText>
+              <tr:inputText labelAndAccessKey="&amp;Password"
+                            value="#{email.password}" secret="true"/>
+              <tr:inputText required="true" label="Domain"
+                            value="#{email.domain}">
+                <f:facet name="help">
+                  <tr:outputFormatted value="The part that comes &lt;b>after&lt;/b> the @ in your email address"/>
+                </f:facet>
+                </tr:inputText>
+              <tr:inputText required="true" label="IMAP Server"
+                            value="#{email.server}"/>
+              <tr:inputText required="true" label="SMTP Server"
+                            value="#{email.smtpServer}"/>
+            </tr:panelFormLayout>
+           </tr:panelHeader>
+            <tr:panelButtonBar>
+              <tr:commandButton textAndAccessKey="&amp;Log In"
+                                action="#{email.login}"/>
+            </tr:panelButtonBar>
+          </tr:panelPage>
+        </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/messages.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/messages.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/messages.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/messages.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->  
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
+  
+  <f:view>
+    <tr:document title="Message List">
+       <tr:form>
+       
+        <tr:panelPage>
+          <tr:messages/>
+          
+          <f:facet name="branding">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
+                <tr:image source="/email/images/pbs.gif"/>
+              </tr:panelGroupLayout>
+              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
+                                 styleUsage="inContextBranding"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+          
+          <f:facet name="navigationGlobal">
+              <tr:navigationPane hint="buttons">
+                <tr:commandNavigationItem text="Return to Index"
+                    immediate="true"
+                    action="home"/>
+                <tr:commandNavigationItem text="Logout" 
+                                  action="#{email.logout}"/>
+                <tr:commandNavigationItem text="Preferences"
+                                  action="preferences"/>
+                <tr:commandNavigationItem text="Help"
+                                  action="action.none"/>
+              </tr:navigationPane>
+            </f:facet>
+            
+            <f:facet name="infoUser">
+              <tr:outputFormatted value="Logged in as #{email.username}"
+                                  styleUsage="pageStamp"/>
+            </f:facet>
+             <f:facet name="navigation3">
+                <tr:tree var="currentFolder" value="#{email.folderModel}">
+                  <f:facet name="nodeStamp">
+                    <tr:commandLink 
+                           disabled="#{!currentFolder.holdsMessages}"
+                           action="#{currentFolder.viewMessages}">
+                      <tr:outputText value="#{currentFolder.name}"/>
+                      <tr:outputText
+                         rendered="#{currentFolder.unreadMessageCount &gt; 0}"
+                         value=" (#{currentFolder.unreadMessageCount})"/>
+                    </tr:commandLink>
+                  </f:facet>
+                </tr:tree>
+            </f:facet>
+           <tr:panelHeader text="View Messages for Folder #{email.currentFolder.name}">
+            <tr:table rows="#{email.preferences.rowsShown}"
+                      var="currentMessage"
+                      value="#{email.currentFolder.messageListModel}"
+                      binding="#{messagesBacking.messagesTable}"
+                      first="#{email.currentFolder.startIndex}"
+                      rangeChangeListener="#{messagesBacking.saveFirst}"
+                      width="85%"
+                      summary="Messages table"
+                      emptyText="No messages."
+                      rowSelection="multiple"
+                      rowBandingInterval = "1">
+              <f:facet name="footer">
+                <tr:commandButton text="Delete"
+                        actionListener="#{messagesBacking.performDelete}"/>
+              </f:facet>
+              <tr:column  noWrap="true">
+                <f:facet name="header">
+                  <tr:outputText value="Subject"/>
+                </f:facet>
+                <tr:panelGroupLayout>
+                  <tr:image rendered="#{currentMessage.deleted}"
+                                  source="/email/images/deleted.gif"/>
+                  <tr:commandLink action="showMessage">
+                    <tr:outputText
+                       styleClass="#{currentMessage.read ? null : 'AFDataText'}"
+                       truncateAt="25" value="#{currentMessage.subject}"
+                       shortDesc="#{currentMessage.subject}"/>
+                    <tr:setActionListener from="#{currentMessage}"
+                                          to="#{pageFlowScope.message}"/>
+                  </tr:commandLink>
+                </tr:panelGroupLayout>
+              </tr:column>
+              <tr:column rendered="#{email.preferences.displaySenderColumn}">
+                <f:facet name="header">
+                  <tr:outputText value="Sender"/>
+                </f:facet>
+                <tr:outputText value="#{currentMessage.sender}">
+                  <f:converter converterId="org.apache.myfaces.trinidaddemo.email.EmailDisplay"/>
+                </tr:outputText>
+              </tr:column>
+              <tr:column noWrap="true"
+                         rendered="#{email.preferences.displayDateColumn}">
+                <f:facet name="header">
+                  <tr:outputText value="Sent"/>
+                </f:facet>
+                <tr:outputText value="#{currentMessage.sentDate}">
+                  <f:converter converterId="org.apache.myfaces.trinidaddemo.email.RelativeDate"/>
+                </tr:outputText>
+              </tr:column>
+              <tr:column rendered="#{email.preferences.displaySizeColumn}">
+                <f:facet name="header">
+                  <tr:outputText value="Size"/>
+                </f:facet>
+                <tr:outputText value="#{currentMessage.size} kB"/>
+              </tr:column>
+            </tr:table>
+           </tr:panelHeader>
+          <tr:panelButtonBar>
+            <tr:commandButton text="First"
+                              disabled="#{!messagesBacking.firstEnabled}"
+                              action="#{messagesBacking.first}"/>
+            <tr:commandButton text="Last"
+                              disabled="#{!messagesBacking.lastEnabled}"
+                              action="#{messagesBacking.last}"/>
+            <tr:commandButton text="New Message" action="newMessage"/>
+            <tr:commandButton text="Refresh"
+                              action="#{messagesBacking.refresh}"/>
+            <tr:commandButton text="Compact"
+                              action="#{messagesBacking.compact}"/>
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/newMessage.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/newMessage.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/newMessage.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/email/newMessage.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <!-- 
+  Load a resource bundle localized for the Locale of the current view, 
+  and expose it (as a Map) in the request attributes of the current request. 
+  Please note that we are not localizing every string in this demo. We want
+  to show you an example of how to do this, but also make the demo an
+  example that is easy to follow.
+  -->  
+  <f:loadBundle var="nls"
+                basename="org.apache.myfaces.trinidaddemo.email.resource.EmailDemoBundle"/>
+  
+  <f:view>
+    <tr:document title="New Message">
+       <tr:form usesUpload="true">
+        <tr:panelPage>
+          <tr:messages/>
+
+          <f:facet name="infoStatus">
+            <tr:legend name="required" />
+          </f:facet>
+          
+          <f:facet name="branding">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:outputFormatted value="#{nls.EMAIL_DEMO_TITLE}" styleClass="AFHeaderLevelOne"/>
+                <tr:image source="/email/images/pbs.gif"/>
+              </tr:panelGroupLayout>
+              <tr:outputFormatted value="Customer &lt;b&gt;Foo - Anywhere, U.S.A. &lt;/b&gt;"
+                                 styleUsage="inContextBranding"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+          
+          <f:facet name="navigationGlobal">
+              <tr:navigationPane hint="buttons">
+                <tr:commandNavigationItem text="Return to Index"
+                    immediate="true"
+                    action="home"/>
+                <tr:commandNavigationItem text="Logout" 
+                                  action="#{email.logout}"/>
+                <tr:commandNavigationItem text="Preferences"
+                                  action="preferences"/>
+                <tr:commandNavigationItem text="Help"
+                                  action="action.none"/>
+              </tr:navigationPane>
+            </f:facet>
+            
+            <f:facet name="infoUser">
+              <tr:outputFormatted value="Logged in as #{email.username}"
+                             styleUsage="pageStamp"/>
+            </f:facet>
+
+         <tr:panelHeader text="New Message">
+          <tr:panelFormLayout inlineStyle="width: 100%" labelWidth="15%" fieldWidth="85%">
+            <tr:inputText label="Subject:" 
+                          required="true"
+                          value="#{newMessageBacking.subject}"/>
+            <tr:inputText label="To:" 
+                          required="true"
+                          value="#{newMessageBacking.to}"
+                          validator="#{newMessageBacking.validateEmailList}"/>
+            <tr:inputText label="Cc:" 
+                          value="#{newMessageBacking.cc}"
+                          validator="#{newMessageBacking.validateEmailList}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{newMessageBacking.attachment1}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{newMessageBacking.attachment2}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{newMessageBacking.attachment3}"/>
+            <tr:inputText label="Content:" columns="80" rows="20" wrap="soft"
+                          value="#{newMessageBacking.content}"/>
+          </tr:panelFormLayout>
+         </tr:panelHeader>
+          <!--
+          <f:facet name="infoReturn">
+            <tr:commandLink text="Return to #{email.currentFolder.name}"
+                            action="messages" immediate="true"/>
+          </f:facet>
+          -->
+          <tr:panelButtonBar>
+            <tr:commandButton textAndAccessKey="&amp;Send Message"
+                              action="#{newMessageBacking.send}"/>
+            <tr:commandButton textAndAccessKey="Save as &amp;Draft"
+                              action="#{newMessageBacking.saveAsDraft}"/>
+            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
+                              action="cancel"/>                                
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>