myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r546977 [16/19] - in /myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo: ./ src/ src/conf/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/myfaces/ src/main/java...
Date Wed, 13 Jun 2007 17:53:08 GMT
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/pprDemos.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,296 @@
+<?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:panelHeader text="Changing the value of this selectOneChoice will navigate to another page.">
+         <tr:selectOneChoice autoSubmit="true"
+                             label="Navigate"
+                             unselectedLabel="Nowhere"
+                             valueChangeListener="#{partialDemoUtil.navigate}">
+          <tr:selectItem label="Index" value="/index.jspx"/>
+          <tr:selectItem label="Component Demos" value="/componentDemos.jspx"/>
+         </tr:selectOneChoice>
+       </tr:panelHeader>
+      </tr:panelGroupLayout>
+     </tr:panelHeader>
+     </tr:panelPage>
+    </tr:form>
+  </tr:document>
+ </f:view>
+</jsp:root>

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/progressSteps.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/progressSteps.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/progressSteps.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/progressSteps.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/simpleDialog.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/simpleDialog.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/simpleDialog.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/simpleDialog.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/successDialog.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/successDialog.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/successDialog.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/successDialog.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/WelCome.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/WelCome.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/WelCome.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/WelCome.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/addRow.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/addRow.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/addRow.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/addRow.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/totalRow.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/totalRow.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/totalRow.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/tableDemos/totalRow.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/confirmSent.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/confirmSent.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/confirmSent.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/confirmSent.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/images/deleted.gif
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/images/deleted.gif?view=auto&rev=546977
==============================================================================
Binary file - no diff available.

Propchange: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/images/deleted.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/images/pbs.gif
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/images/pbs.gif?view=auto&rev=546977
==============================================================================
Binary file - no diff available.

