You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/06/13 19:53:08 UTC
svn commit: r546977 [19/19] - in
/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo:
./ src/ src/conf/ src/main/ src/main/java/ src/main/java/org/
src/main/java/org/apache/ src/main/java/org/apache/myfaces/ src/main/java...
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/billing.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/billing.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/billing.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/billing.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,59 @@
+<?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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Enter Billing Information"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Billing Address">
+ <tr:panelFormLayout>
+ <tr:inputText label="First Name" value="#{order.billingAddress.firstName}"/>
+ <tr:inputText label="Last Name" value="#{order.billingAddress.lastName}"/>
+ <tr:inputText label="Street Address" value="#{order.billingAddress.streetAddress}"/>
+ <tr:inputText label="City" value="#{order.billingAddress.city}"/>
+ <tr:inputText label="State" value="#{order.billingAddress.state}"/>
+ <tr:inputText label="Zip Code" value="#{order.billingAddress.zip}"/>
+ </tr:panelFormLayout>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="3" maxStep="5"
+ nextActionListener="#{order.processNext}"
+ nextAction="#{order.getNextAction}"
+ previousActionListener="#{order.processPrevious}"
+ previousAction="#{order.getPreviousAction}"
+ />
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/cart.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/cart.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/cart.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/cart.jspx Wed Jun 13 10:52:53 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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Shopping Cart"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+
+ <tr:panelHeader text="Shopping Cart">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true" value="foobar" label="Items" />
+ </tr:panelFormLayout>
+
+ <tr:panelButtonBar>
+ <tr:commandButton action="checkout" text="Proceed to Checkout"/>
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/composite.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/composite.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/composite.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/composite.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,58 @@
+<?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="1.2"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:tr="http://myfaces.apache.org/trinidad"
+ xmlns:trh="http://myfaces.apache.org/trinidad/html"
+ xmlns:afdemo="http://myfaces.apache.org/adffacesdemo" >
+ <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Test of composite component"/>
+
+ <trh:body>
+ <tr:panelPage>
+ <tr:form>
+ <tr:messages/>
+ <tr:panelGroupLayout layout="vertical">
+ <afdemo:dateField id="dateField" value="#{date.date1}"/>
+ <tr:message for="dateField"/>
+ <tr:outputText value="Date is now #{date.date1}"/>
+
+ <tr:separator/>
+
+ <!-- Use a normal inputText, but use binding to force the renderer type -->
+ <h:inputText id="dateInput" value="#{date.date2}" binding="#{compositeTest.dateInput}"/>
+
+ <tr:message for="dateInput"/>
+ <tr:outputText value="Date is now #{date.date2}"/>
+
+ <tr:separator/>
+
+ <tr:commandButton text="Submit"/>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:panelPage>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/confirm.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/confirm.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/confirm.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/confirm.jspx Wed Jun 13 10:52:53 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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Confirmation"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Confirmation">
+ <tr:outputText styleClass="AFInstructionText"
+ value="Thank you for shopping with us. Your confirmation number is:" />
+ <tr:outputText styleClass="AFInstructionText"
+ inlineStyle="font-weight:bold" value="#{order.id}" />
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/credit.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/credit.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/credit.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/credit.jspx Wed Jun 13 10:52:53 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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Enter Credit Card Information"/>
+ <trh:body>
+ <tr:form>
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelFormLayout>
+ <tr:panelHeader text="Credit Card">
+ <tr:inputText label="First Name" value="#{order.creditCard.firstName}"/>
+ <tr:inputText label="Last Name" value="#{order.creditCard.lastName}"/>
+ <tr:inputText label="Card Number" value="#{order.creditCard.number}"/>
+ <tr:inputText label="Expiration Date" value="#{order.creditCard.expirationDate}"/>
+ </tr:panelHeader>
+ </tr:panelFormLayout>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="2" maxStep="5"
+ nextActionListener="#{order.processNext}"
+ nextAction="#{order.getNextAction}"
+ previousActionListener="#{order.processPrevious}"
+ previousAction="#{order.getPreviousAction}"/>
+ </tr:panelButtonBar>
+ </tr:panelPage>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/dynamic.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/dynamic.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/dynamic.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/dynamic.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,33 @@
+<?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="1.2"
+ 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="Test of dynamic components">
+ <tr:form>
+ <tr:panelBox binding="#{dynamic.panel}"/>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/el.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/el.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/el.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/el.jspx Wed Jun 13 10:52:53 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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Test of Trinidad EL bindings"/>
+ <trh:body>
+ <tr:panelPage>
+ <tr:form>
+ <tr:messages/>
+ <tr:panelGroupLayout layout="vertical">
+ <tr:outputText value="Current context is #{requestContext}"/>
+ <tr:outputText value="Right to left? : #{requestContext.rightToLeft}"/>
+ <tr:outputText value="Look and feel? : #{requestContext.lookAndFeel}"/>
+ <tr:outputText value="Accessibility mode? : #{requestContext.accessibilityMode}"/>
+ <tr:outputText value="Time zone? : #{requestContext.timeZone}"/>
+
+ <tr:outputText value="#{requestContext.formatter['Test {0} MessageFormat']['of']}"/>
+ <tr:goLink destination="#{requestContext.helpSystem.frontPage}" text="Get Help"/>
+ <tr:goLink destination="#{requestContext.helpTopic.ui_table}" text="Get Help"/>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:panelPage>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/forEachTest.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/forEachTest.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/forEachTest.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/forEachTest.jspx Wed Jun 13 10:52:53 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 xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <tr:form>
+ <tr:panelGroupLayout layout="vertical">
+
+ <!-- EACH OF THE BLOCK BELOW IS A SINGLE TEST CASE, UNCOMMENT EACH AND TEST -->
+
+ <!-- 'begin' and 'end' should default to '0' and size of 'items' respectively
+ value of 'var' is substring of value of 'varStatus', should work fine -->
+ <!--<tr:forEach var="item" varStatus="itemitem" step="3" end="500" items="#{table}">
+ <tr:outputText
+ value="item: #{item.string} varStatus.current: #{itemitem.current.string} varStatus.index: #{itemitem.index}"/>
+ </tr:forEach>-->
+
+ <!-- 'items' not specified, there should be iterations governed by 'begin'
+ and 'end' #{item} should resolve to an integer same as #{itemitem.index}"-->
+ <!--<tr:forEach var="item" varStatus="itemitem" begin="0" end="500">
+ <tr:outputText
+ value="item: #{item} varStatus.current: #{itemitem.current} varStatus.index: #{itemitem.index}"/>
+ </tr:forEach>-->
+
+ <!-- 'items' not specified, but used in the expressions, some EL parsing errors expected -->
+ <!--<tr:forEach var="item" varStatus="itemitem" begin="0" end="500">
+ <tr:outputText
+ value="item: #{item.string} varStatus.current: #{itemitem.current.string} varStatus.index: #{itemitem.index}"/>
+ </tr:forEach>-->
+
+ <!-- 'begin' greater than size of 'items' - hence no looping -->
+ <!--<tr:forEach var="item" varStatus="itemitem" begin="20" step="3" end="500" items="#{table}">
+ <tr:outputText
+ value="item: #{item.string} varStatus.current: #{itemitem.current.string} varStatus.index: #{itemitem.index}"/>
+ </tr:forEach>-->
+
+ <!-- 'items' do not resolve to anything valid, there should be no looping hence -->
+ <!--<tr:forEach var="item" varStatus="itemitem" begin="0" end="500" items="#{error_on_resolution}">
+ <tr:outputText
+ value="item: #{item.string} varStatus.current: #{itemitem.current.string} varStatus.index: #{itemitem.index}"/>
+ </tr:forEach>-->
+
+ <!-- the EL expressions should not be tried to be resolved as the usage of values from
+ 'var' and 'varStatus' is not correct -->
+ <!--@todo =-=pu: FAILURE
+ <tr:forEach var="item" varStatus="itemitem" step="3" end="500" items="#{table}">
+ <tr:outputText
+ value="item: #{itemerror.string} varStatus.current: #{itemitemerror.current.string} varStatus.index: #{itemitem[1].index}"/>
+ </tr:forEach>
+ FAILURE -->
+
+ <!-- Nested use of forEach with 'items' specified -->
+ <!--<tr:forEach var="outer" items="#{listOfLists}">
+ <tr:forEach var="inner" items="#{outer}">
+ <tr:outputText id="myStyledText" rendered="#{(inner.int % 2 == 0)}" value="#{inner.string}"/>
+ </tr:forEach>
+ </tr:forEach>-->
+
+ <!-- The varStatus.current should be same as varStatus.index below, nesting
+ scope should be respected for variables -->
+ <!--<tr:forEach varStatus="outer" begin="1" end="10" step="2">
+ <tr:forEach varStatus="inner" begin="1" end="5">
+ <tr:outputText id="ot1" value="outer.index: #{outer.index} | outer.count: #{outer.count} | outer.begin: #{outer.begin} | outer.end: #{outer.end} | outer.step: #{outer.step} | outer.isFirst: #{outer.first} | outer.isLast: #{outer.last} | outer.current: #{outer.current}"/>
+ <tr:outputText id="ot2" value="inner.index: #{inner.index} | inner.count: #{inner.count} | inner.begin: #{inner.begin} | inner.end: #{inner.end} | inner.step: #{inner.step} | inner.isFirst: #{inner.first} | inner.isLast: #{inner.last} | inner.current: #{inner.current}"/>
+ </tr:forEach>
+ </tr:forEach>-->
+
+ <!-- Should throw an Jsp error as 'begin' and 'end' are must in absence of 'items' -->
+ <!--<tr:forEach varStatus="inner" begin="1">
+ </tr:forEach>-->
+
+ <!-- Should throw an Jsp error as 'begin' > 'end' -->
+ <!--<tr:forEach varStatus="inner" begin="10" end="1">
+ </tr:forEach>-->
+
+ <!-- Should throw an Jsp error as 'begin' < 0 -->
+ <!--<tr:forEach varStatus="inner" begin="-1" end="0">
+ </tr:forEach>-->
+
+ <!-- Should throw an Jsp error as 'step' !> 0 -->
+ <!--<tr:forEach varStatus="inner" begin="0" end="10" step="0">
+ </tr:forEach>-->
+
+ <!-- Only one iteration as the step is very large -->
+ <!--<tr:forEach varStatus="outer" begin="1" end="10" step="20">
+ <tr:outputText id="ot1" value="outer.index: #{outer.index} | outer.count: #{outer.count} | outer.begin: #{outer.begin} | outer.end: #{outer.end} | outer.step: #{outer.step} | outer.isFirst: #{outer.first} | outer.isLast: #{outer.last}"/>
+ </tr:forEach>-->
+
+ <!-- 'var' and 'varStatus' cannot have the same value - should throw Jsp error-->
+ <!--<tr:forEach varStatus="outer" var="outer" begin="1" end="10" step="20">
+ </tr:forEach>-->
+
+ </tr:panelGroupLayout>
+ </tr:form>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/hideShowInTable.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/hideShowInTable.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/hideShowInTable.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/hideShowInTable.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Test of hideShow in the table"/>
+
+ <trh:body>
+ <tr:form>
+ <tr:messages/>
+ <tr:table value="#{table}" var="row">
+ <tr:column>
+ <tr:showDetail>
+ <tr:inputText columns="2" required="true" value="#{row.int}"/>
+ </tr:showDetail>
+ </tr:column>
+ <tr:column>
+ <tr:inputText value="#{row.string}"/>
+ </tr:column>
+ </tr:table>
+ <tr:commandButton text="Submit"/>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/items.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/items.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/items.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/items.jspx Wed Jun 13 10:52:53 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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Shopping"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Items">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true" value="foobar" label="Items" />
+ </tr:panelFormLayout>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="1" maxStep="5"
+ nextActionListener="#{order.processNext}"
+ nextAction="#{order.getNextAction}"/>
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/login.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/login.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/login.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/login.jspx Wed Jun 13 10:52:53 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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Log In"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Log In">
+ <tr:panelFormLayout>
+ <tr:inputText label="UserName" value="#{order.customer.userName}"/>
+ <tr:inputText label="Password" value="#{order.customer.password}" secret="true"/>
+ </tr:panelFormLayout>
+ <tr:panelButtonBar>
+ <tr:commandButton text="Log In" action="loggedIn"/>
+ <tr:commandButton text="New User" action="newUser"/>
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/register.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/register.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/register.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/register.jspx Wed Jun 13 10:52:53 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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Register"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Register">
+ <tr:panelFormLayout>
+ <tr:inputText label="UserName" value="#{order.customer.userName}"/>
+ <tr:inputText label="Password" value="#{order.customer.password}" secret="true"/>
+ <tr:inputText label="First Name" value="#{order.customer.firstName}"/>
+ <tr:inputText label="Last Name" value="#{order.customer.lastName}"/>
+ </tr:panelFormLayout>
+ <tr:panelButtonBar>
+ <tr:commandButton text="Log In" action="loggedIn"/>
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/review.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/review.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/review.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/review.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,83 @@
+<?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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Confirm Order Information"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Review Order Information">
+ <tr:panelHeader text="Customer Information">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true" label="First Name" value="#{order.customer.firstName}"/>
+ <tr:inputText readOnly="true" label="Last Name" value="#{order.customer.lastName}"/>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:panelHeader text="Credit Card Information">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true" label="First Name" value="#{order.creditCard.firstName}"/>
+ <tr:inputText readOnly="true" label="Last Name" value="#{order.creditCard.lastName}"/>
+ <tr:inputText readOnly="true" label="Card Number" value="#{order.creditCard.number}"/>
+ <tr:inputText readOnly="true" label="Expiration Date" value="#{order.creditCard.expirationDate}"/>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:panelHeader text="Billing Address">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true" label="First Name" value="#{order.billingAddress.firstName}"/>
+ <tr:inputText readOnly="true" label="Last Name" value="#{order.billingAddress.lastName}"/>
+ <tr:inputText readOnly="true" label="Street Address" value="#{order.billingAddress.streetAddress}"/>
+ <tr:inputText readOnly="true" label="City" value="#{order.billingAddress.city}"/>
+ <tr:inputText readOnly="true" label="State" value="#{order.billingAddress.state}"/>
+ <tr:inputText readOnly="true" label="Zip Code" value="#{order.billingAddress.zip}"/>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:panelHeader text="Shipping Address">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true" label="First Name" value="#{order.shippingAddress.firstName}"/>
+ <tr:inputText readOnly="true" label="Last Name" value="#{order.shippingAddress.lastName}"/>
+ <tr:inputText readOnly="true" label="Street Address" value="#{order.shippingAddress.streetAddress}"/>
+ <tr:inputText readOnly="true" label="City" value="#{order.shippingAddress.city}"/>
+ <tr:inputText readOnly="true" label="State" value="#{order.shippingAddress.state}"/>
+ <tr:inputText readOnly="true" label="Zip Code" value="#{order.shippingAddress.zip}"/>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="5" maxStep="5"
+ previousActionListener="#{order.processPrevious}"
+ previousAction="#{order.getPreviousAction}"/>
+ <tr:commandButton action="confirm" text="Confirm Order"/>
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/sample.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/sample.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/sample.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/sample.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Sample page"/>
+ <trh:body>
+ <tr:form>
+ <tr:panelPage id="plTarget"
+ binding="#{ui.panelPage}"
+ partialTriggers="sd1 sd2">
+ <tr:messages/>
+ <f:facet name="manu1">
+ <tr:menuTabs >
+ <tr:goLink text="Home" destination="#" />
+ <tr:goLink text="Home 2" destination="#" />
+ </tr:menuTabs>
+ </f:facet>
+ <tr:commandButton text="Nothing" action="#{action.nothing}"/>
+ <tr:commandButton text="Fire Action Listener"
+ actionListener="#{ui.anActionListener}"/>
+ <!-- This component is a trigger for the panelPage, 'cause our
+ disclosureListener modifies the panelPage's title -->
+ <tr:showDetail id="sd1"
+ disclosureListener="#{ui.aDisclosureListener}">
+ <f:verbatim>
+ Some text
+ </f:verbatim>
+ </tr:showDetail>
+ <tr:showDetail id="sd2"
+ immediate="false"
+ disclosureListener="#{ui.aDisclosureListener}">
+ <f:verbatim>
+ Some more text
+ </f:verbatim>
+ </tr:showDetail>
+
+ <tr:inputText id="mti1" value="#{data.int}" required="true" label="label"/>
+
+
+ <tr:table value="#{table}" var="row" rows="10">
+ <f:facet name="selection">
+ <tr:tableSelectMany/>
+ </f:facet>
+ <tr:column>
+ <tr:inputText value="#{row.int}"/>
+ </tr:column>
+ <tr:column>
+ <tr:inputText value="#{row.string}"/>
+ </tr:column>
+ <tr:column>
+ <tr:commandButton text="Details..."
+ action="#{row.showDetail}"/>
+ </tr:column>
+ </tr:table>
+ </tr:panelPage>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/selectItemTest.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/selectItemTest.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/selectItemTest.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/selectItemTest.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Test of selectItemSupport"/>
+ <trh:body>
+ <tr:form>
+ <tr:panelFormLayout rows="5" maxColumns="3">
+ <tr:selectOneChoice label="Explicit selectItem">
+ <f:selectItem itemValue="foo" itemLabel="Foo"/>
+ <f:selectItem itemValue="bar" itemLabel="Bar"/>
+ <f:selectItem itemValue="baz" itemLabel="Baz"/>
+ </tr:selectOneChoice>
+
+ <tr:selectOneChoice label="Bound selectItem">
+ <f:selectItem value="#{selectItemTest.oneItem}"/>
+ <f:selectItem value="#{selectItemTest.itemList[1]}"/>
+ <f:selectItem value="#{selectItemTest.itemList[2]}"/>
+ </tr:selectOneChoice>
+
+ <tr:selectOneChoice label="selectItems at list">
+ <f:selectItems value="#{selectItemTest.itemList}"/>
+ </tr:selectOneChoice>
+
+ <tr:selectOneChoice label="selectItems at array">
+ <f:selectItems value="#{selectItemTest.itemArray}"/>
+ </tr:selectOneChoice>
+
+ <tr:selectOneChoice label="selectItems at map">
+ <f:selectItems value="#{selectItemTest.itemMap}"/>
+ </tr:selectOneChoice>
+
+ <tr:selectOneListbox label="Explicit selectItem">
+ <f:selectItem itemValue="foo" itemLabel="Foo"/>
+ <f:selectItem itemValue="bar" itemLabel="Bar"/>
+ <f:selectItem itemValue="baz" itemLabel="Baz"/>
+ </tr:selectOneListbox>
+
+ <tr:selectOneListbox label="Bound selectItem">
+ <f:selectItem value="#{selectItemTest.oneItem}"/>
+ <f:selectItem value="#{selectItemTest.itemList[1]}"/>
+ <f:selectItem value="#{selectItemTest.itemList[2]}"/>
+ </tr:selectOneListbox>
+
+ <tr:selectOneListbox label="selectItems at list">
+ <f:selectItems value="#{selectItemTest.itemList}"/>
+ </tr:selectOneListbox>
+
+ <tr:selectOneListbox label="selectItems at array">
+ <f:selectItems value="#{selectItemTest.itemArray}"/>
+ </tr:selectOneListbox>
+
+ <tr:selectOneListbox label="selectItems at map">
+ <f:selectItems value="#{selectItemTest.itemMap}"/>
+ </tr:selectOneListbox>
+
+ <tr:selectOneRadio label="Explicit selectItem">
+ <f:selectItem itemValue="foo" itemLabel="Foo"/>
+ <f:selectItem itemValue="bar" itemLabel="Bar"/>
+ <f:selectItem itemValue="baz" itemLabel="Baz"/>
+ </tr:selectOneRadio>
+
+ <tr:selectOneRadio label="Bound selectItem">
+ <f:selectItem value="#{selectItemTest.oneItem}"/>
+ <f:selectItem value="#{selectItemTest.itemList[1]}"/>
+ <f:selectItem value="#{selectItemTest.itemList[2]}"/>
+ </tr:selectOneRadio>
+
+ <tr:selectOneRadio label="selectItems at list">
+ <f:selectItems value="#{selectItemTest.itemList}"/>
+ </tr:selectOneRadio>
+
+ <tr:selectOneRadio label="selectItems at array">
+ <f:selectItems value="#{selectItemTest.itemArray}"/>
+ </tr:selectOneRadio>
+
+ <tr:selectOneRadio label="selectItems at map">
+ <f:selectItems value="#{selectItemTest.itemMap}"/>
+ </tr:selectOneRadio>
+
+ </tr:panelFormLayout>
+
+ <tr:selectOrderShuttle>
+ <f:selectItems value="#{selectItemTest.itemList}"/>
+ </tr:selectOrderShuttle>
+
+ <tr:commandButton text="Submit"/>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/shipping.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/shipping.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/shipping.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/shipping.jspx Wed Jun 13 10:52:53 2007
@@ -0,0 +1,59 @@
+<?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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Enter Shipping Information"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Shipping Address">
+ <tr:panelFormLayout>
+ <tr:inputText label="First Name" value="#{order.shippingAddress.firstName}"/>
+ <tr:inputText label="Last Name" value="#{order.shippingAddress.lastName}"/>
+ <tr:inputText label="Street Address" value="#{order.shippingAddress.streetAddress}"/>
+ <tr:inputText label="City" value="#{order.shippingAddress.city}"/>
+ <tr:inputText label="State" value="#{order.shippingAddress.state}"/>
+ <tr:inputText label="Zip Code" value="#{order.shippingAddress.zip}"/>
+ </tr:panelFormLayout>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="4" maxStep="5"
+ nextActionListener="#{order.processNext}"
+ nextAction="#{order.getNextAction}"
+ previousActionListener="#{order.processPrevious}"
+ previousAction="#{order.getPreviousAction}"
+ />
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/showDetail.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/showDetail.jspx?view=auto&rev=546977
==============================================================================
--- myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/showDetail.jspx (added)
+++ myfaces/trinidad/branches/matzew-core-101-release/trinidad-examples/trinidad-demo/src/test/webapp/showDetail.jspx Wed Jun 13 10:52:53 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="1.2"
+ 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=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Show Detail Page"/>
+ <trh:body>
+ <tr:form>
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Detail of #{pageFlowScope.detail.string}">
+ <tr:panelFormLayout>
+ <tr:panelLabelAndMessage label="Int:">
+ <tr:outputText value="#{pageFlowScope.detail.int}"/>
+ </tr:panelLabelAndMessage>
+ <tr:panelLabelAndMessage label="String:">
+ <tr:outputText value="#{pageFlowScope.detail.string}"/>
+ </tr:panelLabelAndMessage>
+ </tr:panelFormLayout>
+ <tr:commandButton text="Return..."
+ action="sample"/>
+ </tr:panelHeader>
+ </tr:panelPage>
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>