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

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

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/subform.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/subform.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/subform.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/subform.jspx Wed Mar  7 06:44:35 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: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>
+    <tr:messages/>
+    <tr:form>
+      <tr:subform>
+        <tr:inputText required="true" label="Sub 1:"/>
+        <tr:commandButton text="Submit 1"/>
+      </tr:subform>
+
+      <tr:subform>
+        <tr:inputText required="true" label="Sub 2:"/>
+        <tr:commandButton text="Submit 2"/>
+      </tr:subform>
+
+      <tr:subform default="true">
+        <tr:inputText required="true" label="Sub Default:"/>
+        <tr:commandButton text="Submit Default"/>
+      </tr:subform>
+
+      <tr:commandButton text="Submit Outside"/>
+    </tr:form>
+  </tr:document>
+ </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,100 @@
+<?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="table Demo">
+        <tr:form >
+          <tr:messages/>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator />
+            </f:facet>   
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>     
+  
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Basic table&lt;/b>"/>
+            <tr:table allDetailsEnabled="true" var="row"
+                      binding="#{editor.component}"
+                      rowBandingInterval="2"
+                      value="#{periodicTable.tableData}" rows="10"
+                      summary="Element information">
+              <f:facet name="actions">
+                <tr:outputText value="(Actions)"/>
+              </f:facet>
+              <tr:column headerText="Name">
+                <tr:outputText value="#{row.name}"/>
+              </tr:column>
+              <tr:column headerText="Symbol">
+                <tr:outputText value="#{row.symbol}"/>
+              </tr:column>
+              <tr:column headerText="Action Column">
+                <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>
+
+            <jsp:directive.include file="editor.jspf" />
+            
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Editable table&lt;/b>"/>
+            <tr:table var="row"
+                      value="#{periodicTable.tableData}" rows="5"
+                      summary="Element information">
+              <tr:column headerText="Name">
+                <tr:inputText value="#{row.name}"  shortDesc="#{row.name}"/>
+              </tr:column>
+              <tr:column headerText="Symbol">
+                <tr:inputText value="#{row.symbol}"  shortDesc="#{row.symbol}"/>
+              </tr:column>
+            </tr:table>
+
+            <tr:commandButton text="Submit"/>
+
+
+
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Empty table&lt;/b>"/>
+            <tr:table var="row" emptyText="No Records Found" rows="10"
+                      summary="Empty Table">
+              <tr:column headerText="int">
+                <tr:inputText value="#{row.int}" shortDesc="#{row.int}"/>
+              </tr:column>
+              <tr:column headerText="String">
+                <tr:inputText value="#{row.string}" shortDesc="#{row.string}"/>
+              </tr:column>
+            </tr:table>
+
+            
+          </tr:panelGroupLayout>    
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_dynamic.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_dynamic.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_dynamic.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_dynamic.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,103 @@
+<?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:tr="http://myfaces.apache.org/trinidad" >
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+ <tr:document title="Dynamic Table Demo">
+        <tr:form >
+          <tr:messages/>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator />
+            </f:facet>   
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>     
+  
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Dynamic table&lt;/b>"/>
+            
+            <f:verbatim>
+              &lt;ul>
+                &lt;li>
+                The table should tolerate RowCounts which are greater than the 
+                actual RowCount.
+                &lt;li>
+                The table should try to preserve the page being viewed, when the
+                rowCounts change.
+                &lt;li>
+                In the following example, the table should not render NULL values
+                nor throw Exceptions:
+              &lt;/ul>
+            </f:verbatim>
+            
+            <tr:panelFormLayout>
+              <tr:inputText label="RowCount" value="#{dynamicTable.rowCount}"
+                accessKey="R">
+                <f:facet name="help">
+                  <tr:outputText value="Minimum -1. Maximum 400"/>
+                </f:facet>
+                <f:validateLongRange minimum="-1" maximum="400" />
+              </tr:inputText>
+              <tr:inputText label="RowCount (Actual)"
+                accessKey="A"
+                value="#{dynamicTable.actualRowCount}">
+                <f:facet name="help">
+                  <tr:outputText value="Minimum 0. Maximum 400"/>
+                </f:facet>
+                <f:validateLongRange minimum="0" maximum="400"/>
+              </tr:inputText>
+              <tr:inputText label="Block Size"
+                accessKey="B"
+                value="#{dynamicTable.blockSize}">
+                <f:facet name="help">
+                  <tr:outputText value="Minimum 0"/>
+                </f:facet>
+                <f:validateLongRange minimum="0"/>
+              </tr:inputText>
+              <f:facet name="footer">
+                <tr:commandButton textAndAccessKey="&amp;Update"/>
+              </f:facet>
+            </tr:panelFormLayout>
+            
+            <tr:table var="row"
+                      emptyText="No Data"
+                      value="#{dynamicTable}" 
+                      rows="#{dynamicTable.blockSize}"
+                      summary="Dynamic Table">
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Row"/>
+                </f:facet>
+                <tr:outputText value="#{empty row ? 'NULL - This is bad!' : row}"/>
+              </tr:column>
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Number"/>
+                </f:facet>
+                <tr:outputText value="#{row * 100}"/>
+              </tr:column>
+            </tr:table>
+          </tr:panelGroupLayout>    
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_nested.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_nested.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_nested.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_nested.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,83 @@
+<?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="table Demo">
+        <tr:form >
+          <tr:messages/>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator />
+            </f:facet>   
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>     
+  
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Editable table&lt;/b>"/>
+            <tr:table var="row"
+                      value="#{periodicTable.tableData}" rows="10"
+                      summary="Element data">
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Name"/>
+                </f:facet>
+                <tr:inputText value="#{row.name}" shortDesc="#{row.name}"/>
+              </tr:column>
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Symbol"/>
+                </f:facet>
+                <tr:inputText value="#{row.symbol}" shortDesc="#{row.symbol}"/>
+              </tr:column>
+              <f:facet name="detailStamp" >
+                <tr:table var="sub"
+                          value="#{periodicTable.tableData}" rows="3"
+                          summary="Detail element information">
+                  <tr:column>
+                    <f:facet name="header">
+                      <tr:outputText value="#{row.name}:Name"/>
+                    </f:facet>
+                    <tr:inputText value="#{sub.name}" shortDesc="#{sub.name}"/>
+                  </tr:column>
+                  <tr:column>
+                    <f:facet name="header">
+                      <tr:outputText value="Symbol"/>
+                    </f:facet>
+                    <tr:inputText value="#{sub.symbol}" shortDesc="#{sub.symbol}"/>
+                  </tr:column>
+                </tr:table>
+              </f:facet>
+            </tr:table>
+
+
+            <tr:commandButton text="Submit"/>
+
+
+            
+          </tr:panelGroupLayout>    
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_selection.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_selection.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_selection.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/table_selection.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,108 @@
+<?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="tableSelectMany Demo">
+      <tr:form>
+        <tr:panelGroupLayout layout="vertical">
+          <tr:commandLink immediate="true" text="Component Guide"
+                          action="guide"/>
+        </tr:panelGroupLayout>
+        <tr:panelGroupLayout layout="vertical">
+          <f:facet name="separator">
+            <tr:separator/>
+          </f:facet>
+          <tr:messages/>
+          <tr:selectOneChoice value="#{sessionScope.tableSelection}"
+              autoSubmit="true"
+               id="selType"
+              label="Selection Type">
+            <tr:selectItem label="Single" value="#{null}"/>
+            <tr:selectItem label="Multiple" value="#{true}"/>
+          </tr:selectOneChoice>
+          <tr:table summary="Periodic table"
+                    binding="#{tableActions.table}" 
+                    partialTriggers="selType"
+                    rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
+                    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:column>
+              <f:facet name="header">
+                <tr:outputText value="Action Column"/>
+              </f:facet>
+              <tr:commandButton immediate="true" text="Action"
+                                action="#{row.action}"/>
+            </tr:column>
+          </tr:table>
+          <tr:panelHeader text="Report Items">
+            <tr:table emptyText="Report is Empty" summary="Report"
+                      value="#{tableActions.reportItems}" var="row" rows="0">
+              <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="Number"/>
+                </f:facet>
+                <tr:outputText value="#{row.number}"/>
+              </tr:column>
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Group"/>
+                </f:facet>
+                <tr:outputText value="#{row.group}"/>
+              </tr:column>
+            </tr:table>
+          </tr:panelHeader>
+        </tr:panelGroupLayout>
+      </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/template.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/template.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/template.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/template.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,47 @@
+<?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="Demo"/>
+      <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:outputFormatted styleUsage="instruction" value="&lt;b> &lt;/b>"/>
+              
+            <jsp:directive.include file="editor.jspf" />
+    
+          </tr:panelGroupLayout>
+        </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,55 @@
+<?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="train Demo">
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/> 
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Link below to process using 'Plus One' described in the javadoc for org.apache.myfaces.trinidad.ProcessMenuModel&lt;/b>"/>
+            <tr:commandLink action="guide.page_p1" text="Plus One Process"/>
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>process using 'Max Visited' described in the javadoc for org.apache.myfaces.trinidad.ProcessMenuModel&lt;/b>"/>
+          
+            <tr:train binding="#{editor.component}" var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>             
+
+            <jsp:directive.include file="editor.jspf" />
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train2.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train2.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train2.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train2.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,50 @@
+<?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="train Demo">
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>             
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Second Step -- train with navigation&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>                       
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train3.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train3.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train3.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train3.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,50 @@
+<?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="train Demo">
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>             
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Third Step -- train with navigation&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>   
+            </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,54 @@
+<?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="train Demo"/>
+      <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:outputFormatted styleUsage="instruction" value="&lt;b>Fourth Step -- train with navigation&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>   
+            <tr:commandLink action="guide.train4a" text="Go to subprocess"/>
+          </tr:panelGroupLayout>
+        </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4a.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4a.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4a.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4a.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,53 @@
+<?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="train Demo"/>
+      <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:outputFormatted styleUsage="instruction" value="&lt;b>SubTrain A&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>             
+          </tr:panelGroupLayout>
+        </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4b.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4b.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4b.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4b.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,53 @@
+<?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="train Demo"/>
+      <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:outputFormatted styleUsage="instruction" value="&lt;b>SubTrain B&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>             
+          </tr:panelGroupLayout>
+        </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4c.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4c.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4c.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train4c.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,54 @@
+<?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="train Demo"/>
+      <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:outputFormatted styleUsage="instruction" value="&lt;b>SubTrain C&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train> 
+            <tr:commandLink action="guide.train4" text="back to main process"/>            
+          </tr:panelGroupLayout>
+        </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train5.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train5.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train5.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train5.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,52 @@
+<?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="train Demo">
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>             
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Fifth Step -- train with navigation&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+                                    
+              </f:facet>
+            </tr:train>             
+          
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train6.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train6.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train6.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train6.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,51 @@
+<?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="train Demo">
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>             
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Sixth Step -- train with navigation&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>             
+           
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train7.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train7.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train7.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train7.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,51 @@
+<?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="train Demo">
+    <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator/>
+            </f:facet>
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>             
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Seventh Step -- train with navigation&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>             
+
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train8.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train8.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train8.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/train8.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,53 @@
+<?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="train Demo"/>
+      <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:outputFormatted styleUsage="instruction" value="&lt;b>Eighth Step -- train with navigation&lt;/b>"/>
+            <tr:train var="foo" value="#{processTrainMenuModel}">
+              <f:facet name="nodeStamp">
+                <tr:commandNavigationItem text="#{foo.label}"
+                                    action="#{foo.getOutcome}"
+                                    immediate="#{processTrainMenuModel.immediate}"
+                                    disabled="#{processTrainMenuModel.readOnly}"
+                                    visited="#{processTrainMenuModel.visited}"/>
+              </f:facet>
+            </tr:train>             
+          </tr:panelGroupLayout>
+        </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/tree.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/tree.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/tree.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/tree.jspx Wed Mar  7 06:44:35 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: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="Tree Demo">
+        <tr:form>
+          <tr:messages/>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator />
+            </f:facet>  
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>                
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Basic Tree&lt;/b>"/>
+<!--
+            <tr:tree value="#{tree.model}" binding="#{editor.component}" />
+
+            <jsp:directive.include file="editor.jspf" />    
+-->
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Tree with TreeModel&lt;/b>"/>
+            <tr:tree  binding="#{editor.component}"
+                      var="foo" value="#{tree.model}">
+              <f:facet name="nodeStamp">
+                <tr:inputText value="#{foo.text}" shortDesc="Enter text"/>
+              </f:facet>
+            </tr:tree>
+
+            <jsp:directive.include file="editor.jspf" />  
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Tree with CollectionModel&lt;/b>"/>
+            <tr:tree var="foo" value="#{periodicTable.tableData}">
+              <f:facet name="nodeStamp">
+                <tr:commandLink text="#{foo.name}" action="#{foo.action}"/>
+              </f:facet>
+            </tr:tree>
+          </tr:panelGroupLayout>
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/treeTable.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/treeTable.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/treeTable.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/treeTable.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,175 @@
+<?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="TreeTable Demo">
+        <tr:form>
+          <tr:panelGroupLayout layout="vertical">
+            <f:facet name="separator">
+              <tr:separator />
+            </f:facet>   
+            <tr:commandLink immediate="true" text="Component Guide"
+                action="guide"/>    
+            
+            <!--
+            <tr:treeTable var="foo" value="#{tree.model}" binding="#{editor.component}">
+              <f:facet name="nodeStamp">
+                <tr:outputText value="#{foo.text}"/>
+              </f:facet>
+            </tr:treeTable>
+
+
+            <jsp:directive.include file="editor.jspf" />    
+-->
+
+
+            <tr:outputFormatted styleUsage="instruction" 
+              value="&lt;b>Editable treeTable with Record Set Navigation&lt;/b>"/>
+            <tr:treeTable  binding="#{editor.component}" var="foo" value="#{tree.model}" rendered="true"
+              rowsByDepth="3" summary="Demo of treeTable"
+              >
+              <f:facet name="nodeStamp">
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Text"/>
+                  </f:facet>
+                  <tr:outputFormatted value="&lt;b>text:#{foo.text}&lt;/b>"/>
+                </tr:column>
+              </f:facet>
+              <f:facet name="pathStamp">
+                <tr:outputFormatted value="&lt;b>text:#{foo.text}&lt;/b>"/>
+              </f:facet>
+
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Foo Column"/>
+                </f:facet>
+                <tr:inputText value="#{foo.text}" shortDesc="Enter text"/>
+              </tr:column>
+
+              <tr:column>
+                <f:facet name="header">
+                  <h:outputText value="Bar Column"/>
+                </f:facet>
+                <h:outputText value="#{foo.text} Bar"/>
+              </tr:column>
+            </tr:treeTable>
+
+            <jsp:directive.include file="editor.jspf" />  
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>No Focus Column&lt;/b>"/>
+            <tr:treeTable var="foo" value="#{tree.model}" rendered="true" 
+                 summary="Second treeTable" >
+              <f:facet name="nodeStamp">
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Text"/>
+                  </f:facet>
+                  <tr:outputText value="#{foo.text}"/>
+                </tr:column>
+              </f:facet>
+
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Text"/>
+                </f:facet>
+                <tr:outputText value="#{foo.text}"/>
+              </tr:column>
+
+            </tr:treeTable>
+
+            <tr:commandButton text="Submit"/>
+
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Giant treeTable&lt;/b>"/>
+            <tr:treeTable var="foo" value="#{largeTree.model}" 
+               summary="Giant treeTable"
+              rendered='true'>
+              <f:facet name="nodeStamp">
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Label"/>
+                  </f:facet>
+                <tr:outputFormatted value="&lt;b>#{foo.label}&lt;/b>"/>
+                </tr:column>
+              </f:facet>
+              <f:facet name="pathStamp">
+                <tr:outputFormatted value="&lt;b>#{foo.label}&lt;/b>"/>
+              </f:facet>
+
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Parent"/>
+                </f:facet>
+                <tr:outputText value="#{foo.parentLabel}"/>
+              </tr:column>
+
+              <tr:column>
+                <f:facet name="header">
+                  <h:outputText value="Index"/>
+                </f:facet>
+                <h:outputText value="#{foo.index}"/>
+              </tr:column>
+              <tr:column>
+                <f:facet name="header">
+                  <h:outputText value="Depth"/>
+                </f:facet>
+                <h:outputText value="#{foo.depth}"/>
+              </tr:column>
+            </tr:treeTable>
+
+            <tr:outputFormatted styleUsage="instruction" value="&lt;b>Empty treeTable&lt;/b>"/>
+            <tr:treeTable var="foo" rendered="true"
+              summary="Empty treeTable"
+              emptyText="no records found"
+              >
+              <f:facet name="nodeStamp">
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Text"/>
+                  </f:facet>
+                <tr:outputFormatted value="&lt;b>text:#{foo.text}&lt;/b>"/>
+                </tr:column>
+              </f:facet>
+
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Foo Column"/>
+                </f:facet>
+                <tr:outputText value="foo #{foo.text}"/>
+              </tr:column>
+
+              <tr:column>
+                <f:facet name="header">
+                  <h:outputText value="Bar Column"/>
+                </f:facet>
+                <h:outputText value="#{foo.text} Bar"/>
+              </tr:column>
+            </tr:treeTable>
+          </tr:panelGroupLayout>
+
+        </tr:form>
+ </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/treeTable_selection.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/treeTable_selection.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/treeTable_selection.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/components/treeTable_selection.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,124 @@
+<?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>
+    <trh:html>
+      <trh:head title="tableSelectMany Demo"/>
+      <trh:body>
+        <tr:form >
+          <tr:panelGroupLayout layout="vertical">
+            <tr:commandLink immediate="true" text="Component Guide"
+                  action="guide"/> 
+          </tr:panelGroupLayout>
+          <tr:panelPage>
+            <tr:messages/>
+            <tr:selectOneChoice value="#{sessionScope.tableSelection}"
+                autoSubmit="true"
+                id="selType"
+                label="Selection Type">
+              <tr:selectItem label="Single" value="#{null}"/>
+              <tr:selectItem label="Multiple" value="#{true}"/>
+            </tr:selectOneChoice>
+            <tr:treeTable var="foo" value="#{largeTree.model}" 
+              binding="#{tableActions.table}"
+              summary="Demo of TreeTable selection"
+              partialTriggers="selType"
+              rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}">
+              <f:facet name="footer">
+                <tr:commandButton text="Report" 
+                     actionListener="#{tableActions.performReport}"/>
+              </f:facet>
+              <f:facet name="nodeStamp">
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Label"/>
+                  </f:facet>
+                <tr:outputFormatted value="&lt;b>#{foo.label}&lt;/b>"/>
+                </tr:column>
+              </f:facet>
+              <f:facet name="pathStamp">
+                <tr:outputFormatted value="&lt;b>#{foo.label}&lt;/b>"/>
+              </f:facet>
+
+              <tr:column>
+                <f:facet name="header">
+                  <tr:outputText value="Parent"/>
+                </f:facet>
+                <tr:outputText value="#{foo.parentLabel}"/>
+              </tr:column>
+
+              <tr:column>
+                <f:facet name="header">
+                  <h:outputText value="Index"/>
+                </f:facet>
+                <h:outputText value="#{foo.index}"/>
+              </tr:column>
+              <tr:column>
+                <f:facet name="header">
+                  <h:outputText value="Depth"/>
+                </f:facet>
+                <h:outputText value="#{foo.depth}"/>
+              </tr:column>
+            </tr:treeTable>
+            
+            <tr:panelHeader text="Report Items">
+              <tr:table var="foo" value="#{tableActions.reportItems}"
+                emptyText="Report is Empty" 
+                summary="Report">
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Label"/>
+                  </f:facet>
+                  <tr:outputText value="#{foo.label}"/>
+                </tr:column>
+                <tr:column>
+                  <f:facet name="header">
+                    <tr:outputText value="Parent"/>
+                  </f:facet>
+                  <tr:outputText value="#{foo.parentLabel}"/>
+                </tr:column>
+  
+                <tr:column>
+                  <f:facet name="header">
+                    <h:outputText value="Index"/>
+                  </f:facet>
+                  <h:outputText value="#{foo.index}"/>
+                </tr:column>
+                <tr:column>
+                  <f:facet name="header">
+                    <h:outputText value="Depth"/>
+                  </f:facet>
+                  <h:outputText value="#{foo.depth}"/>
+                </tr:column>
+              </tr:table>
+            </tr:panelHeader>
+
+          </tr:panelPage>
+        </tr:form>
+      </trh:body>
+    </trh:html>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/clientConvert.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/clientConvert.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/clientConvert.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/clientConvert.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,176 @@
+<?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"
+          xmlns:trdemo="http://myfaces.apache.org/trinidaddemo">
+  <jsp:directive.page contentType="text/html;charset=utf-8"/>
+  <f:view>
+    <tr:document title="Client-side Converters and Validators">
+        <tr:form usesUpload="true">
+          <tr:panelPage>
+            <tr:messages/>
+            <f:facet name="navigationGlobal">
+              <tr:navigationPane hint="buttons">
+                <tr:commandNavigationItem text="Converters and Validators"
+                                    action="convertValidateDemos"
+                                    immediate="true"/>
+              </tr:navigationPane>
+            </f:facet>
+           <tr:panelHeader text="Client-side Converters and Validators">
+            <tr:outputText styleClass="AFInstructionText"
+                           value="In the following examples, converters and validators run on the client, avoiding a round trip."/>
+            <tr:spacer height="10"/>
+            <tr:panelHeader text="Client Converters"/>
+            <tr:panelFormLayout>
+              <tr:inputText value="#{clientValidation.integer}"
+                            label="integer converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: 'a' or '11111111111'"/>
+                </f:facet>
+              </tr:inputText>
+              <tr:inputText value="#{clientValidation.longValue}"
+                            label="long converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: 'a' or '11111111111111111111'"/>
+                </f:facet>
+              </tr:inputText>
+              <tr:inputText value="#{clientValidation.short}"
+                            label="short converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: 'a' or '111111'"/>
+                </f:facet>
+              </tr:inputText>
+              <tr:inputText value="#{clientValidation.byte}"
+                            label="byte converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: 'a' or '1111'"/>
+                </f:facet>
+              </tr:inputText>
+              <tr:inputText value="#{clientValidation.float}"
+                            label="float converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: 'a' or 'cat'"/>
+                </f:facet>
+              </tr:inputText>
+              <tr:inputText value="#{clientValidation.double}"
+                            label="double converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: 'a' or 'cat'"/>
+                </f:facet>
+              </tr:inputText>  
+              <!--tr:inputText value="#{clientValidation.double2}"
+                            label="number converter">
+                <f:facet name="help">
+                  <tr:outputText value="must have 2 decimal places, examples of unconvertable values: '1.1' or '1.111'"/>
+                </f:facet>
+                <f:convertNumber maxFractionDigits="2" minFractionDigits="2"/>                
+              </tr:inputText-->
+              <tr:inputColor label="color converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: '9/05' or 'cat'"/>
+                </f:facet>
+              </tr:inputColor>
+              <tr:inputDate label="date converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: '#FFFF' or 'cat'"/>
+                </f:facet>
+              </tr:inputDate>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Client Validators"/>
+            <tr:spacer height="10"/>
+            <tr:panelFormLayout>
+              <tr:inputText value="#{clientValidation.long2}"
+                            label="long range validator">
+                <f:facet name="help">
+                  <tr:outputText value="examples of values that will fail validation: '4' or '7'"/>
+                </f:facet>
+                <tr:validateLongRange minimum="5" maximum="6"/>
+              </tr:inputText> 
+              <tr:inputText value="#{clientValidation.double3}"
+                            label="double range validator">
+                <f:facet name="help">
+                  <tr:outputText value="examples of values that will fail validation: '5.1' or '6.8'"/>
+                </f:facet>
+                <tr:validateDoubleRange minimum="5.2" maximum="6.7"/>
+              </tr:inputText>
+              <tr:inputText value="#{clientValidation.regExpValue}"
+                            label="reg exp validator">
+                <f:facet name="help">
+                  <tr:outputText value="examples of values that will fail validation: 1','2','4' all values other than '9'"/>
+                </f:facet>
+                <tr:validateRegExp pattern="[9]"/>
+              </tr:inputText>  
+              <tr:inputText value="#{clientValidation.lengthValue}"
+                            label="length validator">
+                <f:facet name="help">
+                  <tr:outputText value="values longer than 4 will fail, for example: '44444444' or 'Seven'"/>
+                </f:facet>
+                <tr:validateLength maximum="4"/>
+              </tr:inputText> 
+              <tr:inputText value="#{clientValidation.byteLengthValue}"
+                            label="byte length validator">
+                <f:facet name="help">
+                  <tr:outputText value="values longer than 4 bytes will fail, for example: '44444444' or 'Seven'"/>
+                </f:facet>
+                <tr:validateByteLength encoding="ISO-8859-1" maximum="4"/>
+              </tr:inputText>              
+              <tr:inputText value="#{clientValidation.date}"
+                            label="date range validator">
+                <f:facet name="help">
+                  <tr:outputText value="examples of values that will fail validation: any date which is not in 2007"/>
+                </f:facet>
+                <tr:validateDateTimeRange minimum="2007-01-01"
+                                          maximum="2007-12-31"/>
+              </tr:inputText>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Required"/>
+            <tr:spacer height="10"/>
+            <tr:panelFormLayout>
+              <tr:inputText required="true" label="required field"/>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Example of 3rd party Converter and Validator"/>
+            <tr:spacer height="10"/>
+            <tr:panelFormLayout>
+              <tr:inputText value="#{clientValidation.ssn}"
+                            label="ssn converter">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: 'a' or 'cat'"/>
+                </f:facet>
+                <trdemo:convertSSN/>
+              </tr:inputText>
+              <tr:inputText required="true" secret="true"
+                            label="password validator">
+                <f:facet name="help">
+                  <tr:outputText value="examples of unconvertable values: 'a' or 'cat'"/>
+                </f:facet>
+                <trdemo:validatePassword/>
+              </tr:inputText>
+            </tr:panelFormLayout>
+           </tr:panelHeader>
+            <tr:panelButtonBar>
+              <tr:commandButton text="Submit"/>
+            </tr:panelButtonBar>
+          </tr:panelPage>
+        </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>