Propchange: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/images/pbs.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/login.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/login.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/login.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/login.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/messages.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/messages.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/messages.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/messages.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/newMessage.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/newMessage.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/newMessage.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/newMessage.jspx Wed Jun 13 10:52:53 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>

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/preferences.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/preferences.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/preferences.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/preferences.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,112 @@
+<?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="Preferences">
+       <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" selected="true"/>
+                <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="Update Preferences">
+          <tr:panelFormLayout> 
+            <tr:selectOneChoice label="Skin-family:"
+                              value="#{email.preferences.skinFamily}">
+              <f:selectItems value="#{email.preferences.skinFamilyItems}"/>
+            </tr:selectOneChoice>
+            <tr:selectOneChoice label="Accessibility features:"
+                              value="#{email.preferences.accessibilityMode}">
+              <f:selectItems value="#{email.preferences.accessibilityModeItems}"/>
+            </tr:selectOneChoice>
+            <tr:inputText label="Messages per screen:"
+                          value="#{email.preferences.rowsShown}">
+              <f:facet name="help">
+                <tr:outputText value="Enter a value between 5 and 100."/>
+              </f:facet>
+              <f:validateLongRange minimum="5" maximum="100"/>
+            </tr:inputText>
+            <tr:panelLabelAndMessage label="Columns:">
+              <tr:panelGroupLayout layout="vertical">
+                <tr:selectBooleanCheckbox text="Sender"
+                     value="#{email.preferences.displaySenderColumn}"/>
+                <tr:selectBooleanCheckbox text="Date"
+                     value="#{email.preferences.displayDateColumn}"/>
+                <tr:selectBooleanCheckbox text="Size"
+                     value="#{email.preferences.displaySizeColumn}"/>
+              </tr:panelGroupLayout>
+            </tr:panelLabelAndMessage>
+          </tr:panelFormLayout>
+         </tr:panelHeader>
+          <tr:panelButtonBar>  
+            <tr:commandButton textAndAccessKey="&amp;Save"
+                              action="success"/>   
+            <tr:commandButton textAndAccessKey="Cance&amp;l"
+                              action="success" immediate="true"/>                                  
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/replyToMessage.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/replyToMessage.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/replyToMessage.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/replyToMessage.jspx Wed Jun 13 10:52:53 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="#{replyToMessageBacking.subject}"/>
+            <tr:inputText label="To:" 
+                          required="true"
+                          value="#{replyToMessageBacking.to}"
+                          validator="#{replyToMessageBacking.validateEmailList}"/>
+            <tr:inputText label="Cc:" 
+                          value="#{replyToMessageBacking.cc}"
+                          validator="#{replyToMessageBacking.validateEmailList}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{replyToMessageBacking.attachment1}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{replyToMessageBacking.attachment2}"/>
+            <tr:inputFile label="Attachment:"
+                          value="#{replyToMessageBacking.attachment3}"/>
+            <tr:inputText label="Content:" columns="80" rows="20" wrap="soft"
+                          value="#{replyToMessageBacking.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="#{replyToMessageBacking.send}"/>
+            <tr:commandButton textAndAccessKey="Save as &amp;Draft"
+                              action="#{replyToMessageBacking.saveAsDraft}"/>
+            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
+                              action="cancel"/>                                
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/showMessage.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/showMessage.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/showMessage.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/email/showMessage.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,167 @@
+<?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"/>
+  <!-- 
+  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">
+       <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>
+          
+        <tr:panelHeader text="Message">
+          <tr:panelBorderLayout>
+            <!-- Top section: include the headers -->
+            <f:facet name="innerTop">
+              <tr:panelFormLayout inlineStyle="width: 100%" labelWidth="15%" fieldWidth="85%">
+                <tr:panelLabelAndMessage label="From:">
+                  <tr:outputText value="#{showMessageBacking.message.sender}"/>
+                </tr:panelLabelAndMessage>
+                <tr:panelLabelAndMessage label="To:">
+                  <tr:panelGroupLayout layout="vertical">
+                    <tr:forEach items="#{showMessageBacking.message.tos}"
+                                var="address">  
+                      <tr:outputText value="#{address}"/>
+                    </tr:forEach>
+                 </tr:panelGroupLayout>
+                </tr:panelLabelAndMessage>
+                <tr:panelLabelAndMessage label="Cc:"
+                  labelStyle="vertical-align: top;">
+                  <tr:panelGroupLayout layout="vertical">
+                    <tr:forEach items="#{showMessageBacking.message.ccs}"
+                                var="address">
+                      <tr:outputText value="#{address}"/>
+                    </tr:forEach>
+                  </tr:panelGroupLayout>
+                </tr:panelLabelAndMessage>
+                <tr:inputText label="Subject:" readOnly="true"
+                              value="#{showMessageBacking.message.subject}"/>
+                <tr:inputText label="Sent:" readOnly="true"
+                              value="#{showMessageBacking.message.sentDate}"/>
+                <!-- Commented out: content type
+                <tr:inputText label="Content type:" readOnly="true"
+                              value="#{showMessageBacking.message.contentType}"/>
+                -->
+              </tr:panelFormLayout>
+
+            </f:facet>
+
+            <!-- Main content -->
+            <tr:panelHeader text="Content:">
+              <!-- For plain text, show in a readOnly inputText -->
+              <tr:inputText rendered="#{showMessageBacking.message.contentType == 'TEXT/PLAIN'}"
+                            readOnly="true" columns="80"
+                            rows="#{showMessageBacking.message.lineCount &gt; 30
+                                ? 30 : showMessageBacking.message.lineCount}"
+                            value="#{showMessageBacking.message.content}"/>
+              <!-- HTML content: run through our "outputFormatted" filter -->
+              <trh:rowLayout rendered="#{showMessageBacking.message.contentType != 'TEXT/PLAIN'}"
+                          width="75%">
+                <tr:outputFormatted
+                          value="#{showMessageBacking.message.content}"/>
+              </trh:rowLayout>
+            </tr:panelHeader>
+  
+            <!-- Side content for the secondary layer: show attachments -->
+            <f:facet name="auxiliary2">
+              <tr:panelBox text="Attachments"
+                    rendered="#{showMessageBacking.message.attachmentPresent}">
+                <tr:panelGroupLayout layout="vertical">
+                  <tr:forEach items="#{showMessageBacking.message.attachments}"
+                              var="attachment">
+                    <tr:commandLink text="#{attachment.fileName}"
+                        action="#{showMessageBacking.downloadAttachment}">
+                      <tr:setActionListener from="#{attachment}"
+                         to="#{showMessageBacking.attachmentToDownload}"/>
+                    </tr:commandLink>
+                  </tr:forEach>
+                </tr:panelGroupLayout>
+              </tr:panelBox>
+            </f:facet>
+          </tr:panelBorderLayout>
+        </tr:panelHeader>
+          <!--
+          <f:facet name="infoReturn">
+            <tr:commandLink text="Return to #{email.currentFolder.name}"
+                            action="messages"/>
+          </f:facet>
+          -->
+          <tr:panelButtonBar>
+            <tr:commandButton textAndAccessKey="&amp;Reply" 
+                              action="reply">
+              <tr:setActionListener from="#{'false'}"
+                                    to="#{pageFlowScope.replyToAll}"/>
+            </tr:commandButton>  
+            <tr:commandButton textAndAccessKey="&amp;Reply to &amp;All" 
+                              action="reply">
+              <tr:setActionListener from="#{'true'}"
+                                    to="#{pageFlowScope.replyToAll}"/>
+            </tr:commandButton>                   
+            <tr:commandButton textAndAccessKey="Cance&amp;l" immediate="true"
+                              action="messages"/>                                
+          </tr:panelButtonBar>
+        </tr:panelPage>
+    
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/index.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/index.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/index.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/index.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,64 @@
+<?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"/>
+  <f:view>
+    <tr:document title="Apache Trinidad Demo Index">
+       <tr:form>
+       
+        <tr:panelPage>
+         <tr:messages/>
+         <tr:panelHeader text="Welcome to the Apache Trinidad Demos">  
+          <tr:panelHeader text="Basics">    
+            <tr:panelGroupLayout layout="vertical">
+              <tr:commandLink text="Component Guide" action="guide" />
+            </tr:panelGroupLayout>
+          </tr:panelHeader>
+          
+          <tr:panelHeader text="Simple Demos">     
+            <tr:panelGroupLayout layout="vertical">
+              <tr:commandLink text="Feature Demos"
+                       action="demos" />
+            </tr:panelGroupLayout>
+          </tr:panelHeader>
+
+          <tr:panelHeader text="Sample Applications">     
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelGroupLayout>
+                <tr:commandLink text="Email" action="emaildemo" />
+                <tr:outputText styleClass="AFInstructionText" value=" - Trinidad Email Demo"/>
+              </tr:panelGroupLayout>
+              <tr:panelGroupLayout>
+                <tr:commandLink text="Survey" action="survey" />                
+                <tr:outputText styleClass="AFInstructionText" value=" - simple application"/>
+              </tr:panelGroupLayout>
+
+            </tr:panelGroupLayout>
+          </tr:panelHeader>
+         </tr:panelHeader>
+        </tr:panelPage>
+       
+       </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>



Mime
View raw message