myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r546977 [15/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/convertValidate/dateRestrictionValidate.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,72 @@
+<?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 version="1.2" xmlns:tr="http://myfaces.apache.org/trinidad"
+          xmlns:f="http://java.sun.com/jsf/core"
+          xmlns:jsp="http://java.sun.com/JSP/Page">
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Trinidad DateRestrictionValidator">
+        <tr:form>
+          <tr:panelPage>
+            <tr:messages/>
+            <f:facet name="navigationGlobal">
+              <tr:navigationPane hint="buttons">
+                <tr:commandNavigationItem text="Validators and Converters"
+                                    action="convertValidateDemos"
+                                    immediate="true"/>
+              </tr:navigationPane>
+            </f:facet>
+          <tr:panelHeader text="Date Restriction Validator">
+            <tr:panelFormLayout>
+              <tr:inputDate id="days" value="#{dateRestrictionValidator.testInvalidDays}"
+                                  label="Select a date!">
+                <f:facet name="help">
+                  <tr:outputText value="Ensures, that  #{dateRestrictionValidator.country} holidays are not selectable"/>
+                </f:facet>
+                <tr:convertDateTime pattern="yyyy-MM-dd"/>
+                <tr:validateDateRestriction  invalidDays="#{dateRestrictionValidator.nationalHolidays}" />
+              </tr:inputDate>
+              
+              <tr:inputDate id="month" value="#{dateRestrictionValidator.testInvalidMonth}"
+                                  label="Select a date!">
+                <f:facet name="help">
+                  <tr:outputText value="November/December dates are not allowed here!"/>
+                </f:facet>
+                <tr:convertDateTime pattern="yyyy-MM-dd"/>
+                <tr:validateDateRestriction  invalidMonths="Nov Dec" />
+              </tr:inputDate>
+              
+              <tr:inputDate id="daysOfWeek" value="#{dateRestrictionValidator.testInvalidDaysOfWeek}"
+                                  label="Select a date!">
+                <f:facet name="help">
+                  <tr:outputText value="Please no Mondays...!"/>
+                </f:facet>
+                <tr:convertDateTime pattern="yyyy-MM-dd"/>
+                <tr:validateDateRestriction  invalidDaysOfWeek="Mon"/>
+              </tr:inputDate>
+            </tr:panelFormLayout>
+           </tr:panelHeader>
+           <tr:commandButton text="Submit"/>
+          </tr:panelPage>
+        </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>
\ No newline at end of file

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,49 @@
+<?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="Converter and Validator 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="Converter and Validator Demos">
+              <tr:panelGroupLayout layout="vertical">
+                <tr:commandLink text="client converters and validators" action="clientConvert"/>
+                <tr:commandLink text="converters and validators" action="convertValidate"/>
+                <tr:commandLink text="client Date Restriction Validator" action="clientDateRestrictionValidate" />
+                <tr:commandLink text="Date Restriction Validator" action="dateRestrictionValidate" />
+                <tr:commandLink text="message customization on validators and converters" action="messageCustomization"/>
+              </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/CustomPortletStyles.css
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css Wed Jun 13 10:52:53 2007
@@ -0,0 +1,172 @@
+/** Table portlet styles */
+.portlet-table-header {
+  border-color:#999999;
+  border-style:solid;
+  border-width:1px 1px 0px;
+  font-family:Helvetica;
+  font-size:10pt;
+  font-weight:bold;
+  background-color: lightgray;
+  color:#000000;
+  padding:1px 2px}
+
+.portlet-table-body {
+  border-color:red;
+  white-space:nowrap;
+  border-style:solid;
+  border-width:1px;
+  font-family:Helvetica;
+  font-size:10pt;
+  text-align:left;
+  background-color:#DFE0FD;
+  color:#000000;
+  vertical-align:baseline}
+
+.portlet-table-alternate {
+  border-color:red;
+  white-space:nowrap;
+  border-style:solid;
+  border-width:1px;
+  font-family:Helvetica;
+  font-size:10pt;
+  text-align:left;
+  background-color:#FFFFC0;
+  color:#000000;
+  vertical-align:baseline}
+
+.portlet-table-footer {
+  border-color:#999999;
+  border-style:solid;
+  border-width:1px 1px 0px;
+  font-family:Helvetica;
+  font-size:10pt;
+  font-weight:bold;
+  text-align:left;
+  background-color:#FF40FF;
+  color:#000000;
+  padding:1px 2px}
+
+.portlet-table-text {
+  border-color:#999999;
+  border-style:solid;
+  border-width:1px 1px 0px;
+  font-family:Helvetica;
+  font-size:10pt;
+  background-color:#e9e8e8;
+  color:#000000;
+  padding:1px 2px}
+
+.portlet-form-label {
+  font-size: 10pt;
+  font-weight: bold;
+  font-family:Helvetica;
+  color:blue;
+  text-align:right;
+}
+
+.portlet-form-field-label {
+  font-family:Helvetica;
+  font-size: 10pt;
+  color:Navy;
+}
+
+.portlet-form-field {
+  font-family:Helvetica;
+  font-size: 10pt;
+  color:aqua;   
+}
+
+.portlet-form-input-field {
+  font-family:Helvetica;
+  font-size: 10pt;
+  color:red;  
+}
+
+.portlet-msg-error {
+  font-family:Helvetica;
+  font-size: 18pt;
+  color:red;
+}
+
+.portlet-msg-alert {
+  font-family:Helvetica;
+  font-size: 10pt;
+  color:Fuchsia;
+}
+
+.portlet-msg-info {
+  font-family:Helvetica;
+  font-size: 10pt;
+  color:gray;
+}
+
+.portlet-font {
+  font-family:Helvetica;
+  font-size: 10pt;
+  color:blue;
+}
+
+.portlet-font-dim {
+  font-family:Helvetica;
+  font-size: 10pt;
+  color:lightgray;
+}
+
+.portlet-section-header {
+ font-family:Helvetica;
+ color:purple;
+ font-size:14pt;
+}
+.portlet-section-subheader {
+ font-family:Helvetica;
+ color:purple;
+ font-size: 12pt;
+}
+.portlet-menu {
+  font-family:Helvetica;
+  font-size: 10pt;
+  font-weight: normal; 
+}
+.portlet-menu-item-selected {
+ background-color:pink;
+}
+.portlet-menu-item {
+  background-color:#C0FFFF;
+}
+.portlet-menu-cascade {
+  font-family:Helvetica;
+  font-size: 10pt;
+  font-weight: normal; 
+  background-color:pink;
+  color:#ffffff;
+  min-height:4px;
+  padding:2px;
+}
+/* nothing */
+.portlet-menu-cascade-item  {
+}
+
+.portlet-menu-cascade-item-selected {
+  font-weight:bold;
+}
+/* color doesn't show up on links unless I do this */
+.portlet-menu-cascade-item-selected A {
+  color:purple;
+}
+
+.portlet-menu-cascade-separator
+{
+  color:#ffffff;
+}
+
+.portlet-menu-separator
+{
+  width:0px;
+}
+
+A
+{
+  font-family:Helvetica;
+  font-size: 10pt;
+}
+

Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/cancelledDialog.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/cancelledDialog.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/cancelledDialog.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/cancelledDialog.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="Cancelled">
+      <tr:form>
+       <tr:panelPage>
+        <tr:panelHeader text="Cancelled">
+         <tr:outputText value="The dialog was cancelled."/>
+         <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/carDemo.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/carDemo.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/carDemo.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/carDemo.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,84 @@
+<?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="Car Demo"/>
+      <trh:body>
+       <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:messages/>
+         <tr:panelFormLayout>
+
+          <tr:selectOneChoice id="makesChoice" label="Makes:"
+                              autoSubmit="true"
+                              valueChangeListener="#{carBacking.makeChanged}">
+           <f:selectItems value="#{carBacking.makes}"/>
+          </tr:selectOneChoice>
+
+          <tr:selectOneChoice id="modelsChoice"
+                              autoSubmit="true"
+                              valueChangeListener="#{carBacking.modelChanged}"
+                              partialTriggers="makesChoice" label="Models:">
+           <f:selectItems binding="#{carBacking.modelItems}"/>
+          </tr:selectOneChoice>
+
+         </tr:panelFormLayout>
+
+         <!-- Show the price -->
+         <tr:panelGroupLayout layout="vertical">
+          <tr:outputText value="Price: "/>
+          <tr:outputText id="price" 
+                         partialTriggers="modelsChoice makesChoice launchOptions"
+                         binding="#{carBacking.price}">
+           <f:convertNumber type="currency"/>
+          </tr:outputText>
+          <tr:spacer width="10"/>
+          <!-- A link to show the options;  it starts out disabled -->
+          <tr:commandLink id="launchOptions" disabled="true"
+                         shortDesc="Click to pick new options"
+                         partialTriggers="modelsChoice makeChoice"
+                         returnListener="#{carBacking.returnOptions}"
+                         binding="#{carBacking.launchOptions}"
+                         useWindow="true"
+                         action="dialog:optionsDialog" text="Pick options: "/>
+          <tr:outputText id="options"
+                         binding="#{carBacking.options}"
+                         partialTriggers="launchOptions modelsChoice makeChoice"/>
+         </tr:panelGroupLayout>
+
+        </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/changeDemos/addRemoveFacetsChange_Explicit.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveFacetsChange_Explicit.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveFacetsChange_Explicit.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveFacetsChange_Explicit.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,119 @@
+<?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="Explicit AddFacetChange/RemoveFacetChange Persistence Feature Demo">
+        <tr:form>
+
+          <tr:panelPage id="pp1" >
+            <f:facet name="navigation1">
+              <tr:navigationPane hint="tabs">
+                <tr:commandNavigationItem text="tab 1"/>
+                <tr:commandNavigationItem text="tab 2" selected="true" />
+                <tr:commandNavigationItem text="tab 3"/>
+                <tr:commandNavigationItem text="tab 4"/>
+                <tr:commandNavigationItem text="tab 5"/>
+                <tr:commandNavigationItem text="tab 6" disabled="true" />
+              </tr:navigationPane>
+            </f:facet>
+            <f:facet name="navigation2">
+              <tr:navigationPane hint="bar">
+                <tr:commandNavigationItem text="item 1" selected="true" />
+                <tr:commandNavigationItem text="item 2" disabled="true" />
+                <tr:commandNavigationItem text="item 3"/>
+                <tr:commandNavigationItem text="item 4"/>
+              </tr:navigationPane>
+            </f:facet>
+            <f:facet name="navigation3">
+              <tr:navigationPane hint="list">
+                <tr:commandNavigationItem text="item 1" selected="true" />
+                <tr:commandNavigationItem text="item 2" disabled="true" />
+                <tr:commandNavigationItem text="item 3"/>
+                <tr:commandNavigationItem text="item 4"/>
+              </tr:navigationPane>
+            </f:facet>
+            <f:facet name="navigationGlobal">
+              <tr:navigationPane hint="buttons">
+                <tr:commandNavigationItem 
+                  text="Return to Change Persistence demo index page"
+                  immediate="true"
+                  action="demos.changePersistence"/>
+                <tr:commandNavigationItem 
+                  text="help"
+                  icon="/components/images/globalhelp.gif"/>
+                <tr:commandNavigationItem 
+                  text="help more"
+                  icon="/components/images/globalhelp.gif"/>
+              </tr:navigationPane>
+            </f:facet>
+            <f:facet name="location">
+              <tr:breadCrumbs>
+                <tr:commandNavigationItem text="item 1"/>
+                <tr:commandNavigationItem text="item 2"/>
+                <tr:commandNavigationItem text="item 3"/>
+                <tr:commandNavigationItem text="item 4"/>
+              </tr:breadCrumbs>
+            </f:facet>
+            <f:facet name="appCopyright">
+              <tr:outputText value="copyright facet"/>
+            </f:facet>
+            <f:facet name="appPrivacy">
+              <tr:commandLink text="privacy facet"/>
+            </f:facet>
+            <f:facet name="appAbout">
+              <tr:commandLink text="about facet"/>
+            </f:facet>
+          <tr:panelHeader
+            text="Explicit AddFacetChange/RemoveFacetChange Persistence Feature Demo">
+            <tr:panelGroupLayout layout="vertical">
+              <f:facet name="separator">
+                <tr:separator/>
+              </f:facet>
+              <tr:commandButton 
+                text="navigation1: Remove facet for menu tabs" 
+                actionListener="#{change.removeFacets}"/>
+              <tr:commandButton 
+                text="navigation2: Remove facet for menu bar" 
+                actionListener="#{change.removeFacets}"/>
+              <tr:commandButton 
+                text="navigation3: Remove facet for menu list" 
+                actionListener="#{change.removeFacets}"/>
+              <tr:commandButton 
+                text="location: Remove facet for menu path" 
+                actionListener="#{change.removeFacets}"/>
+              <tr:commandButton 
+                text="appCopyright_appPrivacy_appAbout: Remove facets for 'copyright', 'privacy', 'about' information" 
+                actionListener="#{change.removeFacets}"/>
+              <tr:commandButton 
+                text="Add facet for application branding" 
+                actionListener="#{change.addFacet}"/>
+            </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/changeDemos/addRemoveReorderChildrenChange_Explicit.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveReorderChildrenChange_Explicit.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveReorderChildrenChange_Explicit.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveReorderChildrenChange_Explicit.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,102 @@
+<?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="Explicit AddChildChange/RemoveChildChange/ReorderChildrenChange 
+        Persistence Feature Demo">
+      <tr:form>
+
+        <tr:panelPage >
+         <f:facet name="navigationGlobal">
+          <tr:navigationPane hint="buttons">
+            <tr:commandNavigationItem 
+              text="Return to Change Persistence demo index page"
+              immediate="true"
+              action="demos.changePersistence"/>
+           </tr:navigationPane>
+          </f:facet>
+        <tr:panelHeader text="Explicit AddChildChange/RemoveChildChange/ReorderChildrenChange 
+          Persistence Feature Demo">
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:panelGroupLayout id="pg1">
+              <tr:image 
+                id="oi1" 
+  shortDesc="Corporate Brand"
+                source="/components/images/corporateBrand.gif"/>
+              <tr:panelBox id="pb1" text="PanelBoxText"/>
+              <tr:inputText id="it1" label="Label"/>
+              <tr:inputColor 
+                id="sic1" 
+                chooseId="cc1"
+                label="Color:"
+                value="#{color.colorValue2}">
+                <f:facet name="help">
+                  <tr:outputText value="Use format (#RRGGBB) or (r,g,b)"/>
+                </f:facet>
+              </tr:inputColor>
+              <tr:chooseColor 
+                id="cc1" 
+                colorData="#{requestContext.colorPalette.default49}"/>
+              <tr:chooseDate id="cd1"/>
+              <tr:inputDate label="Date:" id="sid1" chooseId="cd1"/>
+            </tr:panelGroupLayout>
+            <tr:panelGroupLayout>
+              <tr:commandButton 
+                id="cb1" 
+                text="Reorder children" 
+                actionListener="#{change.reorderChildren}"/>
+              <tr:spacer width="10"/>
+              <tr:commandButton 
+                id="cb2" 
+                text="Remove color child components" 
+                actionListener="#{change.removeChildren}"/>
+              <tr:spacer width="10"/>
+              <tr:commandButton 
+                id="cb3" 
+                text="Remove date child components" 
+                actionListener="#{change.removeChildren}"/>
+              <tr:spacer width="10"/>
+              <tr:commandButton 
+                id="cb4" 
+                text="Add an object image child" 
+                actionListener="#{change.appendChild}"/>
+              <tr:spacer width="10" rendered="false"/>
+              <tr:commandButton 
+                id="cb5" 
+                text="Add an object image child to document" 
+                actionListener="#{change.appendChildToDocument}"
+                rendered="false"/>
+            </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/changeDemos/attributeChange_Explicit.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Explicit.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Explicit.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Explicit.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,95 @@
+<?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="Explicit AttributeChange Persistence Feature Demo">
+      <tr:form>
+
+        <tr:panelPage>
+         <f:facet name="navigationGlobal">
+          <tr:navigationPane hint="buttons">
+            <tr:commandNavigationItem 
+              text="Return to Change Persistence demo index page"
+              immediate="true"
+              action="demos.changePersistence"/>
+           </tr:navigationPane>
+          </f:facet>
+         <tr:panelHeader text="Explicit AttributeChange Persistence Feature Demo">
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:panelGroupLayout layout="horizontal">
+              <tr:image 
+                id="oi1" 
+                source="/adf/images/error.gif"/>
+              <tr:spacer width="10"/>
+              <tr:commandButton 
+                text="Change Image" 
+                actionListener="#{change.modifyObjectImage}"/>
+            </tr:panelGroupLayout>
+            <tr:panelGroupLayout layout="horizontal">
+              <tr:panelBox 
+                id="pb1" 
+                text="PanelBoxText"/>
+              <tr:spacer width="10"/>
+              <tr:commandButton 
+                text="Change panelBox text" 
+                actionListener="#{change.modifyPanelBox}"/>
+            </tr:panelGroupLayout>
+            <tr:panelGroupLayout layout="horizontal">
+              <tr:table 
+                id="t1"
+                summary="Periodic table elements" 
+                value="#{periodicTable.tableData}" 
+                var="row" 
+                rows="10">
+                <tr:column id="c1" sortProperty="name">
+                  <f:facet name="header">
+                    <tr:outputText value="Name"/>
+                  </f:facet>
+                  <tr:outputText value="#{row.name}"/>
+                </tr:column>
+              </tr:table>
+              <tr:spacer width="10"/>
+              <tr:commandButton 
+                text="Toggle sortablity" 
+                actionListener="#{change.modifyColumn}"/>
+            </tr:panelGroupLayout>
+            <tr:panelGroupLayout layout="horizontal">
+              <tr:inputText id="it1" label="Label One"/>
+              <tr:spacer width="10"/>
+              <tr:commandButton 
+                text="Change label" 
+                actionListener="#{change.modifyInputText}"/>
+            </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/changeDemos/attributeChange_Implicit.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Implicit.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Implicit.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Implicit.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,89 @@
+<?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:tr="http://myfaces.apache.org/trinidad">
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Implicit AttributeChange Persistence Feature Demo">
+      <tr:form>
+
+        <tr:panelPage>
+         <f:facet name="navigationGlobal">
+          <tr:navigationPane hint="buttons">
+            <tr:commandNavigationItem 
+              text="Return to Change Persistence demo index page"
+              immediate="true"
+              action="demos.changePersistence"/>
+           </tr:navigationPane>
+          </f:facet>
+
+          <tr:messages/>
+        <tr:panelHeader text="Implicit AttributeChange Persistence Feature Demo">
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:showDetail 
+              id="hs1" 
+              partialTriggers="hs1"
+              disclosedText="Click to hide me"
+              undisclosedText="Click to disclose me">
+              <h:outputText value="This showDetail is now Disclosed"/>
+            </tr:showDetail>
+            <tr:table 
+              summary="Periodic table" 
+              id="ta1"
+              binding="#{tableActions.table}"
+              rowSelection="multiple"
+              value="#{periodicTable.tableData}" var="row" rows="10">
+              <f:facet name="footer">
+                <tr:commandButton 
+                  text="Report"
+                  actionListener="#{tableActions.performReport}"/>
+              </f:facet>
+              <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:table>
+            <tr:tree id="tr1" var="foo" value="#{tree.model}">
+              <f:facet name="nodeStamp">
+                <tr:inputText simple="true" shortDesc="Example" value="#{foo.text}"/>
+              </f:facet>
+            </tr:tree>
+          </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/changeDemos/changePersistence.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/changePersistence.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/changePersistence.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/changeDemos/changePersistence.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,127 @@
+<?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="Change Persistence Feature 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="Change Persistence Feature Demos">
+          <tr:panelHeader text="Demos and overview">
+            <tr:panelGroupLayout layout="vertical">
+              <f:facet name="separator">
+                <tr:separator/>
+              </f:facet>
+              <tr:panelGroupLayout layout="vertical">
+                <tr:commandLink 
+                  text="Attribute Change Demo - Implicit Change registration" 
+                  action="demos.attributeChange_Implicit"/>
+               <tr:outputFormatted 
+                  styleUsage="instruction"
+                  value="Certain of the user actions on few Trinidad components,
+                    alter the attributes implicitly. AttributeChange behind such 
+                    changes are implicitly created and registered, so that the 
+                    UI is restored upon re-visit to the page. In this demo upon
+                    interaction with the following components, one can see this 
+                    happen:"/>
+                <tr:panelList>
+                  <tr:outputFormatted 
+                    styleUsage="instruction" 
+                    value="showDetail: Disclosure state"/>
+                  <tr:outputFormatted 
+                    styleUsage="instruction" 
+                    value="table: Row range, Row selection"/>
+                  <tr:outputFormatted 
+                    styleUsage="instruction" 
+                    value="tree: The expansion state of the nodes"/>
+                </tr:panelList>
+              </tr:panelGroupLayout>
+              <tr:panelGroupLayout layout="vertical">
+                <tr:commandLink 
+                  text="Attribute Change Demo - Explicit Change registration"
+                  action="demos.attributeChange_Explicit"/>
+               <tr:outputFormatted 
+                  styleUsage="instruction"
+                  value="This demo shows how AttributeChanges can be created 
+                    explicitly and added to ChangeManager, at any 
+                    point in the JSF lifecycle. These will be restored when the 
+                    page is visited again. There are a few components in this 
+                    page, with buttons against them, that when clicked on, 
+                    alters an attribute of the component, thereby reflecting as 
+                    a change in the UI. A managed bean behind the scene, changes 
+                    the attributes, and in addition creates and registers 
+                    AttributeChanges."/>
+              </tr:panelGroupLayout>
+              <tr:panelGroupLayout layout="vertical">
+                <tr:commandLink 
+                  text="Add, Remove or Reorder Children Change Demo - 
+                    Explicit Change registration" 
+                  action="demos.addRemoveReorderChildrenChange_Explicit"/>
+               <tr:outputFormatted 
+                  styleUsage="instruction"
+                  value="This demo shows usage of AddChildChange, 
+                    RemoveChildChange and ReorderChildChange. In this demo page, 
+                    there are a few buttons, that when clicked on, gets some 
+                    components removed or added, or the existing order of 
+                    children reversed. A managed bean behind the scene, changes 
+                    the component tree, and in addition creates and registers 
+                    these Changes explicitly. Upon re-visit to the page, one can
+                    see that these Changes are automatically applied, resulting
+                    in the component tree being restored to the last known state."/>
+              </tr:panelGroupLayout>
+              <tr:panelGroupLayout layout="vertical">
+                <tr:commandLink 
+                  text="Add or Remove Facets Change Demo - 
+                    Explicit Change registration"
+                  action="demos.addRemoveFacetsChange_Explicit"/>
+               <tr:outputFormatted 
+                  styleUsage="instruction"
+                  value="This demo shows usage of AddFacetChange and 
+                    RemoveFacetChange. This demo page contains a panelPage, with 
+                    a few facets. In the content area are few buttons that when 
+                    clicked, will result in facets being added or removed. 
+                    Correspondingly Changes are created and registered 
+                    explicitly, so that the UI state is restored upon re-visit 
+                    to this page. All this is done by a managed bean behind the 
+                    scene."/>
+              </tr:panelGroupLayout>
+            </tr:panelGroupLayout>
+          </tr:panelHeader>
+         </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/chooseInteger.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/chooseInteger.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/chooseInteger.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/chooseInteger.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,62 @@
+<?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="Add dialog">
+    <tr:form>
+     <tr:panelPage>
+       <tr:messages/>
+      <tr:panelHeader text="Add two numbers">
+      <tr:panelFormLayout>
+       <tr:inputText label="Number 1:" value="#{chooseInteger.value1}"
+                     required="true">
+        <f:facet name="help">
+         <tr:outputText value="Enter an integer."/>
+        </f:facet>
+       </tr:inputText>
+       <tr:inputText label="Number 2:" value="#{chooseInteger.value2}"
+                     required="true">
+        <f:facet name="help">
+         <tr:outputText value="Enter an integer."/>
+        </f:facet>
+       </tr:inputText>
+       </tr:panelFormLayout>
+      </tr:panelHeader>
+       <tr:panelButtonBar>
+        <tr:commandButton text="Show Dialog" action="dialog:simpleDialog"
+                          windowWidth="150" windowHeight="150" immediate="true"
+                          partialSubmit="true" useWindow="true"
+                          returnListener="#{chooseInteger.sayHello}"/>
+        <tr:commandButton text="Submit">
+         <tr:returnActionListener value="#{chooseInteger.value1 + chooseInteger.value2}"/>
+        </tr:commandButton>
+        <tr:commandButton text="Cancel" immediate="true">
+         <tr:returnActionListener/>
+        </tr:commandButton>
+       </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/demos/demos.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/demos.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/demos.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/demos.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,63 @@
+<?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="Apache Trinidad Feature Demos">
+       <tr:form>
+
+        <tr:panelPage>
+         <f:facet name="navigationGlobal">
+          <tr:navigationPane hint="buttons">
+           <tr:commandNavigationItem text="Return to Index"
+                                   immediate="true"
+                                   action="home"/>
+           </tr:navigationPane>
+          </f:facet>
+
+          <tr:panelHeader text="Welcome to the Apache Trinidad Feature Demos">
+           <tr:panelHeader text="Basics">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:commandLink text="Converters and Validators" action="convertValidateDemos" />
+              <tr:commandLink text="Partial Page Rendering Demos"
+                              action="demos.ppr" />
+              <tr:commandLink text="Dialog Framework Demo"
+                              action="demos.dialog" />
+              <tr:commandLink text="Progress steps Demo"
+                              action="demos.progressSteps" />
+              <tr:commandLink text="Change Persistence Demos"
+                              action="demos.changePersistence" />
+              <tr:commandLink text="Table Demos" action="demos.tableDemos" />
+              <tr:commandLink text="Skin Demo" action="demos.skin" />
+              
+            </tr:panelGroupLayout>
+           </tr:panelHeader>
+          </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/launchDialog.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/launchDialog.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/launchDialog.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/launchDialog.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,74 @@
+<?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="Dialog 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"/>
+            </tr:navigationPane>
+          </f:facet>
+         
+          <tr:messages/>
+        <tr:panelHeader text="Click &quot;...&quot; or &quot;Add&quot; to change a value">
+         <tr:inputText label="Pick a number:" value="(Empty)"
+                       binding="#{launchDialog.input}"/>
+         <tr:commandButton text="Add" action="#{launchDialog.doLaunch}"
+                          partialSubmit="true" useWindow="true"
+                          windowWidth="250" windowHeight="250"
+                          launchListener="#{launchDialog.addParameter}"
+                          returnListener="#{launchDialog.returned}"/>
+         <tr:separator/>
+
+         <tr:table value="#{table}" var="row" width="40%">
+           <tr:column>
+             <tr:outputText value="#{row.int}"/>
+           </tr:column>
+           <tr:column noWrap="true" width="100%">
+             <tr:panelBorderLayout>
+               <tr:inputText readOnly="true" value="(Empty)" binding="#{launchDialog.tableInput}"/>
+               <f:facet name="end">
+                 <tr:commandButton text="..." action="dialog:chooseInteger"
+                                  windowWidth="300" windowHeight="150"
+                                  useWindow="true"
+                                  returnListener="#{launchDialog.tableReturned}"/>
+               </f:facet>
+             </tr:panelBorderLayout>
+           </tr:column>
+         </tr:table>
+	 <!-- A dummy UIXCommand component, used purely for a launch event -->
+         <tr:commandLink inlineStyle="display:none" useWindow="true"
+                         binding="#{launchDialog.dummyCommand}"/>
+         <tr:goLink text="Demo of launching a dialog from &lt;tr:poll&gt;"
+                    destination="launchFromPoll.jspx"/>
+        </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/launchFromPoll.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/launchFromPoll.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/launchFromPoll.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/launchFromPoll.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,46 @@
+<?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="Demo of launching from &lt;tr: poll&gt;">
+      <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:messages/>
+         <tr:panelHeader text="A dialog will launch in 3 seconds">
+           <tr:poll pollListener="#{launchDialog.poll}" interval="3000"/>
+         </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/optionsDialog.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/optionsDialog.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/optionsDialog.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/optionsDialog.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,48 @@
+<?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:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Choose options">
+      <tr:form>
+       <tr:panelPage>
+        <tr:messages/>
+        <tr:panelHeader text="Choose options">
+         <tr:panelFormLayout>
+           <tr:panelLabelAndMessage label="Options:" for="options">
+            <h:selectManyCheckbox value="#{carOptionsBacking.options}" id="options">
+              <f:selectItems value="#{carOptionsBacking.optionsItems}"/>
+            </h:selectManyCheckbox>
+               
+           </tr:panelLabelAndMessage>
+         </tr:panelFormLayout>
+        </tr:panelHeader>
+        <tr:panelButtonBar>
+          <tr:commandButton text="OK" action="#{carOptionsBacking.pickOptions}"/>
+        </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/demos/panelPageSkinDemo.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/panelPageSkinDemo.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/panelPageSkinDemo.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/panelPageSkinDemo.jspx Wed Jun 13 10:52:53 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: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/portletSkinDemo.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/portletSkinDemo.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/portletSkinDemo.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/main/webapp/demos/portletSkinDemo.jspx Wed Jun 13 10:52:53 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>



Mime
View raw message