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 [19/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...
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CreditCardBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CreditCardBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java Wed Mar 7 06:44:35 2007
@@ -0,0 +1,84 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+public class CustomerBean
+{
+
+ public CustomerBean()
+ {
+
+ // This isn't thread-safe. I don't care. :)
+ _id = _sID++;
+
+ }
+
+
+ public String getFirstName()
+ {
+ return _firstName;
+ }
+
+ public void setFirstName(String firstName)
+ {
+ _firstName = firstName;
+ }
+
+ public String getLastName()
+ {
+ return _lastName;
+ }
+
+ public void setLastName(String lastName)
+ {
+ _lastName = lastName;
+ }
+
+ public String getUserName()
+ {
+ return _userName;
+ }
+
+ public void setUserName(String userName)
+ {
+ _userName = userName;
+ }
+
+ public String getPassword()
+ {
+ return _password;
+ }
+
+ public void setPassword(String password)
+ {
+ _password = password;
+ }
+
+ private String _firstName = null;
+ private String _lastName = null;
+ private String _userName = null;
+ private String _password = null;
+ // Never read
+ @SuppressWarnings("unused")
+ private int _id;
+
+ static private int _sID = 2242;
+
+}
+
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java Wed Mar 7 06:44:35 2007
@@ -0,0 +1,68 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.MethodBinding;
+import javax.faces.event.ActionEvent;
+
+import org.apache.myfaces.trinidad.component.core.layout.CorePanelBox;
+import org.apache.myfaces.trinidad.component.core.nav.CoreCommandLink;
+
+public class DynamicBean
+{
+ public DynamicBean()
+ {
+ }
+
+ public void doSomething(ActionEvent event)
+ {
+ System.out.println("Received " + event);
+ }
+
+ @SuppressWarnings("unchecked")
+ public CorePanelBox getPanel()
+ {
+ if (_panel == null)
+ {
+ FacesContext context = FacesContext.getCurrentInstance();
+
+ _panel = new CorePanelBox();
+ CoreCommandLink link = new CoreCommandLink();
+ link.setText("Dynamic Link");
+
+ MethodBinding actionListenerMethod = context.getApplication().
+ createMethodBinding("#{dynamic.doSomething}",
+ new Class[]{ActionEvent.class});
+ link.setActionListener(actionListenerMethod);
+ link.setId("TheLinkId");
+ _panel.getChildren().add(link);
+ }
+
+ return _panel;
+ }
+
+ public void setPanel(CorePanelBox panel)
+ {
+ _panel = panel;
+ }
+
+ private CorePanelBox _panel;
+}
+
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java Wed Mar 7 06:44:35 2007
@@ -0,0 +1,126 @@
+/*
+ * 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.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+import javax.faces.event.ActionEvent;
+
+public class OrderBean
+{
+
+ public OrderBean()
+ {
+System.out.println("Order constructor");
+
+ // This isn't thread-safe. I don't care. :)
+ _id = _sOrderID++;
+
+ }
+
+
+
+ public int getId()
+ {
+ return _id;
+ }
+
+ public void setId(int id)
+ {
+ _id = id;
+ }
+
+
+ public String getNextAction()
+ {
+ return "next";
+
+ }
+
+ public String getPreviousAction()
+ {
+ return "previous";
+
+ }
+
+
+
+ public void processNext(
+ ActionEvent event)
+ {
+ System.out.println(" demo processNext");
+
+ }
+
+
+ public void processPrevious(
+ ActionEvent event)
+ {
+ System.out.println(" demo processPrevious" );
+
+ }
+
+ public AddressBean getShippingAddress()
+ {
+ return _shippingAddress;
+ }
+
+ public void setShippingAddress(AddressBean shippingAddress)
+ {
+ _shippingAddress = shippingAddress;
+ }
+
+ public AddressBean getBillingAddress()
+ {
+ return _billingAddress;
+ }
+
+ public void setBillingAddress(AddressBean billingAddress)
+ {
+ _billingAddress = billingAddress;
+ }
+
+ public CustomerBean getCustomer()
+ {
+ return _customer;
+ }
+
+ public void setCustomer(CustomerBean customer)
+ {
+ _customer = customer;
+ }
+
+ public CreditCardBean getCreditCard()
+ {
+ return _creditCard;
+ }
+
+ public void setCreditCard(CreditCardBean creditCard)
+ {
+ _creditCard = creditCard;
+ }
+
+ private int _id;
+ private CustomerBean _customer = new CustomerBean();
+ private CreditCardBean _creditCard = new CreditCardBean();
+ private AddressBean _shippingAddress = new AddressBean();
+ private AddressBean _billingAddress = new AddressBean();
+
+ static private int _sOrderID = 4524;
+
+}
+
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml Wed Mar 7 06:44:35 2007
@@ -0,0 +1,155 @@
+<!--
+ 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.
+
+-->
+<faces-config>
+
+ <!-- SHOPPING CART -->
+ <navigation-rule>
+ <from-view-id>/cart.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>checkout</from-outcome>
+ <to-view-id>/login.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- LOGIN -->
+ <navigation-rule>
+ <from-view-id>/login.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>loggedIn</from-outcome>
+ <to-view-id>/items.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>newUser</from-outcome>
+ <to-view-id>/register.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- REGISTER -->
+ <navigation-rule>
+ <from-view-id>/register.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>loggedIn</from-outcome>
+ <to-view-id>/items.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- ITEMS LIST -->
+ <navigation-rule>
+ <from-view-id>/items.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/credit.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- CREDIT CARD -->
+ <navigation-rule>
+ <from-view-id>/credit.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/billing.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/items.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- BILLING -->
+ <navigation-rule>
+ <from-view-id>/billing.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/shipping.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/credit.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- SHIPPING -->
+ <navigation-rule>
+ <from-view-id>/shipping.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/review.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/billing.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- REVIEW -->
+ <navigation-rule>
+ <from-view-id>/review.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/shipping.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>confirm</from-outcome>
+ <to-view-id>/confirm.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- ORDER BEAN FOR SHOPPING CART CHECKOUT -->
+ <managed-bean>
+ <managed-bean-name>order</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.trinidaddemo.OrderBean
+ </managed-bean-class>
+ <managed-bean-scope>
+ session
+ </managed-bean-scope>
+ </managed-bean>
+
+ <!-- END OF CART -->
+ <managed-bean>
+ <managed-bean-name>dynamic</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.trinidaddemo.DynamicBean
+ </managed-bean-class>
+ <managed-bean-scope>
+ request
+ </managed-bean-scope>
+ </managed-bean>
+
+</faces-config>
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml Wed Mar 7 06:44:35 2007
@@ -0,0 +1,125 @@
+<?xml version = '1.0' encoding = 'ISO-8859-1'?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+ <!-- Faces API parameter -->
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ <!--param-value>server</param-value-->
+ </context-param>
+
+ <!-- Faces Filter -->
+ <filter>
+ <filter-name>faces</filter-name>
+ <filter-class>org.apache.myfaces.trinidadinternal.webapp.FacesFilter</filter-class>
+ <init-param>
+ <param-name>faces-servlet-url-pattern</param-name>
+ <param-value>/faces/*</param-value>
+ </init-param>
+ </filter>
+
+ <filter>
+ <filter-name>trinidad</filter-name>
+ <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
+ </filter>
+
+ <!-- Faces Filter Mappings -->
+ <filter-mapping>
+ <filter-name>faces</filter-name>
+ <url-pattern>*.jspx</url-pattern>
+ </filter-mapping>
+
+ <filter-mapping>
+ <filter-name>trinidad</filter-name>
+ <servlet-name>faces</servlet-name>
+ </filter-mapping>
+
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>faces</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ </servlet>
+
+ <!-- resource loader servlet -->
+ <servlet>
+ <servlet-name>resources</servlet-name>
+ <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
+ </servlet>
+
+ <!-- On some version of OC4J, the following is needed when using jsf 1.0 -->
+ <!--servlet>
+ <servlet-name>jsp</servlet-name>
+ <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
+ <init-param>
+ <param-name>tags_reuse_default</param-name>
+ <param-value>none</param-value>
+ </init-param>
+ </servlet-->
+
+ <!-- Faces Servlet Mappings -->
+ <servlet-mapping>
+ <servlet-name>faces</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>resources</servlet-name>
+ <url-pattern>/adf/*</url-pattern>
+ </servlet-mapping>
+
+
+ <!-- Welcome Files -->
+ <welcome-file-list>
+ <welcome-file>index.jspx</welcome-file>
+ </welcome-file-list>
+
+ <!-- Trinidad Tag Library -->
+ <taglib>
+ <taglib-uri>http://myfaces.apache.org/trinidad</taglib-uri>
+ <taglib-location>/WEB-INF/tr.tld</taglib-location>
+ </taglib>
+
+ <taglib>
+ <taglib-uri>http://myfaces.apache.org/trinidad/html</taglib-uri>
+ <taglib-location>/WEB-INF/trh.tld</taglib-location>
+ </taglib>
+
+ <!-- Faces Core Tag Library -->
+ <taglib>
+ <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
+ <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
+ </taglib>
+
+ <!-- Faces Html Basic Tag Library -->
+ <taglib>
+ <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
+ <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
+ </taglib>
+
+ <!-- Trinidad Demo Tag Library -->
+ <taglib>
+ <taglib-uri>http://myfaces.apache.org/trinidaddemo</taglib-uri>
+ <taglib-location>/WEB-INF/uixdemo.tld</taglib-location>
+ </taglib>
+
+</web-app>
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/billing.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/billing.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/billing.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/billing.jspx Wed Mar 7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/cart.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/cart.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/cart.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/cart.jspx Wed Mar 7 06:44:35 2007
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/composite.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/composite.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/composite.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/composite.jspx Wed Mar 7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/confirm.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/confirm.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/confirm.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/confirm.jspx Wed Mar 7 06:44:35 2007
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/credit.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/credit.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/credit.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/credit.jspx Wed Mar 7 06:44:35 2007
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/dynamic.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/dynamic.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/dynamic.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/dynamic.jspx Wed Mar 7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/el.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/el.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/el.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/el.jspx Wed Mar 7 06:44:35 2007
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/forEachTest.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/forEachTest.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/forEachTest.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/forEachTest.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 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/hideShowInTable.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/hideShowInTable.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/hideShowInTable.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/hideShowInTable.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="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/items.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/items.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/items.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/items.jspx Wed Mar 7 06:44:35 2007
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/login.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/login.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/login.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/login.jspx Wed Mar 7 06:44:35 2007
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/register.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/register.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/register.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/register.jspx Wed Mar 7 06:44:35 2007
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/review.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/review.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/review.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/review.jspx Wed Mar 7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/sample.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/sample.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/sample.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/sample.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="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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/selectItemTest.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/selectItemTest.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/selectItemTest.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/selectItemTest.jspx Wed Mar 7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/shipping.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/shipping.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/shipping.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/shipping.jspx Wed Mar 7 06:44:35 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: incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/showDetail.jspx
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/showDetail.jspx?view=auto&rev=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/showDetail.jspx (added)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/examples/trinidad-demo/src/test/webapp/showDetail.jspx Wed Mar 7 06:44:35 2007
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="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>
Modified: incubator/adffaces/branches/matzew-core-1.0.0-incubation/pom.xml
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-core-1.0.0-incubation/pom.xml?view=diff&rev=515587&r1=515586&r2=515587
==============================================================================
--- incubator/adffaces/branches/matzew-core-1.0.0-incubation/pom.xml (original)
+++ incubator/adffaces/branches/matzew-core-1.0.0-incubation/pom.xml Wed Mar 7 06:44:35 2007
@@ -295,7 +295,6 @@
<module>trinidad-api</module>
<module>trinidad-build</module>
<module>trinidad-impl</module>
- <module>trinidad-demo</module>
<module>examples</module>
</modules>