You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mf...@apache.org on 2010/05/26 22:20:58 UTC

svn commit: r948569 [4/12] - in /myfaces/portlet-bridge/core/trunk: ./ api/src/main/java/javax/portlet/faces/component/ examples/ examples/carstore/ examples/carstore/src/ examples/carstore/src/main/ examples/carstore/src/main/java/ examples/carstore/s...

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/Roadster_options.properties
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/Roadster_options.properties?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/Roadster_options.properties (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/Roadster_options.properties Wed May 26 20:20:51 2010
@@ -0,0 +1,58 @@
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the License). You may not use this file except in
+# compliance with the License.
+# 
+# You can obtain a copy of the License at
+# https://javaserverfaces.dev.java.net/CDDL.html or
+# legal/CDDLv1.0.txt. 
+# See the License for the specific language governing
+# permission and limitations under the License.
+# 
+# When distributing Covered Code, include this CDDL
+# Header Notice in each file and include the License file
+# at legal/CDDLv1.0.txt.    
+# If applicable, add the following below the CDDL Header,
+# with the fields enclosed by brackets [] replaced by
+# your own identifying information:
+# "Portions Copyrighted [year] [name of copyright owner]"
+# 
+# [Name of File] [ver.__] [Date]
+# 
+# Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+#
+
+# this file contains the non-localized set of options for the Roadster
+
+
+basePrice=15700
+basePrice_componentType=javax.faces.Output
+basePrice_valueType=java.lang.Integer
+currentPrice=15700
+currentPrice_componentType=javax.faces.Output
+currentPrice_valueType=java.lang.Integer
+image=/images/200x168_Roadster.jpg
+image_componentType=javax.faces.Graphic
+image_valueType=java.lang.String
+imageSmall=/images/150x126_Roadster.jpg
+imageSmall_componentType=javax.faces.Graphic
+imageSmall_valueType=java.lang.String
+brake=Disc,Drum
+brake_componentType=javax.faces.SelectOne
+brake_valueType=java.lang.String
+suspension=Performance,Regular
+suspension_componentType=javax.faces.SelectOne
+suspension_valueType=java.lang.String
+audio=Standard,Premium
+audio_componentType=javax.faces.SelectOne
+audio_valueType=java.lang.String
+transmission=Auto,Manual
+transmission_componentType=javax.faces.SelectOne
+transmission_valueType=java.lang.String
+engine=V4,V6,V8
+engine_componentType=javax.faces.SelectOne
+engine_valueType=java.lang.String
+speaker=4,6
+speaker_componentType=javax.faces.SelectOne
+speaker_valueType=java.lang.String

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV.properties
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV.properties?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV.properties (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV.properties Wed May 26 20:20:51 2010
@@ -0,0 +1,34 @@
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the License). You may not use this file except in
+# compliance with the License.
+# 
+# You can obtain a copy of the License at
+# https://javaserverfaces.dev.java.net/CDDL.html or
+# legal/CDDLv1.0.txt. 
+# See the License for the specific language governing
+# permission and limitations under the License.
+# 
+# When distributing Covered Code, include this CDDL
+# Header Notice in each file and include the License file
+# at legal/CDDLv1.0.txt.    
+# If applicable, add the following below the CDDL Header,
+# with the fields enclosed by brackets [] replaced by
+# your own identifying information:
+# "Portions Copyrighted [year] [name of copyright owner]"
+# 
+# [Name of File] [ver.__] [Date]
+# 
+# Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+#
+
+# this file contains the localized content for the SUV
+
+
+title=Duke's Bloated SUV
+title_componentType=javax.faces.Output
+title_valueType=java.lang.String
+description=Sometimes you can never be high enough or big enough compared to the car next to you. And those newborns come out bigger every time. Get the SUV that will hold everything and scare the begeezes out of everyone on the road.
+description_componentType=javax.faces.Output
+description_valueType=java.lang.String

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_de.properties
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_de.properties?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_de.properties (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_de.properties Wed May 26 20:20:51 2010
@@ -0,0 +1,34 @@
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the License). You may not use this file except in
+# compliance with the License.
+# 
+# You can obtain a copy of the License at
+# https://javaserverfaces.dev.java.net/CDDL.html or
+# legal/CDDLv1.0.txt. 
+# See the License for the specific language governing
+# permission and limitations under the License.
+# 
+# When distributing Covered Code, include this CDDL
+# Header Notice in each file and include the License file
+# at legal/CDDLv1.0.txt.    
+# If applicable, add the following below the CDDL Header,
+# with the fields enclosed by brackets [] replaced by
+# your own identifying information:
+# "Portions Copyrighted [year] [name of copyright owner]"
+# 
+# [Name of File] [ver.__] [Date]
+# 
+# Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+#
+
+# this file contains the localized content for the SUV
+
+title=Dukes aufgeblasener Gel\u00e4ndewagen
+title_componentType=javax.faces.Output
+title_valueType=java.lang.String
+description=Manchmal k\u00f6nnen Sie niemels hoch oder gro\u00df genug sein, verglichen mit dem Wagen neben Ihnen. Und diese Welpen kommen jedesmal gr\u00fc\u00dfer raus. Nehmen Sie diesen Gel\u00e4ndewagen, der allem standh\u00e4lt und jeden auf der Stra\u00dfe beeindruckt.
+description_componentType=javax.faces.Output
+description_valueType=java.lang.String
+

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_es.properties
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_es.properties?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_es.properties (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_es.properties Wed May 26 20:20:51 2010
@@ -0,0 +1,34 @@
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the License). You may not use this file except in
+# compliance with the License.
+# 
+# You can obtain a copy of the License at
+# https://javaserverfaces.dev.java.net/CDDL.html or
+# legal/CDDLv1.0.txt. 
+# See the License for the specific language governing
+# permission and limitations under the License.
+# 
+# When distributing Covered Code, include this CDDL
+# Header Notice in each file and include the License file
+# at legal/CDDLv1.0.txt.    
+# If applicable, add the following below the CDDL Header,
+# with the fields enclosed by brackets [] replaced by
+# your own identifying information:
+# "Portions Copyrighted [year] [name of copyright owner]"
+# 
+# [Name of File] [ver.__] [Date]
+# 
+# Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+#
+
+# this file contains the localized content for the SUV
+
+title=El enorme carro SUV de Duke
+title_componentType=javax.faces.Output
+title_valueType=java.lang.String
+description=Hay muchas veces de que uno nunca puede tener un carro mas grande de que el carro ala par de uno. Compra el SUV mas grande para poder poner todas las cosas que quiras y asustar a todos que se aproximen a tu SUV.
+description_componentType=javax.faces.Output
+description_valueType=java.lang.String
+

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_fr.properties
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_fr.properties?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_fr.properties (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_fr.properties Wed May 26 20:20:51 2010
@@ -0,0 +1,34 @@
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the License). You may not use this file except in
+# compliance with the License.
+# 
+# You can obtain a copy of the License at
+# https://javaserverfaces.dev.java.net/CDDL.html or
+# legal/CDDLv1.0.txt. 
+# See the License for the specific language governing
+# permission and limitations under the License.
+# 
+# When distributing Covered Code, include this CDDL
+# Header Notice in each file and include the License file
+# at legal/CDDLv1.0.txt.    
+# If applicable, add the following below the CDDL Header,
+# with the fields enclosed by brackets [] replaced by
+# your own identifying information:
+# "Portions Copyrighted [year] [name of copyright owner]"
+# 
+# [Name of File] [ver.__] [Date]
+# 
+# Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+#
+
+# this file contains the localized content for the SUV
+
+title=Le SUV de Duke
+title_componentType=javax.faces.Output
+title_valueType=java.lang.String
+description=Que ce soit en hauteur ou en grosseur, vous voulez surpasser toutes les voitures sur la route? Les rejetons grandissent trop vite? Vous devez vous procurer ce v\u00e9hicule utilitaire qui regorge d'espace pour asseoir tout le monde confortablement en plus de demander le respect de quiconque s'aventure sur la route avec vous.
+description_componentType=javax.faces.Output
+description_valueType=java.lang.String
+

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_options.properties
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_options.properties?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_options.properties (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/SUV_options.properties Wed May 26 20:20:51 2010
@@ -0,0 +1,57 @@
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the License). You may not use this file except in
+# compliance with the License.
+# 
+# You can obtain a copy of the License at
+# https://javaserverfaces.dev.java.net/CDDL.html or
+# legal/CDDLv1.0.txt. 
+# See the License for the specific language governing
+# permission and limitations under the License.
+# 
+# When distributing Covered Code, include this CDDL
+# Header Notice in each file and include the License file
+# at legal/CDDLv1.0.txt.    
+# If applicable, add the following below the CDDL Header,
+# with the fields enclosed by brackets [] replaced by
+# your own identifying information:
+# "Portions Copyrighted [year] [name of copyright owner]"
+# 
+# [Name of File] [ver.__] [Date]
+# 
+# Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+#
+
+# this file contains the non-localized set of options for the SUV
+
+basePrice=25000
+basePrice_componentType=javax.faces.Output
+basePrice_valueType=java.lang.Integer
+currentPrice=25000
+currentPrice_componentType=javax.faces.Output
+currentPrice_valueType=java.lang.Integer
+image=/images/200x168_SUV.jpg
+image_componentType=javax.faces.Graphic
+image_valueType=java.lang.String
+imageSmall=/images/150x126_SUV.jpg
+imageSmall_componentType=javax.faces.Graphic
+imageSmall_valueType=java.lang.String
+brake=Disc,Drum
+brake_componentType=javax.faces.SelectOne
+brake_valueType=java.lang.String
+suspension=Performance,Regular
+suspension_componentType=javax.faces.SelectOne
+suspension_valueType=java.lang.String
+audio=Standard,Premium
+audio_componentType=javax.faces.SelectOne
+audio_valueType=java.lang.String
+transmission=Auto,Manual
+transmission_componentType=javax.faces.SelectOne
+transmission_valueType=java.lang.String
+engine=V4,V6,V8
+engine_componentType=javax.faces.SelectOne
+engine_valueType=java.lang.String
+speaker=4,6
+speaker_componentType=javax.faces.SelectOne
+speaker_valueType=java.lang.String

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/Standard.properties
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/Standard.properties?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/Standard.properties (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/resources/carstore/bundles/Standard.properties Wed May 26 20:20:51 2010
@@ -0,0 +1,45 @@
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the License). You may not use this file except in
+# compliance with the License.
+# 
+# You can obtain a copy of the License at
+# https://javaserverfaces.dev.java.net/CDDL.html or
+# legal/CDDLv1.0.txt. 
+# See the License for the specific language governing
+# permission and limitations under the License.
+# 
+# When distributing Covered Code, include this CDDL
+# Header Notice in each file and include the License file
+# at legal/CDDLv1.0.txt.    
+# If applicable, add the following below the CDDL Header,
+# with the fields enclosed by brackets [] replaced by
+# your own identifying information:
+# "Portions Copyrighted [year] [name of copyright owner]"
+# 
+# [Name of File] [ver.__] [Date]
+# 
+# Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+#
+sunroof=true
+sunroof_disabled=true
+cruisecontrol=true
+cruisecontrol_disabled=true
+keylessentry=true
+keylessentry_disabled=true
+securitySystem=false
+securitySystem_disabled=true
+skirack=true
+skirack_disabled=true
+towPackage=false
+towPackage_disabled=true
+gps=false
+gps_disabled=true
+
+engine=V4
+brake=Disc
+suspension=Regular
+speaker=4
+audio=Standard
+transmission=Auto

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/carstore.tld
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/carstore.tld?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/carstore.tld (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/carstore.tld Wed May 26 20:20:51 2010
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!--
+ The contents of this file are subject to the terms
+ of the Common Development and Distribution License
+ (the License). You may not use this file except in
+ compliance with the License.
+ 
+ You can obtain a copy of the License at
+ https://javaserverfaces.dev.java.net/CDDL.html or
+ legal/CDDLv1.0.txt. 
+ See the License for the specific language governing
+ permission and limitations under the License.
+ 
+ When distributing Covered Code, include this CDDL
+ Header Notice in each file and include the License file
+ at legal/CDDLv1.0.txt.    
+ If applicable, add the following below the CDDL Header,
+ with the fields enclosed by brackets [] replaced by
+ your own identifying information:
+ "Portions Copyrighted [year] [name of copyright owner]"
+ 
+ [Name of File] [ver.__] [Date]
+ 
+ Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+<taglib xmlns="http://java.sun.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
+        version="2.1">
+
+    <!-- ============== Tag Library Description Elements ============= -->
+    <description>
+        This tag library contains tags used by the CarStore application.
+    </description>
+    <tlib-version>1.2</tlib-version>
+    <short-name>cs</short-name>
+    <uri>https://javaserverfaces.dev.java.net/demo/carstore</uri>
+
+    <!-- ===================== ImageMap tags ====================== -->
+    <tag>
+        <description>
+            Defines the format-validator tag, with the
+            tag-handler class, carstore.FormatValidatorTag. This tag
+            must be nested inside a UI component tag. The value of the
+            UI component whose tag encloses the format_validator tag
+            is validated against the format patterns defined by the
+            formatPatterns attribute.
+        </description>
+        <name>format_validator</name>
+        <tag-class>carstore.FormatValidatorTag</tag-class>
+        <body-content>empty</body-content>
+        <attribute>
+            <description>
+                Defines the format patterns to use to validate the data of
+                the UI component, whose tag encloses the format_validator
+                tag.
+            </description>
+            <name>formatPatterns</name>
+            <required>true</required>
+            <deferred-value>
+                <type>java.lang.String</type>
+            </deferred-value>
+        </attribute>
+    </tag>
+</taglib>

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/faces-config.xml?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/faces-config.xml Wed May 26 20:20:51 2010
@@ -0,0 +1,366 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+ The contents of this file are subject to the terms
+ of the Common Development and Distribution License
+ (the License). You may not use this file except in
+ compliance with the License.
+ 
+ You can obtain a copy of the License at
+ https://javaserverfaces.dev.java.net/CDDL.html or
+ legal/CDDLv1.0.txt. 
+ See the License for the specific language governing
+ permission and limitations under the License.
+ 
+ When distributing Covered Code, include this CDDL
+ Header Notice in each file and include the License file
+ at legal/CDDLv1.0.txt.    
+ If applicable, add the following below the CDDL Header,
+ with the fields enclosed by brackets [] replaced by
+ your own identifying information:
+ "Portions Copyrighted [year] [name of copyright owner]"
+ 
+ [Name of File] [ver.__] [Date]
+ 
+ Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+<!-- =========== FULL CONFIGURATION FILE ================================== -->
+
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
+              version="1.2">
+
+    <application>
+        <message-bundle>carstore.bundles.Messages</message-bundle>
+        <locale-config>
+            <default-locale>en</default-locale>
+            <supported-locale>de</supported-locale>
+            <supported-locale>fr</supported-locale>
+            <supported-locale>es</supported-locale>
+        </locale-config>
+    </application>
+
+    <!-- Validator -->
+    <validator>
+        <description>
+            Registers the concrete Validator implementation,
+            carstore.FormatValidator with the validator
+            identifier, FormatValidator.
+        </description>
+        <validator-id>FormatValidator</validator-id>
+        <validator-class>carstore.FormatValidator</validator-class>
+        <attribute>
+            <description>
+                List of format patterns separated by '|'. The validator
+                compares these patterns against the data entered in a
+                component that has this validator registered on it.
+            </description>
+            <attribute-name>formatPatterns</attribute-name>
+            <attribute-class>java.lang.String</attribute-class>
+        </attribute>
+    </validator>
+
+    <!-- converter -->
+    <converter>
+        <description>
+            Registers the concrete Converter implementation,
+            carstore.CreditCardConverter using the ID,
+            creditCardConverter.
+        </description>
+        <converter-id>creditCardConverter</converter-id>
+        <converter-class>carstore.CreditCardConverter</converter-class>
+    </converter>
+
+    <!-- =================== Initialize Image Map Hotspot Data ============== -->
+
+    <managed-bean>
+        <description>
+            Causes the default VariableResolver implementation to instantiate
+            the
+            managed bean, NA of the class, ImageArea in application
+            scope if the bean does not already exist in any scope and initialize
+            the
+            shape, alt, and coords properties with the values specified by the
+            managed-property elements.
+        </description>
+        <managed-bean-name>NA</managed-bean-name>
+        <managed-bean-class>
+            com.sun.javaee.blueprints.components.ui.model.ImageArea
+        </managed-bean-class>
+        <managed-bean-scope>application</managed-bean-scope>
+        <managed-property>
+            <description>
+                Initializes the shape property of the managed bean, NA with the
+                value,
+                poly.
+            </description>
+            <property-name>shape</property-name>
+            <value>poly</value>
+        </managed-property>
+        <managed-property>
+            <description>
+                Initializes the alt property of the managed bean, NA with the
+                value,
+                NAmerica.
+            </description>
+            <property-name>alt</property-name>
+            <value>NAmerica</value>
+        </managed-property>
+        <managed-property>
+            <description>
+                Initializes the coords property of the managed bean, NA with the
+                value
+                specified by the value element.
+            </description>
+            <property-name>coords</property-name>
+            <value>
+                53,109,1,110,2,167,19,168,52,149,67,164,67,165,68,167,70,168,72,170,74,172,75,174,77,175,79,177,81,179,80,179,77,179,81,179,81,178,80,178,82,211,28,238,15,233,15,242,31,252,36,247,36,246,32,239,89,209,92,216,93,216,100,216,103,218,113,217,116,224,124,221,128,230,163,234,185,189,178,177,162,188,143,173,79,173,73,163,79,157,64,142,54,139,53,109
+            </value>
+        </managed-property>
+    </managed-bean>
+
+    <managed-bean>
+        <description>
+            Causes the default VariableResolver implementation to instantiate
+            the
+            managed bean, SA of the class, ImageArea in application
+            scope if the bean does not already exist in any scope and initialize
+            the
+            shape, alt, and coords properties with the values specified by the
+            managed-property elements.
+        </description>
+        <managed-bean-name>SA</managed-bean-name>
+        <managed-bean-class>
+            com.sun.javaee.blueprints.components.ui.model.ImageArea
+        </managed-bean-class>
+        <managed-bean-scope>application</managed-bean-scope>
+        <managed-property>
+            <description>
+                Initializes the shape property of the managed bean, SA with the
+                value,
+                poly.
+            </description>
+            <property-name>shape</property-name>
+            <value>poly</value>
+        </managed-property>
+        <managed-property>
+            <description>
+                Initializes the alt property of the managed bean, SA with the
+                value,
+                SAmerica.
+            </description>
+            <property-name>alt</property-name>
+            <value>SAmerica</value>
+        </managed-property>
+        <managed-property>
+            <description>
+                Initializes the coords property of the managed bean, SA with the
+                value
+                specified by the value element.
+            </description>
+            <property-name>coords</property-name>
+            <value>
+                89,217,95,228,100,234,107,239,109,240,109,237,106,231,110,234,113,240,115,246,118,250,125,254,131,256,135,255,140,257,146,263,151,269,157,271,160,273,159,279,157,287,156,294,163,315,168,324,172,329,173,338,172,351,169,368,168,379,167,388,165,399,165,408,170,415,177,420,183,420,183,415,180,408,180,405,186,400,186,395,186,391,188,388,190,384,193,382,196,379,199,377,201,374,201,371,201,366,197,362,197,358,198,354,199,351,199,347,197,344,196,340,194,337,191,335,191,332,194,332,201,332,199,326,193,317,184,310,180,309,179,311,177,314,175,312,174,308,172,305,170,304,171,302,174,298,177,296,177,290,177,288,180,287,183,287,186,287,187,284,188,280,190,279,192,278,191,282,191,286,194,288,196,288,199,286,201,285,204,285,206,285,208,285,206,280,205,279,205,276,205,274,197,270,194,267,191,265,186,262,182,262,177,261,173,261,167,261,165,265,163,266,159,265,157,263,157,260,153,253,149,251,147,251,149,247,149,244,148,240,144,238,141,238,139,241,138,244,137,245,134,246,131,245
 ,130,242,130,238,130,236,130,233,129,230,125,225,123,221,119,221,118,223,117,220,113,219,104,217,101,215,96,215
+            </value>
+        </managed-property>
+    </managed-bean>
+
+    <managed-bean>
+        <description>
+            Causes the default VariableResolver implementation to instantiate
+            the
+            managed bean, gerA of the class, ImageArea in application
+            scope if the bean does not already exist in any scope and initialize
+            the
+            shape, alt, and coords properties with the values specified by the
+            managed-property elements.
+        </description>
+        <managed-bean-name>gerA</managed-bean-name>
+        <managed-bean-class>
+            com.sun.javaee.blueprints.components.ui.model.ImageArea
+        </managed-bean-class>
+        <managed-bean-scope>application</managed-bean-scope>
+        <managed-property>
+            <description>
+                Initializes the shape property of the managed bean, gerA with
+                the value
+                poly.
+            </description>
+            <property-name>shape</property-name>
+            <value>poly</value>
+        </managed-property>
+        <managed-property>
+            <description>
+                Initializes the alt property of the managed bean, gerA with the
+                value
+                Germany.
+            </description>
+            <property-name>alt</property-name>
+            <value>Germany</value>
+        </managed-property>
+        <managed-property>
+            <description>
+                Initializes the coords property of the managed bean, gerA with
+                the value
+                specified by the value element.
+            </description>
+            <property-name>coords</property-name>
+            <value>
+                324,163,323,170,322,172,320,173,320,175,321,176,321,177,321,179,321,180,319,180,318,180,317,182,316,183,315,181,314,181,313,181,312,181,311,180,310,177,310,177,307,176,307,173,307,172,308,170,309,169,309,167,309,166,311,165,311,163,311,161,312,159,314,159,316,160,316,162,318,162,319,162
+            </value>
+        </managed-property>
+    </managed-bean>
+
+    <managed-bean>
+        <description>
+            Causes the default VariableResolver implementation to instantiate
+            the
+            managed bean, fraA of the class, ImageArea in application
+            scope if the bean does not already exist in any scope and initialize
+            the
+            shape, alt, and coords properties with the values specified by the
+            managed-property elements.
+        </description>
+        <managed-bean-name>fraA</managed-bean-name>
+        <managed-bean-class>
+            com.sun.javaee.blueprints.components.ui.model.ImageArea
+        </managed-bean-class>
+        <managed-bean-scope>application</managed-bean-scope>
+        <managed-property>
+            <description>
+                Initializes the shape property of the managed bean, fraA with
+                the value
+                shape.
+            </description>
+            <property-name>shape</property-name>
+            <value>poly</value>
+        </managed-property>
+        <managed-property>
+            <description>
+                Initializes the alt property of the managed bean, fraA with the
+                value
+                France.
+            </description>
+            <property-name>alt</property-name>
+            <value>France</value>
+        </managed-property>
+        <managed-property>
+            <description>
+                Initializes the coords property of the managed bean, fraA with
+                the value
+                specified by the value element.
+            </description>
+            <property-name>coords</property-name>
+            <value>
+                312,178,308,182,310,184,310,187,310,189,309,191,307,192,305,192,304,192,304,193,303,195,302,195,300,194,299,194,297,194,295,193,295,191,295,189,294,186,293,184,292,182,291,181,289,180,288,178,288,176,289,175,292,175,293,176,294,174,296,174,297,174,299,174,299,172,300,170,302,170,304,172,306,173,308,173,310,174
+            </value>
+        </managed-property>
+    </managed-bean>
+
+    <!-- =================== Business Logic Beans ============== -->
+
+    <managed-bean>
+        <description>
+            Causes the default VariableResolver implementation to instantiate
+            the managed bean, CustomerBean of the class, carstore.CustomerBean
+            in session scope if the bean does not already exist in any scope.
+        </description>
+        <managed-bean-name>customer</managed-bean-name>
+        <managed-bean-class>carstore.CustomerBean</managed-bean-class>
+        <managed-bean-scope>session</managed-bean-scope>
+    </managed-bean>
+
+    <managed-bean>
+        <description>
+            The main backing file mean
+        </description>
+        <managed-bean-name>carstore</managed-bean-name>
+        <managed-bean-class>carstore.CarStore</managed-bean-class>
+        <managed-bean-scope>session</managed-bean-scope>
+    </managed-bean>
+
+    <navigation-rule>
+        <from-view-id>/chooseLocale.jsp</from-view-id>
+        <navigation-case>
+            <description>
+                Any action on chooseLocale should cause navigation to
+                storeFront.jsp
+            </description>
+            <from-outcome>storeFront</from-outcome>
+            <to-view-id>/storeFront.jsp</to-view-id>
+        </navigation-case>
+    </navigation-rule>
+
+    <navigation-rule>
+        <from-view-id>/storeFront.jsp</from-view-id>
+        <navigation-case>
+            <description>
+                Any action that returns "carDetail" on storeFront.jsp should
+                cause navigation to carDetail.jsp
+            </description>
+            <from-outcome>carDetail</from-outcome>
+            <to-view-id>/carDetail.jsp</to-view-id>
+        </navigation-case>
+    </navigation-rule>
+
+    <navigation-rule>
+        <from-view-id>/carDetail.jsp</from-view-id>
+        <navigation-case>
+            <description>
+                Any action that returns "confirmChoices" on carDetail.jsp should
+                cause navigation to confirmChoices.jsp
+            </description>
+            <from-outcome>confirmChoices</from-outcome>
+            <to-view-id>/confirmChoices.jsp</to-view-id>
+        </navigation-case>
+    </navigation-rule>
+
+    <navigation-rule>
+        <from-view-id>/confirmChoices.jsp</from-view-id>
+        <navigation-case>
+            <description>
+                Any action that returns "carDetail" on confirmChoices.jsp should
+                cause navigation to carDetail.jsp
+            </description>
+            <from-outcome>carDetail</from-outcome>
+            <to-view-id>/carDetail.jsp</to-view-id>
+        </navigation-case>
+    </navigation-rule>
+
+    <navigation-rule>
+        <from-view-id>/confirmChoices.jsp</from-view-id>
+        <navigation-case>
+            <description>
+                Any action that returns "customerInfo" on confirmChoices.jsp
+                should
+                cause navigation to customerInfo.jsp
+            </description>
+            <from-outcome>customerInfo</from-outcome>
+            <to-view-id>/customerInfo.jsp</to-view-id>
+        </navigation-case>
+    </navigation-rule>
+
+    <navigation-rule>
+        <from-view-id>/customerInfo.jsp</from-view-id>
+        <navigation-case>
+            <description>
+                Any action that returns "finish" on customerInfo.jsp should
+                cause navigation to finish.jsp
+            </description>
+            <from-outcome>finish</from-outcome>
+            <to-view-id>/finish.jsp</to-view-id>
+        </navigation-case>
+    </navigation-rule>
+
+    <render-kit>
+        <renderer>
+            <component-family>Area</component-family>
+            <renderer-type>DemoArea</renderer-type>
+            <renderer-class>org.apache.myfaces.portlet.faces.examples.renderkit.AreaRenderer</renderer-class>
+        </renderer>
+    </render-kit>
+
+
+</faces-config>

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml Wed May 26 20:20:51 2010
@@ -0,0 +1,240 @@
+<?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.
+	   
+-->
+
+<!-- This web.xml file is used in order to configure pluto to run with jetty in order to test the appropriate web applications -->
+<web-app 
+   xmlns="http://java.sun.com/xml/ns/javaee" 
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
+   metadata-complete="true"
+   version="2.5"> 
+
+  <context-param>
+    <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>
+    <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar</param-value>
+  </context-param>
+  
+  <!-- Listeners -->
+  <listener>
+    <listener-class>
+      com.bekk.boss.pluto.embedded.jetty.util.OverrideContextLoaderListener
+    </listener-class>
+  </listener>
+  
+  <listener>
+    <listener-class>
+      com.bekk.boss.pluto.embedded.util.PortalStartupListener
+    </listener-class>
+  </listener>
+
+  <!-- Filters and Mappings -->
+  <filter>
+    <filter-name>plutoResourceFilter</filter-name>
+    <filter-class>com.bekk.boss.pluto.embedded.util.PlutResourcesFilter</filter-class>
+  </filter>
+
+  <filter>
+    <filter-name>plutoPortalDriver</filter-name>
+    <filter-class>com.bekk.boss.pluto.embedded.util.PlutoPortalDriverFilter</filter-class>
+  </filter>
+	
+  <filter-mapping>
+    <filter-name>plutoResourceFilter</filter-name>
+    <url-pattern>*.css</url-pattern>
+    <url-pattern>*.gif</url-pattern>
+    <url-pattern>*.png</url-pattern>
+    <url-pattern>*.js</url-pattern>
+  </filter-mapping>
+
+  <filter-mapping>
+    <filter-name>plutoPortalDriver</filter-name>
+    <url-pattern>/pluto/index.jsp</url-pattern>
+    <url-pattern>/pluto/index.jsp/*</url-pattern>
+  </filter-mapping>
+
+  <!-- Servlets and Mappings -->
+
+  <!--
+    The default servlet.                                                  
+    This servlet, normally mapped to /, provides the handling for static  
+    content, OPTIONS and TRACE methods for the context.                   
+    The following initParameters are supported:                           
+                                                                          
+      acceptRanges     If true, range requests and responses are          
+                       supported                                          
+                                                                          
+      dirAllowed       If true, directory listings are returned if no     
+                       welcome file is found. Else 403 Forbidden.         
+                                                                          
+      redirectWelcome  If true, redirect welcome file requests            
+                       else use request dispatcher forwards               
+                                                                          
+      gzip             If set to true, then static content will be served  
+                       as gzip content encoded if a matching resource is  
+                       found ending with ".gz"                            
+                                                                          
+      resoureBase      Can be set to replace the context resource base    
+                                                                          
+      relativeResourceBase                                                
+                       Set with a pathname relative to the base of the    
+                       servlet context root. Useful for only serving      
+                       static content from only specific subdirectories.  
+                                                                          
+      useFileMappedBuffer                                                 
+                       If set to true (the default), a  memory mapped     
+                       file buffer will be used to serve static content   
+                       when using an NIO connector. Setting this value    
+                       to false means that a direct buffer will be used   
+                       instead. If you are having trouble with Windows    
+                       file locking, set this to false.                   
+                                                                          
+     cacheControl      If set, all static content will have this value    
+                       set as the cache-control header.                   
+                                                                          
+     maxCacheSize      Maximum size of the static resource cache          
+                                                                          
+     maxCachedFileSize Maximum size of any single file in the cache       
+                                                                          
+     maxCachedFiles    Maximum number of files in the cache               
+  -->
+
+  <servlet>
+    <servlet-name>default</servlet-name>
+    <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
+    <init-param>
+      <param-name>acceptRanges</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>dirAllowed</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>redirectWelcome</param-name>
+      <param-value>false</param-value>
+    </init-param>
+    <init-param>
+      <param-name>maxCacheSize</param-name>
+      <param-value>4000000</param-value>
+    </init-param>
+    <init-param>
+      <param-name>maxCachedFileSize</param-name>
+      <param-value>254000</param-value>
+    </init-param>
+    <init-param>
+      <param-name>maxCachedFiles</param-name>
+      <param-value>1000</param-value>
+    </init-param>
+    <init-param>
+      <param-name>gzip</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>useFileMappedBuffer</param-name>
+      <param-value>true</param-value>
+    </init-param>  
+    <load-on-startup>0</load-on-startup>
+  </servlet> 
+
+  <servlet id="jsp">
+    <servlet-name>jsp</servlet-name>
+    <servlet-class>com.bekk.boss.pluto.embedded.util.PortletJspServlet</servlet-class>
+    <init-param>
+        <param-name>logVerbosityLevel</param-name>
+        <param-value>DEBUG</param-value>
+    </init-param>
+    <init-param>
+        <param-name>fork</param-name>
+        <param-value>false</param-value>
+    </init-param>
+    <init-param>
+        <param-name>xpoweredBy</param-name>
+        <param-value>false</param-value>
+    </init-param>
+    <load-on-startup>0</load-on-startup>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>default</servlet-name>
+    <url-pattern>/</url-pattern>
+  </servlet-mapping>
+
+  <servlet-mapping> 
+    <servlet-name>jsp</servlet-name> 
+    <url-pattern>*.jsp</url-pattern> 
+    <url-pattern>*.jspf</url-pattern>
+    <url-pattern>*.jspx</url-pattern>
+    <url-pattern>*.xsp</url-pattern>
+    <url-pattern>*.JSP</url-pattern> 
+    <url-pattern>*.JSPF</url-pattern>
+    <url-pattern>*.JSPX</url-pattern>
+    <url-pattern>*.XSP</url-pattern>
+  </servlet-mapping>
+
+  <!-- Other settings -->
+  <session-config>
+    <session-timeout>60</session-timeout>
+  </session-config>
+
+	
+  <locale-encoding-mapping-list>
+    <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping>     
+    <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>zh</locale><encoding>GB2312</encoding></locale-encoding-mapping>
+    <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping>   
+  </locale-encoding-mapping-list>
+</web-app>
+

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/portlet.xml?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/portlet.xml (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/portlet.xml Wed May 26 20:20:51 2010
@@ -0,0 +1,50 @@
+<?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 xml:language governing permissions and limitations
+    under the License.	   
+-->
+<portlet-app version="1.0"
+             xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+
+  <portlet>
+    <description xml:lang="EN">MyFaces Portlet Bridge CarDemo Portlet</description>
+    <portlet-name>portlet-bridge-carstore</portlet-name>
+    <display-name xml:lang="EN">MyFaces Portlet Bridge CarDemo</display-name>
+    <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
+
+    <init-param>
+      <name>javax.portlet.faces.defaultViewId.view</name>
+      <value>/chooseLocale.jsp</value>
+    </init-param>
+
+
+    <supports>
+      <mime-type>text/html</mime-type>
+      <portlet-mode>view</portlet-mode>
+    </supports>
+
+    <supported-locale>en</supported-locale>
+
+    <portlet-info>
+      <title>MyFaces Portlet Bridge Demo</title>
+      <short-title>Bridge Demo</short-title>
+    </portlet-info>
+  </portlet>
+  
+</portlet-app>

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/web.xml?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/WEB-INF/web.xml Wed May 26 20:20:51 2010
@@ -0,0 +1,130 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+ The contents of this file are subject to the terms
+ of the Common Development and Distribution License
+ (the License). You may not use this file except in
+ compliance with the License.
+ 
+ You can obtain a copy of the License at
+ https://javaserverfaces.dev.java.net/CDDL.html or
+ legal/CDDLv1.0.txt. 
+ See the License for the specific language governing
+ permission and limitations under the License.
+ 
+ When distributing Covered Code, include this CDDL
+ Header Notice in each file and include the License file
+ at legal/CDDLv1.0.txt.    
+ If applicable, add the following below the CDDL Header,
+ with the fields enclosed by brackets [] replaced by
+ your own identifying information:
+ "Portions Copyrighted [year] [name of copyright owner]"
+ 
+ [Name of File] [ver.__] [Date]
+ 
+ Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+<web-app version="2.5"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+
+    <display-name>Car Store</display-name>
+    <description>Buy a car.</description>
+
+    <context-param>
+        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+        <param-value>client</param-value>
+    </context-param>
+
+    <context-param>
+        <param-name>com.sun.faces.externalizeJavaScript</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <context-param>
+        <description>
+            Set this flag to true if you want the JavaServer Faces
+            Reference Implementation to validate the XML in your
+            faces-config.xml resources against the DTD. Default
+            value is false.
+        </description>
+        <param-name>com.sun.faces.validateXml</param-name>
+        <param-value>true</param-value>
+    </context-param>
+
+    <!--
+         PENDING: set to false because demo-components.jar has
+         components that can only be created in the context of
+         a current request.
+    -->
+    <context-param>
+        <description>
+            Set this flag to true if you want the JavaServer Faces
+            Reference Implementation to verify that all of the application
+            objects you have configured (components, converters,
+            renderers, and validators) can be successfully created.
+            Default value is false.
+        </description>
+        <param-name>com.sun.faces.verifyObjects</param-name>
+        <param-value>false</param-value>
+    </context-param>
+
+    <!-- Faces Servlet -->
+    <servlet>
+        <servlet-name>Faces Servlet</servlet-name>
+        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+
+    <!-- Faces Servlet Mapping -->
+    <!-- 
+
+         This mapping identifies a jsp page as having JSF content.  If a
+         request comes to the server for foo.faces, the container will
+         send the request to the FacesServlet, which will expect a
+         corresponding foo.jsp page to exist containing the content.
+
+    -->
+    <servlet-mapping>
+        <servlet-name>Faces Servlet</servlet-name>
+        <url-pattern>*.faces</url-pattern>
+    </servlet-mapping>
+
+    <security-constraint>
+        <!-- This security constraint illustrates how JSP pages 
+             with JavaServer Faces components can be protected from
+             being accessed without going through the Faces Servlet.
+             The security constraint ensures that the Faces Servlet will
+             be used or the pages will not be processed. -->
+        <display-name>Restrict access to JSP pages</display-name>
+        <web-resource-collection>
+            <web-resource-name>
+                Restrict access to JSP pages
+            </web-resource-name>
+            <url-pattern>/bottomMatter.jsp</url-pattern>
+            <url-pattern>/carDetail.jsp</url-pattern>
+            <url-pattern>/chooseLocale.jsp</url-pattern>
+            <url-pattern>/confirmChoices.jsp</url-pattern>
+            <url-pattern>/customerInfo.jsp</url-pattern>
+            <url-pattern>/finish.jsp</url-pattern>
+            <url-pattern>/optionsPanel.jsp</url-pattern>
+            <url-pattern>/storeFront.jsp</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <description>
+                With no roles defined, no access granted
+            </description>
+        </auth-constraint>
+    </security-constraint>
+
+    <!-- Enable encryption for client side state saving -->
+    <env-entry>
+        <env-entry-name>com.sun.faces.ClientStateSavingPassword</env-entry-name>
+        <env-entry-type>java.lang.String</env-entry-type>
+        <env-entry-value>password</env-entry-value>
+    </env-entry>
+
+</web-app>

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/bottomMatter.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/bottomMatter.jsp?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/bottomMatter.jsp (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/bottomMatter.jsp Wed May 26 20:20:51 2010
@@ -0,0 +1,35 @@
+<!--
+The contents of this file are subject to the terms
+of the Common Development and Distribution License
+(the License). You may not use this file except in
+compliance with the License.
+
+You can obtain a copy of the License at
+https://javaserverfaces.dev.java.net/CDDL.html or
+legal/CDDLv1.0.txt.
+See the License for the specific language governing
+permission and limitations under the License.
+
+When distributing Covered Code, include this CDDL
+Header Notice in each file and include the License file
+at legal/CDDLv1.0.txt.
+If applicable, add the following below the CDDL Header,
+with the fields enclosed by brackets [] replaced by
+your own identifying information:
+"Portions Copyrighted [year] [name of copyright owner]"
+
+[Name of File] [ver.__] [Date]
+
+Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+<%@ page contentType="text/html"
+         isELIgnored="false" %>
+
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
+
+
+    <h:outputLink value="javadocs">
+        Documentation for this demo
+    </h:outputLink>
+

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/carDetail.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/carDetail.jsp?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/carDetail.jsp (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/carDetail.jsp Wed May 26 20:20:51 2010
@@ -0,0 +1,104 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+
+<!--
+The contents of this file are subject to the terms
+of the Common Development and Distribution License
+(the License). You may not use this file except in
+compliance with the License.
+
+You can obtain a copy of the License at
+https://javaserverfaces.dev.java.net/CDDL.html or
+legal/CDDLv1.0.txt.
+See the License for the specific language governing
+permission and limitations under the License.
+
+When distributing Covered Code, include this CDDL
+Header Notice in each file and include the License file
+at legal/CDDLv1.0.txt.
+If applicable, add the following below the CDDL Header,
+with the fields enclosed by brackets [] replaced by
+your own identifying information:
+"Portions Copyrighted [year] [name of copyright owner]"
+
+[Name of File] [ver.__] [Date]
+
+Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+<%@ page contentType="text/html"
+         isELIgnored="false" %>
+
+<html>
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1">
+    <title>CarStore</title>
+    <link rel="stylesheet" type="text/css"
+          href="<%=response.encodeURL(request.getContextPath() + "stylesheet.css")%>">
+</head>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+
+<f:loadBundle basename="carstore.bundles.Resources" var="bundle"/>
+
+<body bgcolor="white">
+
+<f:view>
+
+    <h:form>
+
+
+        <!-- non-option details -->
+
+        <h:panelGrid columns="1"
+                     summary="#{bundle.carDetails}"
+                     title="#{bundle.carDetails}">
+
+            <h:graphicImage url="/images/cardemo.jpg"/>
+
+            <h:graphicImage
+                  binding="#{carstore.currentModel.components.image}"/>
+
+            <h:outputText styleClass="subtitlebig"
+                          binding="#{carstore.currentModel.components.title}"/>
+
+            <h:outputText
+                  binding="#{carstore.currentModel.components.description}"/>
+
+            <h:panelGrid columns="2">
+
+                <h:outputText styleClass="subtitle"
+                              value="#{bundle.basePriceLabel}"/>
+
+                <h:outputText
+                      binding="#{carstore.currentModel.components.basePrice}"/>
+
+                <h:outputText styleClass="subtitle"
+                              value="#{bundle.yourPriceLabel}"/>
+
+                <h:outputText value="#{carstore.currentModel.currentPrice}"/>
+
+            </h:panelGrid>
+
+            <h:commandButton action="#{carstore.buyCurrentCar}"
+                             value="#{bundle.buy}"/>
+
+        </h:panelGrid>
+
+        <jsp:include page="optionsPanel.jsp"/>
+
+        <h:commandButton value="#{bundle.recalculate}"
+                         action="#{carstore.currentModel.updatePricing}"/>
+
+        <h:commandButton action="#{carstore.buyCurrentCar}"
+                         value="#{bundle.buy}"/>
+
+    </h:form>
+
+    <jsp:include page="bottomMatter.jsp"/>
+
+</f:view>
+</body>
+
+</html>

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/chooseLocale.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/chooseLocale.jsp?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/chooseLocale.jsp (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/chooseLocale.jsp Wed May 26 20:20:51 2010
@@ -0,0 +1,174 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<!--
+The contents of this file are subject to the terms
+of the Common Development and Distribution License
+(the License). You may not use this file except in
+compliance with the License.
+
+You can obtain a copy of the License at
+https://javaserverfaces.dev.java.net/CDDL.html or
+legal/CDDLv1.0.txt.
+See the License for the specific language governing
+permission and limitations under the License.
+
+When distributing Covered Code, include this CDDL
+Header Notice in each file and include the License file
+at legal/CDDLv1.0.txt.
+If applicable, add the following below the CDDL Header,
+with the fields enclosed by brackets [] replaced by
+your own identifying information:
+"Portions Copyrighted [year] [name of copyright owner]"
+
+[Name of File] [ver.__] [Date]
+
+Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+<%@ page contentType="text/html"
+         isELIgnored="false" %>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://java.sun.com/blueprints/ui" prefix="d" %>
+
+
+<html>
+<head>
+    <title>CarStore</title>
+
+    <link rel="stylesheet" type="text/css"
+          href="<%=response.encodeURL(request.getContextPath() + "stylesheet.css")%>"> 
+</head>
+
+
+<f:loadBundle basename="carstore.bundles.Resources" var="bundle"/>
+
+<f:view>
+<h:form>
+
+    <h:panelGrid columns="1"
+                 footerClass="form-footer"
+                 headerClass="form-header"
+                 styleClass="main-background"
+                 columnClasses="single-column"
+                 summary="#{bundle.chooseLocale}"
+                 title="#{bundle.chooseLocale}">
+
+        <h:graphicImage url="/images/cardemo.jpg"/>
+
+        <h:outputText styleClass="maintitle"
+                      value="#{bundle.chooseLocale}"/>
+
+        <h:graphicImage id="mapImage" url="/images/world.jpg"
+                        alt="#{bundle.chooseLocale}"
+                        usemap="#worldMap"/>
+
+        <d:map id="worldMap" current="NAmericas" immediate="true"
+               action="storeFront"
+               actionListener="#{carstore.chooseLocaleFromMap}">
+            <d:area id="NAmerica" value="#{NA}"
+                    onmouseover="/images/world_namer.jpg"
+                    onmouseout="/images/world.jpg"
+                    targetImage="mapImage"/>
+            <d:area id="SAmerica" value="#{SA}"
+                    onmouseover="/images/world_samer.jpg"
+                    onmouseout="/images/world.jpg"
+                    targetImage="mapImage"/>
+            <d:area id="Germany" value="#{gerA}"
+                    onmouseover="/images/world_germany.jpg"
+                    onmouseout="/images/world.jpg"
+                    targetImage="mapImage"/>
+            <d:area id="France" value="#{fraA}"
+                    onmouseover="/images/world_france.jpg"
+                    onmouseout="/images/world.jpg"
+                    targetImage="mapImage"/>
+        </d:map>
+
+    </h:panelGrid>
+
+</h:form>
+
+
+<h:form>
+
+    <!-- For non graphical browsers -->
+
+    <p>Example of <code>commandLink</code></p>
+
+    <h:panelGrid id="links" columns="4"
+                 summary="#{bundle.chooseLocale}"
+                 title="#{bundle.chooseLocale}">
+
+        <h:commandLink id="NAmerica" action="storeFront"
+                       actionListener="#{carstore.chooseLocaleFromLink}">
+
+            <h:outputText value="#{bundle.english}"/>
+
+        </h:commandLink>
+
+        <h:commandLink id="Germany" action="storeFront"
+                       actionListener="#{carstore.chooseLocaleFromLink}">
+
+            <h:outputText value="#{bundle.german}"/>
+
+        </h:commandLink>
+
+        <h:commandLink id="France" action="storeFront"
+                       actionListener="#{carstore.chooseLocaleFromLink}">
+
+            <h:outputText value="#{bundle.french}"/>
+
+        </h:commandLink>
+
+        <h:commandLink id="SAmerica" action="storeFront"
+                       actionListener="#{carstore.chooseLocaleFromLink}">
+
+            <h:outputText value="#{bundle.spanish}"/>
+
+        </h:commandLink>
+
+    </h:panelGrid>
+
+</h:form>
+
+<h:form>
+
+    <p>Example of <code>commandButton</code></p>
+
+    <h:panelGrid id="buttons" columns="4"
+                 summary="#{bundle.chooseLocale}"
+                 title="#{bundle.chooseLocale}">
+
+        <h:commandButton id="NAmerica" action="storeFront"
+                         value="#{bundle.english}"
+                         actionListener="#{carstore.chooseLocaleFromLink}">
+
+        </h:commandButton>
+
+        <h:commandButton id="Germany" action="storeFront"
+                         value="#{bundle.german}"
+                         actionListener="#{carstore.chooseLocaleFromLink}">
+
+        </h:commandButton>
+
+        <h:commandButton id="France" action="storeFront"
+                         value="#{bundle.french}"
+                         actionListener="#{carstore.chooseLocaleFromLink}">
+
+        </h:commandButton>
+
+        <h:commandButton id="SAmerica" action="storeFront"
+                         value="#{bundle.spanish}"
+                         actionListener="#{carstore.chooseLocaleFromLink}">
+
+        </h:commandButton>
+
+    </h:panelGrid>
+
+
+</h:form>
+
+<jsp:include page="bottomMatter.jsp"/>
+
+</f:view>
+
+</html>

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/confirmChoices.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/confirmChoices.jsp?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/confirmChoices.jsp (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/confirmChoices.jsp Wed May 26 20:20:51 2010
@@ -0,0 +1,150 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<!--
+The contents of this file are subject to the terms
+of the Common Development and Distribution License
+(the License). You may not use this file except in
+compliance with the License.
+
+You can obtain a copy of the License at
+https://javaserverfaces.dev.java.net/CDDL.html or
+legal/CDDLv1.0.txt.
+See the License for the specific language governing
+permission and limitations under the License.
+
+When distributing Covered Code, include this CDDL
+Header Notice in each file and include the License file
+at legal/CDDLv1.0.txt.
+If applicable, add the following below the CDDL Header,
+with the fields enclosed by brackets [] replaced by
+your own identifying information:
+"Portions Copyrighted [year] [name of copyright owner]"
+
+[Name of File] [ver.__] [Date]
+
+Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+<%@ page contentType="text/html"
+         isELIgnored="false" %>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+
+<html>
+
+<head>
+    <title>Welcome to CarStore</title>
+    <link rel="stylesheet" type="text/css"
+          href="<%=response.encodeURL(request.getContextPath() + "stylesheet.css")%>">
+</head>
+
+<body bgcolor="white">
+
+<f:loadBundle basename="carstore.bundles.Resources" var="bundle"/>
+<f:view>
+    <h:form>
+
+        <h:panelGrid id="mainPanel" columns="1" footerClass="subtitle"
+                     styleClass="medium" columnClasses="medium">
+
+            <h:graphicImage url="/images/cardemo.jpg"/>
+            <h:outputText binding="#{carstore.currentModel.components.title}"/>
+
+            <h:panelGrid columns="2" footerClass="subtitle"
+                         headerClass="subtitlebig" styleClass="medium"
+                         columnClasses="subtitle,medium">
+
+                <f:facet name="header">
+                    <h:outputText value="#{bundle.buyTitle}"/>
+                </f:facet>
+
+                <h:outputText value="#{bundle.Engine}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.engine}"/>
+
+                <h:outputText value="#{bundle.Brakes}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.brake}"/>
+
+                <h:outputText value="#{bundle.Suspension}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.suspension}"/>
+
+                <h:outputText value="#{bundle.Speakers}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.speaker}"/>
+
+                <h:outputText value="#{bundle.Audio}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.audio}"/>
+
+                <h:outputText value="#{bundle.Transmission}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.transmission}"/>
+
+                <h:outputText value="#{bundle.sunroofLabel}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.sunroof}"/>
+
+                <h:outputText value="#{bundle.cruiseLabel}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.cruisecontrol}"/>
+
+                <h:outputText value="#{bundle.keylessLabel}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.keylessentry}"/>
+
+                <h:outputText value="#{bundle.securityLabel}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.securitySystem}"/>
+
+                <h:outputText value="#{bundle.skiRackLabel}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.skiRack}"/>
+
+                <h:outputText value="#{bundle.towPkgLabel}"/>
+
+                <h:outputText
+                      value="#{carstore.currentModel.attributes.towPackage}"/>
+
+                <h:outputText value="#{bundle.gpsLabel}"/>
+
+                <h:outputText value="#{carstore.currentModel.attributes.gps}"/>
+
+                <f:facet name="footer">
+                    <h:panelGroup>
+                        <h:outputText value="#{bundle.yourPriceLabel}"/>
+                        &nbsp;
+                        <h:outputText
+                              value="#{carstore.currentModel.currentPrice}"/>
+                    </h:panelGroup>
+                </f:facet>
+
+            </h:panelGrid>
+
+            <h:panelGroup>
+                <h:commandButton value="#{bundle.buy}" action="customerInfo"
+                                 title="#{bundle.buy}"/>
+                <h:commandButton value="#{bundle.back}" action="carDetail"
+                                 title="#{bundle.back}"/>
+            </h:panelGroup>
+
+        </h:panelGrid>
+    </h:form>
+    <jsp:include page="bottomMatter.jsp"/>
+</f:view>
+
+</body>
+</html>
+

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/customerInfo.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/customerInfo.jsp?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/customerInfo.jsp (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/customerInfo.jsp Wed May 26 20:20:51 2010
@@ -0,0 +1,211 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<!--
+The contents of this file are subject to the terms
+of the Common Development and Distribution License
+(the License). You may not use this file except in
+compliance with the License.
+
+You can obtain a copy of the License at
+https://javaserverfaces.dev.java.net/CDDL.html or
+legal/CDDLv1.0.txt.
+See the License for the specific language governing
+permission and limitations under the License.
+
+When distributing Covered Code, include this CDDL
+Header Notice in each file and include the License file
+at legal/CDDLv1.0.txt.
+If applicable, add the following below the CDDL Header,
+with the fields enclosed by brackets [] replaced by
+your own identifying information:
+"Portions Copyrighted [year] [name of copyright owner]"
+
+[Name of File] [ver.__] [Date]
+
+Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+<%@ page contentType="text/html"
+         isELIgnored="false" %>
+
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+    <title>Customer Details</title>
+    <link rel="stylesheet" type="text/css"
+          href="<%=response.encodeURL(request.getContextPath() + "stylesheet.css")%>">
+
+    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+    <%@ taglib uri="https://javaserverfaces.dev.java.net/demo/carstore"
+               prefix="cs" %>
+</head>
+
+<body>
+
+<f:loadBundle basename="carstore.bundles.Resources" var="bundle"/>
+
+<f:view>
+<h:form>
+
+<h:panelGrid id="mainPanel" columns="1" footerClass="subtitle"
+             headerClass="subtitlebig" styleClass="medium"
+             columnClasses="medium">
+
+<h:graphicImage url="/images/cardemo.jpg"/>
+
+<h:outputText value="#{bundle.customerTitle}"/>
+
+<h:panelGrid id="subPanel" columns="3" footerClass="medium"
+             headerClass="subtitlebig" styleClass="medium"
+             columnClasses="medium">
+
+<h:outputText value="#{bundle.titleLabel}"/>
+<h:selectOneMenu id="title" value="#{customer.currentTitle}">
+    <f:selectItems value="#{customer.titleOptions}"/>
+</h:selectOneMenu>
+<h:outputText value=""/>
+
+<h:outputText value="#{bundle.firstLabel}"/>
+<h:inputText id="firstName" value="#{customer.firstName}" required="true">
+    <f:valueChangeListener type="carstore.FirstNameChanged"/>
+</h:inputText>
+<h:message styleClass="validationMessage" for="firstName"/>
+
+<h:outputText value="#{bundle.middleLabel}"/>
+<h:inputText id="middleInitial" size="1" maxlength="1"
+             value="#{customer.middleInitial}">
+</h:inputText>
+<h:message styleClass="validationMessage" for="middleInitial"/>
+
+<h:outputText value="#{bundle.lastLabel}"/>
+<h:inputText value="#{customer.lastName}"/>
+<h:outputText value=""/>
+
+<h:outputText value="#{bundle.mailingLabel}"/>
+<h:inputText value="#{customer.mailingAddress}"/>
+<h:outputText value=""/>
+
+<h:outputText value="#{bundle.cityLabel}"/>
+<h:inputText value="#{customer.city}"/>
+<h:outputText value=""/>
+
+<h:outputText value="#{bundle.stateLabel}"/>
+<h:selectOneMenu value="#{customer.state}">
+
+    <f:selectItem itemValue="AL" itemLabel="AL"/>
+    <f:selectItem itemValue="AK" itemLabel="AK"/>
+    <f:selectItem itemValue="AZ" itemLabel="AZ"/>
+    <f:selectItem itemValue="AR" itemLabel="AR"/>
+    <f:selectItem itemValue="CA" itemLabel="CA"/>
+    <f:selectItem itemValue="CO" itemLabel="CO"/>
+    <f:selectItem itemValue="CT" itemLabel="CT"/>
+    <f:selectItem itemValue="DE" itemLabel="DE"/>
+    <f:selectItem itemValue="FL" itemLabel="FL"/>
+    <f:selectItem itemValue="GA" itemLabel="GA"/>
+
+    <f:selectItem itemValue="HI" itemLabel="HI"/>
+    <f:selectItem itemValue="ID" itemLabel="ID"/>
+    <f:selectItem itemValue="IL" itemLabel="IL"/>
+    <f:selectItem itemValue="IN" itemLabel="IN"/>
+    <f:selectItem itemValue="IA" itemLabel="IA"/>
+    <f:selectItem itemValue="KS" itemLabel="KS"/>
+    <f:selectItem itemValue="KY" itemLabel="KY"/>
+    <f:selectItem itemValue="LA" itemLabel="LA"/>
+    <f:selectItem itemValue="ME" itemLabel="ME"/>
+    <f:selectItem itemValue="MD" itemLabel="MD"/>
+
+    <f:selectItem itemValue="MA" itemLabel="MA"/>
+    <f:selectItem itemValue="MI" itemLabel="MI"/>
+    <f:selectItem itemValue="MN" itemLabel="MN"/>
+    <f:selectItem itemValue="MO" itemLabel="MO"/>
+    <f:selectItem itemValue="MT" itemLabel="MT"/>
+    <f:selectItem itemValue="NE" itemLabel="NE"/>
+    <f:selectItem itemValue="NV" itemLabel="NV"/>
+    <f:selectItem itemValue="NH" itemLabel="NH"/>
+    <f:selectItem itemValue="NJ" itemLabel="NJ"/>
+    <f:selectItem itemValue="NM" itemLabel="NM"/>
+
+    <f:selectItem itemValue="MY" itemLabel="MY"/>
+    <f:selectItem itemValue="NC" itemLabel="NC"/>
+    <f:selectItem itemValue="ND" itemLabel="ND"/>
+    <f:selectItem itemValue="OH" itemLabel="OH"/>
+    <f:selectItem itemValue="OK" itemLabel="OK"/>
+    <f:selectItem itemValue="OR" itemLabel="OR"/>
+    <f:selectItem itemValue="PA" itemLabel="PA"/>
+    <f:selectItem itemValue="RI" itemLabel="RI"/>
+    <f:selectItem itemValue="SC" itemLabel="SC"/>
+    <f:selectItem itemValue="SD" itemLabel="SD"/>
+
+    <f:selectItem itemValue="TN" itemLabel="TN"/>
+    <f:selectItem itemValue="TX" itemLabel="TX"/>
+    <f:selectItem itemValue="UT" itemLabel="UT"/>
+    <f:selectItem itemValue="VT" itemLabel="VT"/>
+    <f:selectItem itemValue="VA" itemLabel="VA"/>
+    <f:selectItem itemValue="WA" itemLabel="WA"/>
+    <f:selectItem itemValue="WV" itemLabel="WV"/>
+    <f:selectItem itemValue="WI" itemLabel="WI"/>
+    <f:selectItem itemValue="WY" itemLabel="WY"/>
+</h:selectOneMenu>
+<h:outputText value=""/>
+
+<h:outputText value="#{bundle.zipLabel}"/>
+<h:inputText id="zip"
+             value="#{customer.zip}"
+             size="10" required="true">
+    <cs:format_validator formatPatterns="99999|99999-9999|### ###"/>
+</h:inputText>
+<h:message styleClass="validationMessage" for="zip"/>
+
+<h:outputText value="#{bundle.ccNumberLabel}"/>
+<h:inputText id="ccno" size="16"
+             converter="creditCardConverter" required="true">
+    <cs:format_validator
+          formatPatterns="9999999999999999|9999 9999 9999 9999|9999-9999-9999-9999"/>
+</h:inputText>
+<h:message styleClass="validationMessage" for="ccno"/>
+
+<h:outputText value="#{bundle.monthLabel}"/>
+<h:panelGrid id="monthYearPanel" columns="2" footerClass="medium"
+             headerClass="medium" styleClass="medium" columnClasses="medium">
+    <h:selectOneMenu value="#{customer.month}">
+        <f:selectItem itemValue="01" itemLabel="01"/>
+        <f:selectItem itemValue="02" itemLabel="02"/>
+        <f:selectItem itemValue="03" itemLabel="03"/>
+        <f:selectItem itemValue="04" itemLabel="04"/>
+        <f:selectItem itemValue="05" itemLabel="05"/>
+        <f:selectItem itemValue="06" itemLabel="06"/>
+        <f:selectItem itemValue="07" itemLabel="07"/>
+        <f:selectItem itemValue="08" itemLabel="08"/>
+        <f:selectItem itemValue="09" itemLabel="09"/>
+        <f:selectItem itemValue="10" itemLabel="10"/>
+        <f:selectItem itemValue="11" itemLabel="11"/>
+        <f:selectItem itemValue="12" itemLabel="12"/>
+    </h:selectOneMenu>
+
+    <h:selectOneMenu value="#{customer.year}">
+        <f:selectItem itemValue="2002" itemLabel="2002"/>
+        <f:selectItem itemValue="2003" itemLabel="2003"/>
+        <f:selectItem itemValue="2004" itemLabel="2004"/>
+        <f:selectItem itemValue="2005" itemLabel="2005"/>
+        <f:selectItem itemValue="2006" itemLabel="2006"/>
+        <f:selectItem itemValue="2007" itemLabel="2007"/>
+        <f:selectItem itemValue="2008" itemLabel="2008"/>
+    </h:selectOneMenu>
+</h:panelGrid>
+<h:outputText value=""/>
+
+</h:panelGrid>
+
+<h:commandButton value="#{bundle.finishButton}" action="finish"/>
+
+<h:graphicImage id="duke" url="/images/duke.gif"/>
+
+<h:outputText value="#{bundle.buyLabel}"/>
+
+</h:panelGrid>
+
+</h:form>
+</f:view>
+</body>
+</html>
+

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/finish.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/finish.jsp?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/finish.jsp (added)
+++ myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/finish.jsp Wed May 26 20:20:51 2010
@@ -0,0 +1,61 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<!--
+The contents of this file are subject to the terms
+of the Common Development and Distribution License
+(the License). You may not use this file except in
+compliance with the License.
+
+You can obtain a copy of the License at
+https://javaserverfaces.dev.java.net/CDDL.html or
+legal/CDDLv1.0.txt.
+See the License for the specific language governing
+permission and limitations under the License.
+
+When distributing Covered Code, include this CDDL
+Header Notice in each file and include the License file
+at legal/CDDLv1.0.txt.
+If applicable, add the following below the CDDL Header,
+with the fields enclosed by brackets [] replaced by
+your own identifying information:
+"Portions Copyrighted [year] [name of copyright owner]"
+
+[Name of File] [ver.__] [Date]
+
+Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+<%@ page contentType="text/html"
+         isELIgnored="false" %>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+
+<html>
+
+<head>
+    <title>Welcome to CarStore</title>
+    <link rel="stylesheet" type="text/css"
+          href="<%=response.encodeURL(request.getContextPath() + "stylesheet.css")%>">
+</head>
+
+<body bgcolor="white">
+<f:loadBundle basename="carstore.bundles.Resources" var="bundle"/>
+<f:view>
+    <h:form>
+        <h:graphicImage url="/images/cardemo.jpg"/>
+
+        <h:panelGrid id="thanksPanel" columns="1" footerClass="subtitle"
+                     headerClass="subtitlebig" styleClass="medium"
+                     columnClasses="subtitle,medium">
+            <f:facet name="header">
+                <h:outputFormat title="thanks" value="#{bundle.thanksLabel}">
+                    <f:param value="#{sessionScope.firstName}"/>
+                </h:outputFormat>
+            </f:facet>
+        </h:panelGrid>
+
+    </h:form>
+    <jsp:include page="bottomMatter.jsp"/>
+</f:view>
+</body>
+</html>

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Jalopy.jpg
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Jalopy.jpg?rev=948569&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Jalopy.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Luxury.jpg
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Luxury.jpg?rev=948569&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Luxury.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Roadster.jpg
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Roadster.jpg?rev=948569&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_Roadster.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_SUV.jpg
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_SUV.jpg?rev=948569&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/150x126_SUV.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Jalopy.jpg
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Jalopy.jpg?rev=948569&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Jalopy.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Luxury.jpg
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Luxury.jpg?rev=948569&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Luxury.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Roadster.jpg
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Roadster.jpg?rev=948569&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk/examples/carstore/src/main/webapp/images/200x168_Roadster.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream