blob: 6a46ec293bc1214abe4c8b148e8630c88400c5a0 [file] [log] [blame]
<?xml version="1.0"?>
<!--
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistribution in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials
provided with the distribution.
Neither the name of Sun Microsystems, Inc. or the names of
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
This software is provided "AS IS," without a warranty of any
kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE OR
ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
You acknowledge that this software is not designed, licensed or
intended for use in the design, construction, operation or
maintenance of any nuclear facility.
-->
<html xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:cs="urn:carstoretaglibrary_1.1">
<head>
<title>Customer Details</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
</head>
<f:loadBundle basename="org.apache.cocoon.faces.samples.carstore.bundles.Resources" var="bundle"/>
<body>
<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="org.apache.cocoon.faces.samples.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>