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 [15/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/convertValidate/clientDateRestrictionValidate.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/clientDateRestrictionValidate.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/clientDateRestrictionValidate.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/clientDateRestrictionValidate.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,73 @@
+<?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 Date Restriction Validator">
+        <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 Date Restriction Validator">
+            <tr:outputText styleClass="AFInstructionText"
+                           value="In the following examples, the date Restriction validator runs on the client, avoiding a round trip."/>
+            <tr:spacer height="10"/>
+            <tr:panelHeader text="Client Validators"/>
+            <tr:spacer height="10"/>
+            <tr:panelFormLayout>
+
+              <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:panelButtonBar>
+              <tr:commandButton text="Submit"/>
+            </tr:panelButtonBar>
+          </tr:panelPage>
+        </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/convertValidate.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/convertValidate.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/convertValidate.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/convertValidate.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,118 @@
+<?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 Converters and Validators">
+        <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="Converters and Validators">
+            <tr:panelHeader text="Server Side Number Converter"/>
+            <tr:panelFormLayout>
+              <tr:inputText value="99.99" label="number converter1">
+                <f:facet name="help">
+                  <tr:outputText value="type='number' integerOnly='true' - This will result in fraction part to be omitted"/>
+                </f:facet>
+                <f:convertNumber type="number" integerOnly="true"/>
+              </tr:inputText>
+              <tr:inputText value="#{converterValidator.currencyValue}"
+                            label="number converter2" readOnly="true">
+                <f:facet name="help">
+                  <tr:outputText value="type='currency' locale='en_US' currencyCode='EUR' - This results in EUR prefix before value"/>
+                </f:facet>
+                <f:convertNumber type="currency" locale="en_US"
+                                 currencyCode="EUR"/>
+              </tr:inputText>
+              <tr:inputText value="#{converterValidator.percentValue}"
+                            label="number converter3">
+                <f:facet name="help">
+                  <tr:outputText value="type='percent' locale='en_US' - This results in fraction displayed as integer value with % symbol"/>
+                </f:facet>
+                <f:convertNumber type="percent" locale="en_US"/>
+              </tr:inputText>
+              <tr:inputText value="#{converterValidator.groupValue}"
+                            label="number converter4">
+                <f:facet name="help">
+                  <tr:outputText value="type='number' locale='en_US'"/>
+                </f:facet>
+                <f:convertNumber type="number" locale="en_US"/>
+              </tr:inputText>
+              <tr:inputText value="#{converterValidator.currencyValue}"
+                            label="number converter5" readOnly="true">
+                <f:facet name="help">
+                  <tr:outputText value="type='currency' locale='en_US' currencySymbol='#' - This results in # as prefix for value"/>
+                </f:facet>
+                <f:convertNumber type="currency" locale="en_US"
+                                 currencySymbol="#"/>
+              </tr:inputText>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Validators"/>
+            <tr:panelFormLayout>
+              <tr:inputText value="9999" label="reg exp validator">
+                <f:facet name="help">
+                  <tr:outputText value="pattern='[9]*'"/>
+                </f:facet>
+                <tr:validateRegExp pattern="[9]*"/>
+              </tr:inputText>
+              <tr:inputText value="Four" label="byte length validator">
+                <f:facet name="help">
+                  <tr:outputText value="maximum='4' encoding='ISO-8859-1'"/>
+                </f:facet>
+                <tr:validateByteLength encoding="ISO-8859-1" maximum="4"/>
+              </tr:inputText>
+              <tr:inputText value="424" label="multiple validators">
+                <f:facet name="help">
+                  <tr:outputText value="Attached reg exp and long range validator. Allow three digit value with middle number being '2' and value not exceeding 920"/>
+                </f:facet>
+                <tr:validateRegExp pattern="[1-9][2][0-9]"/>
+                <f:validateLongRange maximum="920"/>
+              </tr:inputText>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Date time range validator with ISO date format support"/>
+            <tr:panelFormLayout>
+              <tr:inputDate id="mdf3" value="2004-11-25"
+                                  label="Submission period">
+                <f:facet name="help">
+                  <tr:outputText value="min=2004-11-16  max=2004-12-16"/>
+                </f:facet>
+                <tr:convertDateTime pattern="yyyy-MM-dd"/>
+                <tr:validateDateTimeRange minimum="2004-11-16"
+                                          maximum="2004-12-16"
+                                          messageDetailNotInRange='Date "{1}" does not fall within {2} : {3}'/>
+              </tr:inputDate>
+            </tr:panelFormLayout>
+           </tr:panelHeader>
+           <tr:commandButton text="Submit"/>
+          </tr:panelPage>
+        </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/convertValidateMessageCustomization.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/convertValidateMessageCustomization.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/convertValidateMessageCustomization.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/convertValidateMessageCustomization.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,178 @@
+<?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=" Trinidad Converters and Validators message customization">
+        <tr:form>
+          <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="Custom messages for conversion and validation failures">
+            <tr:panelHeader text="Message customization on input component for 'required' validation"/>
+            <tr:panelFormLayout>
+              <tr:inputDate id="mdf1"
+                                  value="#{messageCustomization.date1}"
+                                  label="Date of birth" required="true"
+                                  requiredMessageDetail="#{messageCustomization.messages.DOB_REQD_ID}"></tr:inputDate>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Message customization on reg exp validator"/>
+            <tr:panelFormLayout>
+              <tr:inputText value="#{messageCustomization.regExpValue}"
+                            label="Pin" >
+                <f:facet name="help">
+                  <tr:outputText value="Enter your three digit pin"/>
+                </f:facet>
+                <tr:validateRegExp pattern="[1-9][0-9][0-9]"
+                                   messageDetailNoMatch="#{messageCustomization.messages.PIN_NO_MATCH_ID}"/>
+              </tr:inputText>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Message customization on byte length validator"/>
+            <tr:panelFormLayout>
+              <tr:inputText value="#{messageCustomization.byteLengthValue}"
+                            label="Name">
+                <f:facet name="help">
+                  <tr:outputText value="Enter your name. It should not exceed 4 characters"/>
+                </f:facet>
+                <tr:validateByteLength encoding="ISO-8859-1" maximum="4"
+                                       messageDetailMaximum='The "{0}" "{1}" exceeds {2} characters'/>
+              </tr:inputText>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Message customization on date time range validator"/>
+            <tr:panelFormLayout>
+              <tr:inputDate id="mdf3"
+                                  value="#{messageCustomization.date1}"
+                                  label="Start date for submission">
+                <f:facet name="help">
+                  <tr:outputText value="min=#{messageCustomization.minDateTip}"/>
+                </f:facet>
+                <tr:validateDateTimeRange minimum="#{messageCustomization.minDate}"
+                                          messageDetailMaximum='Date "{1}" in "{0}" is farther than {2}'
+                                          messageDetailMinimum='Date "{1}" in "{0}" is before the accepted date - {2} for receving forms. '
+                                          messageDetailNotInRange='Date "{1}" in "{0}" not within minimum {2} and maximum range {3}'/>
+              </tr:inputDate>
+              <tr:inputDate id="mdf4"
+                                  value="#{messageCustomization.date1}"
+                                  label="Last date">
+                <f:facet name="help">
+                  <tr:outputText value="max=#{messageCustomization.maxDateTip}"/>
+                </f:facet>
+                <tr:validateDateTimeRange maximum="#{date.maxDate}"
+                                          messageDetailMaximum='The date "{1}" in "{0}" which you have chosen, falls after the final acceptable date - {2}.'
+                                          messageDetailMinimum='Date "{1}" in "{0}" is less than the minimum acceptable: {2}.'
+                                          messageDetailNotInRange='Date "{1}" in "{0}" not within minimum {2} and maximum range {3}.'/>
+              </tr:inputDate>
+              <tr:inputDate id="mdf5"
+                                  value="#{messageCustomization.date1}"
+                                  label="Submission period">
+                <f:facet name="help">
+                  <tr:outputText value="min=#{messageCustomization.minDateTip} max=#{messageCustomization.maxDateTip}"/>
+                </f:facet>
+                <tr:validateDateTimeRange minimum="#{messageCustomization.minDate}"
+                                          maximum="#{messageCustomization.maxDate}"
+                                          messageDetailNotInRange='Submission date "{1}" in "{0}" is not with in the specified period {2}-{3}.'/>
+              </tr:inputDate>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Message customization on color converter"/>
+            <tr:panelFormLayout>
+              <tr:inputColor id="sicConvx" label="Enter or choose color"
+                                   value="#{messageCustomization.color}">
+                <f:facet name="help">
+                  <tr:outputText value="HTML hex color pattern:#RRGGBB"/>
+                </f:facet>
+                <tr:convertColor patterns="#RRGGBB" transparentAllowed="true"
+                                 messageDetailConvert='The color "{1}" you have chosen in "{0}" is not a valid HTML hex pattern {2}.'/>
+              </tr:inputColor>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Message customization on date time converter"/>
+            <tr:panelFormLayout>
+              <tr:inputDate id="mdf6" value="2004/09/06"
+                                  label="Date of birth">
+                <f:facet name="help">
+                  <tr:outputText value="1/20/1972 or 1972/20/2"/>
+                </f:facet>
+                <!--All custom messages need not be set. It is just enough if we set 'convertDateMessageDetail' -->
+                <tr:convertDateTime secondaryPattern="d/M/yyyy"
+                                    pattern="yyyy/M/d"
+                                    messageDetailConvertDate='"{1}" in "{0}" is not a valid date. Example is {2}'
+                                    messageDetailConvertTime='"{1}" in "{0}", is not valid date. Example is {2}.'
+                                    messageDetailConvertBoth='"{1}" in "{0}", is not valid Date and time. The format is {2}.'/>
+              </tr:inputDate>
+              <tr:inputDate id="mdf7" value="11:36:15 AM"
+                                  label="Time of birth">
+                <f:facet name="help">
+                  <tr:outputText value="11:36:15 AM"/>
+                </f:facet>
+                <tr:convertDateTime type="time" timeStyle="medium"
+                                    messageDetailConvertTime='"{1}" in "{0}", is not a valid time. Example: {2}.'/>
+              </tr:inputDate>
+              <tr:inputDate id="mdf8" value="12/20/2004 8:11 AM"
+                                  label="Date and time of birth">
+                <f:facet name="help">
+                  <tr:outputText value="2/26/2005 8:11 AM"/>
+                </f:facet>
+                <tr:convertDateTime type="both"
+                                    messageDetailConvertBoth='"{1}" in "{0}", is not a valid Date and time. Example: {2}.'/>
+              </tr:inputDate>
+            </tr:panelFormLayout>
+            <tr:panelHeader text="Message customization on number converter"/>
+            <tr:panelFormLayout>
+              <tr:inputText value="555" label="Your lucky number">
+                <f:facet name="help">
+                  <tr:outputText value="type='number' locale='en_US' Valid input=44444456 Invalid value=555o"/>
+                </f:facet>
+                <tr:convertNumber type="number" locale="en_US"
+                                  messageDetailConvertCurrency='"{1}" in "{0}" is not a valid currency value.'
+                                  messageDetailConvertNumber='"{1}" in "{0}" is not valid. Please choose a number.'
+                                  messageDetailConvertPattern='"{1}" in "{0}" does not match the pattern {2}'
+                                  messageDetailConvertPercent='"{1}" in "{0}" is not a valid percentile.'/>
+              </tr:inputText>
+              <tr:inputText value="5%" label="Machine efficieny"
+                            readOnly="false">
+                <f:facet name="help">
+                  <tr:outputText value="type='percent' locale='en_US' Valid value=75% Invalid value=75"/>
+                </f:facet>
+                <tr:convertNumber type="percent" locale="en_US"
+                                  messageDetailConvertPercent='"{1}" in "{0}" is not a valid efficiency value.'/>
+              </tr:inputText>
+              <tr:inputText value="10.88" label="Pattern based number">
+                <f:facet name="help">
+                  <tr:outputText value="'pattern=##.000' locale='en_US' Invalid value=10e.88"/>
+                </f:facet>
+                <tr:convertNumber pattern="##.000" locale="en_US"
+                                  messageDetailConvertPattern='"{1}" in "{0}" does not match pattern {2}.'/>
+              </tr:inputText>
+            </tr:panelFormLayout>
+           </tr:panelHeader>
+           <tr:commandButton text="Submit"/>
+          </tr:panelPage>
+        </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/dateRestrictionValidate.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/index.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/convertValidate/index.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: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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css Wed Mar  7 06:44:35 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;
+}
+

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/CustomPortletStyles.css
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/carDemo.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/carDemo.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/carDemo.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/carDemo.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveFacetsChange_Explicit.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveFacetsChange_Explicit.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveFacetsChange_Explicit.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveFacetsChange_Explicit.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveReorderChildrenChange_Explicit.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveReorderChildrenChange_Explicit.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveReorderChildrenChange_Explicit.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/addRemoveReorderChildrenChange_Explicit.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Explicit.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Explicit.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Explicit.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Explicit.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Implicit.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Implicit.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Implicit.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/attributeChange_Implicit.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/changePersistence.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/changePersistence.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/changePersistence.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/changeDemos/changePersistence.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/chooseInteger.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/chooseInteger.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/chooseInteger.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/chooseInteger.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: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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/demos.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/demos.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/demos.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/demos.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/launchDialog.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/launchDialog.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/launchDialog.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/launchDialog.jspx Wed Mar  7 06:44:35 2007
@@ -0,0 +1,71 @@
+<?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>
+         <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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/launchFromPoll.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/launchFromPoll.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/launchFromPoll.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/launchFromPoll.jspx Wed Mar  7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/optionsDialog.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/optionsDialog.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/optionsDialog.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/main/webapp/demos/optionsDialog.jspx Wed Mar  7 06:44:35 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>