You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/06/19 18:47:38 UTC
svn commit: r548795 [18/19] - in /myfaces/trinidad/trunk/trinidad: ./
trinidad-demo/ trinidad-examples/ trinidad-examples/trinidad-demo/
trinidad-examples/trinidad-demo/src/
trinidad-examples/trinidad-demo/src/conf/
trinidad-examples/trinidad-demo/src/...
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/skins/purple/purpleSkin.css
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/skins/purple/purpleSkin.css?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/skins/purple/purpleSkin.css (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/skins/purple/purpleSkin.css Tue Jun 19 09:46:57 2007
@@ -0,0 +1,646 @@
+/*
+ * 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.
+ */
+
+
+/** Change the colors to purple **/
+
+/** All these styles/icons/properties are overrides of the simple skin */
+
+/** :alias means that this class or icon is not used directly. It is included
+in other component's style selectors or other component's icons. It is
+meant to be a fast way to change styles. The alternative is to style each
+component. **/
+.AFInstructionText
+{
+ font-size: medium;
+}
+
+.AFDarkForeground:alias {color:#035D5C;}
+.AFDarkBackground:alias {background-color:Purple;}
+/** In the base styles, AFDarkBorder uses the background-color of
+ AFDarkBackground for its border color, so no need to set it directly. */
+
+/* make up a color for hovering over menuTabs and menuBars */
+/* put the extension :alias so it won't get written out to the final css file,
+ cuz I know it won't be used directly. Instead it will be included in
+ other style definions using the -tr-rule-ref property. */
+.MyLinkHoverColor:alias { color:Lime; }
+
+
+/* a teal color */
+.AFLinkForeground:alias {color:#008080}
+
+/** BUTTON STYLES. Notice the right to left icons are specified with the
+:rtl pseudo-class. If :rtl icons are not specified, we default to non-:rtl icons. **/
+
+/** use this to color the button background and text **/
+.AFButtonServerText:alias {background-color:#CECFCE; color:#25009E}
+/* antialias the text for our disabled buttons */
+.AFButtonServerTextDisabled:alias {background-color:#F0F0F0; color:gray;-tr-text-antialias:true}
+
+
+.AFButtonStartIcon:alias {content:url(/skins/purple/images/btns.gif); width:7px; height:18px}
+
+.AFButtonStartIcon:alias:rtl {content:url(/skins/purple/images/btne.gif); width:7px; height:18px}
+
+.AFButtonEndIcon:alias {content:url(/skins/purple/images/btne.gif); width:7px; height:18px}
+.AFButtonEndIcon:alias:rtl {content:url(/skins/purple/images/btns.gif); width:7px; height:18px}
+
+.AFButtonTopBackgroundIcon:alias {content:url(/skins/purple/images/btntb.gif); width:1px; height:2px}
+.AFButtonTopBackgroundIcon:alias:rtl {content:url(/skins/purple/images/btntb.gif); width:1px; height:2px}
+
+.AFButtonBottomBackgroundIcon:alias {content:url(/skins/purple/images/btnbb.gif); width:1px; height:2px}
+.AFButtonBottomBackgroundIcon:alias:rtl {content:url(/skins/purple/images/btnbb.gif); width:1px; height:2px}
+
+.AFButtonDisabledStartIcon:alias {content:url(/skins/purple/images/btnds.gif); width:7px; height:18px}
+.AFButtonDisabledStartIcon:alias:rtl {content:url(/skins/purple/images/btnde.gif); width:7px; height:18px}
+.AFButtonDisabledEndIcon:alias {content:url(/skins/purple/images/btnde.gif); width:7px; height:18px}
+.AFButtonDisabledEndIcon:alias:rtl {content:url(/skins/purple/images/btnds.gif); width:7px; height:18px}
+
+.AFButtonDisabledTopBackgroundIcon:alias {content:url(/skins/purple/images/btndtb.gif); width:1px; height:2px}
+
+.AFButtonDisabledBottomBackgroundIcon:alias {content:url(/skins/purple/images/btndbb.gif); width:1px; height:2px}
+
+/** generic background for light panelBox's or shuttles **/
+.AFBoxBackground:alias {background-color:#E3E1E1;}
+
+/** when the panelBox is dark, this is the background color */
+.AFPanelBoxDarkBackground:alias {background-color:green}
+
+/** panelTabbed **/
+/** ---------- **/
+/** .AFPanelTabbed:alias is included in af|panelTabbed::orientation-top and
+ af|panelTabbed::orientation-bottom which are the styles on the table. **/
+.AFPanelTabbed:alias {
+ background-color:#BB95BB;
+ text-align:center;
+}
+/** make the top tab bar have a solid border underneath **/
+af|panelTabbed::orientation-top
+{
+ border-bottom: 3px solid black;
+}
+/** make the bottom tab bar have a solid border on top **/
+af|panelTabbed::orientation-bottom
+{
+ border-top: 3px solid black;
+}
+
+af|panelTabbed::separator {
+ margin:4px;
+ border-top: #BB95BB; solid 4pt ;
+ border-bottom: #BB95BB; solid 4pt ;
+ BACKGROUND-COLOR: white;
+ PADDING-LEFT: 1px;}
+
+af|panelTabbed::tab {
+ font-weight:bold;
+ font-family:Tahoma;
+ padding:2px 8px;
+}
+
+af|panelTabbed::tab-selected {
+ font-family:Tahoma;
+ padding:2px 8px;
+ text-decoration: none;
+ background-color:white
+}
+
+af|panelTabbed::tab-link {
+ color:white;
+ text-decoration: none;
+}
+
+af|panelTabbed::tab-link:hover
+{
+ -tr-rule-ref:selector(".MyLinkHoverColor:alias");
+}
+
+/* put some space in the
+first cell */
+af|panelTabbed::cell-start {
+ background-color:transparent;
+ padding-left:10px
+}
+/** put some space between the tabs and the body */
+af|panelTabbed::body
+{
+ padding: 10px;
+}
+
+/** panelPage's footer area **/
+/** ----------------------- **/
+.AFFooterMessageText:alias
+{
+ padding:2px 6px;
+}
+
+/** menuTabs **/
+/** -------- **/
+/** You can create borders, and have image-free tabs, or you can use the
+ icon keys (e.g., af|menuTabs::selected-start-icon)to create tabs with
+ rounded borders. The icons are used below,
+ but you can comment them out if you want. */
+/** this isn't needed when we are using icons for the tabs(but the padding helps!)
+.AFTabBarItem:alias
+{
+ border-style:solid;
+ border-color:#5D025E;
+ border-width: 3px 2px 0px 2px;
+ padding:2px 6px;
+ background-color: Purple;
+}
+**/
+.AFTabBarItem:alias
+{
+ line-height:100%;
+ padding:2px 6px;
+}
+/* Remove the text decoration from all tabBar links */
+.AFTabBarLink:alias
+{
+ text-decoration:none;
+}
+/* Make the selected tab bold */
+af|menuTabs::selected-link
+{
+ font-weight: bold;
+ font-size: 14pt;
+ color: white;
+}
+af|menuTabs::enabled-link
+{
+ color: white;
+}
+
+af|menuTabs::enabled-link:hover
+{
+ -tr-rule-ref:selector(".MyLinkHoverColor:alias");
+}
+
+
+/** menuTabs that use icons are define like the following */
+af|menuTabs::enabled-start-icon
+{
+ content:url(/skins/purple/images/menuTabsEnabledStart.gif); width:8px; height: 26px;
+}
+af|menuTabs::enabled-start-icon:rtl
+{
+ content:url(/skins/purple/images/menuTabsEnabledEnd.gif); width:8px; height: 26px;
+}
+af|menuTabs::enabled-end-icon
+{
+ content:url(/skins/purple/images/menuTabsEnabledEnd.gif); width:8px; height: 26px;
+}
+af|menuTabs::enabled-end-icon:rtl
+{
+ content:url(/skins/purple/images/menuTabsEnabledStart.gif); width:8px; height: 26px;
+}
+af|menuTabs::enabled-join-icon
+{
+ content:url(/skins/purple/images/menuTabsEnabledJoin.gif); width:15px; height: 26px;
+}
+af|menuTabs::enabled-background-icon
+{
+ content:url(/skins/purple/images/menuTabsEnabledBackgroundGrdt.gif); width:1px; height: 26px;
+}
+
+af|menuTabs::selected-enabled-join-icon
+{
+ content:url(/skins/purple/images/menuTabsSelectedEnabledJoin.gif); width:15px; height: 26px;
+}
+af|menuTabs::selected-enabled-join-icon:rtl
+{
+ content:url(/skins/purple/images/menuTabsEnabledSelectedJoin.gif); width:15px; height: 26px;
+}
+af|menuTabs::enabled-selected-join-icon
+{
+ content:url(/skins/purple/images/menuTabsEnabledSelectedJoin.gif); width:15px; height: 26px;
+}
+af|menuTabs::enabled-selected-join-icon:rtl
+{
+ content:url(/skins/purple/images/menuTabsSelectedEnabledJoin.gif); width:15px; height: 26px;
+}
+
+
+af|menuTabs::selected-start-icon
+{
+ content:url(/skins/purple/images/menuTabsSelectedStart.gif); width:8px; height: 26px;
+}
+af|menuTabs::selected-start-icon:rtl
+{
+ content:url(/skins/purple/images/menuTabsSelectedEnd.gif); width:8px; height: 26px;
+}
+af|menuTabs::selected-end-icon
+{
+ content:url(/skins/purple/images/menuTabsSelectedEnd.gif); width:8px; height: 26px;
+}
+af|menuTabs::selected-end-icon:rtl
+{
+ content:url(/skins/purple/images/menuTabsSelectedStart.gif); width:8px; height: 26px;
+}
+
+af|menuTabs::selected-join-icon
+{
+ content:url(/skins/purple/images/menuTabsSelectedJoin.gif); width:15px; height: 26px;
+}
+af|menuTabs::selected-join-icon
+{
+ content:url(/skins/purple/images/menuTabSelectedJoin.gif); width:15px; height: 26px;
+}
+af|menuTabs::selected-background-icon
+{
+ content:url(/skins/purple/images/menuTabsSelectedBackground.gif); width:1px; height: 26px;
+}
+/** menuBar **/
+/** ------- **/
+af|menuBar
+{
+ border-width: 3px 2px 0px 2px;
+ border-style:solid;
+ -tr-rule-ref:selector(".AFDarkBorder:alias");
+ padding: 12px;
+}
+
+af|menuBar::selected-link
+{
+ font-weight:bold;
+}
+af|menuBar::enabled-link:hover
+{
+ -tr-rule-ref:selector(".MyLinkHoverColor:alias");
+}
+af|menuBar::separator
+{
+ padding: 0px 2px 0px 2px;
+}
+
+/** menuButtons **/
+/** ----------- **/
+.AFMenuButtons:alias
+{
+ padding:0px 2px 2px 4px;
+}
+
+/** panelBox **/
+/* ------------ */
+
+af|panelBox::medium-header-start-icon
+{
+ content:url(/skins/purple/images/panelBoxStart.gif);
+ width:8px;
+ height:26px
+}
+af|panelBox::medium-header-end-icon
+{
+ content:url(/skins/purple/images/panelBoxEnd.gif);
+ width:8px;
+ height:26px
+}
+
+.AFPanelBoxBody:alias
+{
+ background-color: #E7E4EA;
+ border-color: purple;
+ border-style:solid;
+ border-width:3px;
+ margin:2px;
+}
+
+af|panelBox::header
+{
+ padding: 3px 3px;
+ -tr-rule-ref: selector(".AFMediumFont:alias");
+ font-weight: bold;
+}
+/* for panelBox without a header and shuttles */
+.AFBoxContentBody:alias
+{
+ background-color: white;
+ border-color: #E7E4EA;
+ border-style:solid;
+ border-width:3px;
+ margin:2px;
+ padding:5px;
+}
+
+/* shuttle */
+/** Icons unique to the selectOrderShuttle for re-ordering user selections **/
+/* Purposely use different urls to test different configurations */
+/* this is relative to this skin file */
+af|selectOrderShuttle::reorder-top-icon {
+ content: url(images/shuttleOrderTop.png);
+ width: 16px;
+ height: 16px;
+}
+/* this is relative to the application context */
+af|selectOrderShuttle::reorder-up-icon {
+ content: url(/skins/purple/images/shuttleOrderUp.png);
+ width: 16px;
+ height: 16px;
+}
+
+af|selectOrderShuttle::reorder-down-icon {
+ content: url(images/shuttleOrderDown.png);
+ width: 16px;
+ height: 16px;
+}
+
+af|selectOrderShuttle::reorder-bottom-icon {
+ content: url(../purple/images/shuttleOrderBottom.png);
+ width: 16px;
+ height: 16px;
+}
+
+/** panelHeader **/
+/** ----------- **/
+af|panelHeader
+{
+ -tr-rule-ref:selector(".AFDarkAccentBorder:alias");
+ border-width:0px 0px 1px 0px;
+ border-style:solid;
+ vertical-align:bottom;
+ margin-bottom:3px;
+ padding:0px 3px;
+ font-weight:bolder;
+ font-size:larger;
+}
+
+
+/** train **/
+/** ------------ **/
+/** We override the AFTrainStation alias style to add some
+ padding, and also to display the station indicator
+ using a top border **/
+.AFTrainStation:alias
+{
+ border-style:solid;
+ border-width:3px 0px 0px 0px;
+ padding:3pt;
+}
+af|train::visited af|train::link
+{
+ color: Fuchsia;
+}
+
+/** selectBooleanCheckbox **/
+/** --------------------- **/
+af|selectBooleanCheckbox::read-only-unchecked-icon
+{
+ content:url(/skins/purple/images/checkrn.gif);
+ border-width: 3px;
+ border-style: dashed;
+ border-color: purple;
+}
+af|selectBooleanCheckbox::read-only-checked-icon
+{
+ /*content:url(/skins/purple/images/checkrc.gif);*/
+ content: "X";
+ border-width: 3px;
+ border-style: dashed;
+ border-color: aqua;
+}
+
+af|selectBooleanCheckbox::disabled-only-unchecked-icon
+{
+ content:url(/skins/purple/images/checkdn.gif);
+}
+af|selectBooleanCheckbox::disabled-only-checked-icon
+{
+ content:url(/skins/purple/images/checkdc.gif);
+}
+
+/** selectInputDate launch icon **/
+af|inputDate::launch-icon
+{
+ content:url(/skins/purple/images/dateButtonPurple.gif);
+ width:19px;
+ height:24px
+}
+af|inputDate::launch-icon:rtl
+{
+ content:url(/skins/purple/images/dateButtonPurpleRTL.gif);
+ width:19px;
+ height:24px
+}
+
+/* use special properties to change the ui **/
+/* don't show the last item in breadCrumbs (the default is to show it)*/
+
+af|breadCrumbs {-tr-show-last-item:false}
+
+af|breadCrumbs::step {color: purple;}
+af|breadCrumbs::step:hover {color: green}
+af|breadCrumbs::selected-step:hover {color: green;}
+
+af|treeTable::path-step {color: purple; text-decoration:none}
+af|treeTable::path-step:hover {color: green}
+af|treeTable::path-selected-step:hover {color: green;}
+
+
+/** if, for some reason, you don't want an icon to show up, you
+ can hide it like this (this feature will be more useful when skins can
+ extends other skins besides simple)
+
+af|breadCrumbs::separator-icon {content:inhibit}
+*/
+
+.AFHeaderErrorIcon:alias
+{
+ content:url(/skins/purple/images/errorl.gif); width:18px; height: 18px;
+
+}
+
+af|messages
+{
+ -tr-rule-ref: selector("AFVeryDarkAccentBorder:alias");
+ border-style:solid;
+ border-width:1px;
+ padding:5px;
+ margin:5px 0px 0px;
+}
+
+af|messages::header
+{
+ -tr-rule-ref: selector("AFDarkAccentBorder:alias");
+ border-width:0px 0px 1px 0px;
+ border-style:solid;
+ vertical-align:bottom;
+ margin-bottom:3px;
+ padding:0px 3px;
+}
+
+.AFHeaderText:alias
+{
+ -tr-rule-ref: selector("AFDarkForeground:alias");
+ font-weight:bold;
+ padding: 0px;
+ margin: 0px;
+}
+
+/* custom styles that I made up and set on the styleClass attribute of various
+Trinidad components */
+.adfFacesDemoSearchPanelGroup
+{
+ width:100%;
+ background-color:#B1A9BC;
+ padding:8px 0px 8px 12px;
+ border-color:purple;border-style:solid; border-width:2px;
+}
+
+
+.welcomePanel
+{
+ padding-left:0px;
+ width:100%;
+ background-color:#E7E4EA;
+ margin-bottom:10px;
+ padding-bottom:10px;
+ padding-top:10px;
+ text-align:center;
+
+}
+.panelBoxHeader
+{
+ font-family: verdana,arial,helvetica,sans-serif;
+ color:#035D5C;
+ font-weight:bold;
+ font-size:small;
+}
+
+af|chooseDate::prev-icon
+{
+ content:url(/skins/purple/images/prev.png); width:11px; height: 15px;
+}
+
+af|chooseDate::next-icon
+{
+ content:url(/skins/purple/images/next.png); width:11px; height: 15px;
+}
+
+af|chooseDate::prev-disabled-icon
+{
+ content:url(/skins/purple/images/prevDisabled.png); width:11px; height: 15px;
+}
+
+af|chooseDate::next-disabled-icon
+{
+ content:url(/skins/purple/images/nextDisabled.png); width:11px; height: 15px;
+}
+
+af|objectSeparator
+{
+ -tr-rule-ref: selector(".AFDarkBorder:alias");
+ border-style: dashed none none;
+ border-width: 1px 0px 0px;
+ height: 1px;
+ padding: 0px;
+}
+
+/* test :rtl for styles */
+.AFEndPadding:alias:rtl
+{
+ padding: 0px 0px 0px 20px;
+}
+af|inputText::content:rtl
+{
+ color: red;
+}
+af|inputText::label:rtl
+{
+ font-weight:bold;
+}
+
+af|inputNumberSpinbox::increment-cell, af|inputNumberSpinbox::decrement-cell
+{
+ background-color:pink;
+}
+
+/* test @agent and @platform styles */
+/* right now @agent/@platform work with style selectors, but they have no
+ effect on icon selectors. */
+/* possible values for @agent are:
+netscape, ie, mozilla, gecko, webkit, ice */
+/* possible values for @platform are:
+windows, macos, linux, solaris, ppc */
+
+@agent ie
+{
+ af|panelBox::header
+ {
+ text-overflow: ellipsis;
+ }
+
+ .DropShadowStyle
+ {
+ width: 357;
+ height: 50;
+ font-size: 36pt;
+ font-family: Arial Black;
+ color: blue;
+ Filter: DropShadow(Color=#FF0000, OffX=2, OffY=2, Positive=1);
+
+ }
+}
+
+
+@platform windows, linux, solaris
+{
+ /** for ie and gecko on windows, linux and solaris, make the color pink **/
+ @agent ie, gecko
+ {
+ af|inputText::content {background-color:pink}
+ }
+}
+
+/* Test -tr-inhibit: all and -tr-inhibit a specific css property */
+
+/* this should end up with .portlet-form-input-field {padding: 8px} */
+.portlet-form-input-field {
+/* This should first inhibit all inherited styles. Then everything else
+ should be included.*/
+ -tr-inhibit: all;
+ padding: 8px;
+ /* This should inhibit the background-color that is inherited and/or included,
+ like in .AFLightAccentBackground:alias
+ The order of this does not matter. */
+ -tr-inhibit: background-color;
+ -tr-rule-ref: selector(".AFLightAccentBackground:alias");
+}
+
+/* This test inhibits the text-decoration property that is defined in the base skin */
+.PortletHeaderLink {
+ -tr-inhibit: text-decoration;
+ color: pink;
+}
+
+/* this tests what happens when we add :rtl to the end of a style class. */
+
+/* When the browser's language is set to a left-to-right language like English,
+then we will use this style. We generate .testRightToLeft {color: blue;} when the browser's language
+is a left-to-right language. */
+.testRightToLeft {
+ color: blue;
+}
+/* If the language is right-to-left, then add this rtl specific css definition to the one
+above. We generate .testRightToLeft {color: blue; font-size: 24em} when the browser's language
+is a right-to-left language. */
+.testRightToLeft:rtl {
+ font-size: 24em;
+}
\ No newline at end of file
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyConfirm.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyConfirm.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyConfirm.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyConfirm.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Survey">
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:panelHeader text="Please review your answers and make any last changes:">
+
+ <tr:panelFormLayout>
+<!-- question 1 -->
+ <tr:selectOneRadio label="#{survey.q0.prompt}"
+ required="true"
+ value="#{survey.a0}">
+ <tr:selectItem label="#{survey.q0.answerString}" value="0"/>
+ <tr:selectItem label="#{survey.q0.answerString}" value="1"/>
+ <tr:selectItem label="#{survey.q0.answerString}" value="2"/>
+ <tr:selectItem label="#{survey.q0.answerString}" value="3"/>
+ </tr:selectOneRadio >
+
+
+<!-- question 2 -->
+ <tr:inputText label="#{survey.q1.prompt}"
+ required="true"
+ value="#{survey.a1}"/>
+
+
+<!-- question 3 -->
+ <tr:selectOneRadio label="#{survey.q2.prompt}"
+ required="true"
+ value="#{survey.a2}">
+ <tr:selectItem label="#{survey.q2.answerString}" value="0"/>
+ <tr:selectItem label="#{survey.q2.answerString}" value="1"/>
+ <tr:selectItem label="#{survey.q2.answerString}" value="2"/>
+ <tr:selectItem label="#{survey.q2.answerString}" value="3"/>
+ </tr:selectOneRadio >
+
+
+<!-- question 4 -->
+ <tr:panelLabelAndMessage label="#{survey.q3.prompt}"
+ labelStyle="vertical-align: top;">
+ <tr:selectBooleanCheckbox text="#{survey.q3.answerString}" value="#{survey.a30}" readOnly="false"/>
+ <tr:selectBooleanCheckbox text="#{survey.q3.answerString}" value="#{survey.a31}" readOnly="false"/>
+ <tr:selectBooleanCheckbox text="#{survey.q3.answerString}" value="#{survey.a32}" readOnly="false"/>
+ <tr:selectBooleanCheckbox text="#{survey.q3.answerString}" value="#{survey.a33}" readOnly="false"/>
+ </tr:panelLabelAndMessage>
+
+
+<!-- question 5 -->
+ <tr:selectOneRadio label="#{survey.q4.prompt}"
+ required="true"
+ value="#{survey.a4}">
+ <tr:selectItem label="#{survey.q4.answerString}" value="0"/>
+ <tr:selectItem label="#{survey.q4.answerString}" value="1"/>
+ <tr:selectItem label="#{survey.q4.answerString}" value="2"/>
+ <tr:selectItem label="#{survey.q4.answerString}" value="3"/>
+ </tr:selectOneRadio >
+
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Index"
+ immediate="true"
+ action="home"/>
+ </tr:navigationPane>
+ </f:facet>
+
+ <tr:panelButtonBar>
+ <tr:commandButton action="#{survey.check}" text="check answers" rendered="true" />
+ </tr:panelButtonBar>
+ </tr:panelPage>
+
+
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage1.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage1.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage1.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage1.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Survey Demo">
+ <tr:form>
+
+ <tr:panelPage>
+
+ <tr:panelHeader text="Question 5 of 5">
+ <tr:panelFormLayout>
+
+ <tr:selectOneRadio label="#{survey.q0.prompt}"
+ required="true"
+ value="#{survey.a0}" >
+ <tr:forEach var="item" varStatus="iter"
+ items="#{survey.q0.answerStrings}">
+ <!-- The strange EL syntax for "value" forces it to be a string -->
+ <tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
+ </tr:forEach>
+ </tr:selectOneRadio >
+
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Index"
+ immediate="true"
+ action="home"/>
+ </tr:navigationPane>
+ </f:facet>
+ <f:facet name="location">
+ <tr:train value="#{surveyMenuModel}" var="surveyNode">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{surveyNode.label}"
+ action="#{surveyNode.getOutcome}"
+ disabled="true"/>
+ </f:facet>
+ </tr:train>
+ </f:facet>
+
+ <tr:singleStepButtonBar selectedStep="1" maxStep="5"
+ nextAction="#{survey.next}"/>
+ </tr:panelPage>
+
+ </tr:form>
+
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage2.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage2.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage2.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage2.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Survey Demo">
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:panelHeader text="Question 2 of 5">
+ <tr:panelFormLayout>
+ <tr:inputText label="#{survey.q1.prompt}"
+ required="true"
+ value="#{survey.a1}"/>
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Index"
+ immediate="true"
+ action="home"/>
+ </tr:navigationPane>
+ </f:facet>
+
+ <f:facet name="location">
+ <tr:train value="#{surveyMenuModel}" var="surveyNode">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{surveyNode.label}"
+ action="#{surveyNode.getOutcome}"
+ disabled="true"/>
+ </f:facet>
+ </tr:train>
+ </f:facet>
+
+ <tr:singleStepButtonBar selectedStep="2" maxStep="5"
+ nextAction="#{survey.next}"
+ previousAction="#{survey.back}"/>
+ </tr:panelPage>
+
+ </tr:form>
+
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Survey Demo">
+ <tr:form>
+
+ <tr:panelPage>
+
+ <tr:panelHeader text="Question 3 of 5">
+ <tr:panelFormLayout>
+ <tr:selectOneRadio label="#{survey.q2.prompt}"
+ required="true"
+ value="#{survey.a2}">
+ <tr:forEach var="item" varStatus="iter"
+ items="#{survey.q2.answerStrings}">
+ <!-- The strange EL syntax for "value" forces it to be a string -->
+ <tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
+ </tr:forEach>
+ </tr:selectOneRadio >
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Index"
+ immediate="true"
+ action="home"/>
+ </tr:navigationPane>
+ </f:facet>
+ <f:facet name="location">
+ <tr:train value="#{surveyMenuModel}" var="surveyNode">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{surveyNode.label}"
+ action="#{surveyNode.getOutcome}"
+ disabled="true"/>
+ </f:facet>
+ </tr:train>
+ </f:facet>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="3" maxStep="5"
+ nextAction="#{survey.next}" previousAction="#{survey.back}"/>
+ </tr:panelButtonBar>
+ </tr:panelPage>
+
+ </tr:form>
+
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage4.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage4.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage4.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage4.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Survey Demo">
+ <tr:form>
+
+ <tr:panelPage>
+
+ <tr:panelHeader text="Question 4 of 5">
+ <tr:panelLabelAndMessage label="#{survey.q3.prompt}"
+ labelStyle="vertical-align: top;">
+ <tr:selectBooleanCheckbox text="#{survey.q3.text1}" value="#{survey.a30}" />
+ <tr:selectBooleanCheckbox text="#{survey.q3.text2}" value="#{survey.a31}" />
+ <tr:selectBooleanCheckbox text="#{survey.q3.text3}" value="#{survey.a32}" />
+ <tr:selectBooleanCheckbox text="#{survey.q3.text4}" value="#{survey.a33}" />
+ </tr:panelLabelAndMessage>
+ </tr:panelHeader>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Index"
+ immediate="true"
+ action="home"/>
+ </tr:navigationPane>
+ </f:facet>
+ <f:facet name="location">
+ <tr:train value="#{surveyMenuModel}" var="surveyNode" >
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{surveyNode.label}"
+ action="#{surveyNode.getOutcome}"
+ disabled="true"/>
+ </f:facet>
+ </tr:train>
+ </f:facet>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="4" maxStep="5"
+ nextAction="#{survey.next}" previousAction="#{survey.back}"/>
+ </tr:panelButtonBar>
+ </tr:panelPage>
+
+ </tr:form>
+
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Survey Demo">
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:panelHeader text="Question 5 of 5">
+ <tr:panelFormLayout>
+ <tr:selectOneRadio label="#{survey.q4.prompt}"
+ required="true"
+ value="#{survey.a4}">
+ <tr:forEach var="item" varStatus="iter"
+ items="#{survey.q4.answerStrings}">
+ <!-- The strange EL syntax for "value" forces it to be a string -->
+ <tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
+ </tr:forEach>
+ </tr:selectOneRadio >
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Index"
+ immediate="true"
+ action="home"/>
+ </tr:navigationPane>
+ </f:facet>
+ <f:facet name="location">
+ <tr:train value="#{surveyMenuModel}" var="surveyNode">
+ <f:facet name="nodeStamp">
+ <tr:commandNavigationItem text="#{surveyNode.label}"
+ action="#{surveyNode.getOutcome}"
+ disabled="true"/>
+ </f:facet>
+ </tr:train>
+ </f:facet>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="5" maxStep="5"
+ nextAction="#{survey.next}" previousAction="#{survey.back}"/>
+ <tr:commandButton action="#{survey.finish}" text="finish"
+ rendered="#{survey.done}"/>
+ </tr:panelButtonBar>
+ </tr:panelPage>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad"
+ xmlns:survey="http://myfaces.apache.org/trinidad/demo" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Survey">
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:panelHeader text="Please review your responses:">
+
+ <tr:panelFormLayout>
+<!-- question 1 -->
+ <tr:selectOneRadio label="#{survey.q0.prompt}"
+ required="true"
+ value="#{survey.a0}">
+ <tr:forEach var="item" varStatus="iter"
+ items="#{survey.q0.answerStrings}">
+ <!-- The strange EL syntax for "value" forces it to be a string -->
+ <tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
+ </tr:forEach>
+ <survey:validate_answer questionIndex="0"/>
+ </tr:selectOneRadio >
+
+
+<!-- question 2 -->
+ <tr:inputText label="#{survey.q1.prompt}"
+ required="true"
+ value="#{survey.a1}"
+ immediate="true">
+
+ <survey:validate_answer questionIndex="1"/>
+ </tr:inputText>
+
+<!-- question 3 -->
+ <tr:selectOneRadio label="#{survey.q2.prompt}"
+ required="true"
+ value="#{survey.a2}">
+ <tr:forEach var="item" varStatus="iter"
+ items="#{survey.q2.answerStrings}">
+ <!-- The strange EL syntax for "value" forces it to be a string -->
+ <tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
+ </tr:forEach>
+
+ <survey:validate_answer questionIndex="2"/>
+ </tr:selectOneRadio >
+
+
+<!-- question 4 -->
+ <tr:panelLabelAndMessage label="#{survey.q3.prompt}"
+ labelStyle="vertical-align: top;">
+ <tr:selectBooleanCheckbox text="#{survey.q3.text1}" value="#{survey.a30}" >
+ <survey:validate_answer questionIndex="3A"/>
+ </tr:selectBooleanCheckbox>
+
+ <tr:selectBooleanCheckbox text="#{survey.q3.text2}" value="#{survey.a31}" >
+ <survey:validate_answer questionIndex="3B"/>
+ </tr:selectBooleanCheckbox>
+
+ <tr:selectBooleanCheckbox text="#{survey.q3.text3}" value="#{survey.a32}" >
+ <survey:validate_answer questionIndex="3C"/>
+ </tr:selectBooleanCheckbox>
+
+ <tr:selectBooleanCheckbox text="#{survey.q3.text4}" value="#{survey.a33}" >
+ <survey:validate_answer questionIndex="3D"/>
+ </tr:selectBooleanCheckbox>
+
+ </tr:panelLabelAndMessage>
+
+<!-- question 5 -->
+ <tr:selectOneRadio label="#{survey.q4.prompt}"
+ required="true"
+ value="#{survey.a4}">
+ <tr:forEach var="item" varStatus="iter"
+ items="#{survey.q4.answerStrings}">
+ <!-- The strange EL syntax for "value" forces it to be a string -->
+ <tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
+ </tr:forEach>
+
+ <survey:validate_answer questionIndex="4"/>
+ </tr:selectOneRadio >
+
+ </tr:panelFormLayout>
+ </tr:panelHeader>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Index"
+ immediate="true"
+ action="home"/>
+ </tr:navigationPane>
+ </f:facet>
+ <tr:panelButtonBar>
+ <tr:commandButton action="#{survey.check}" text="check answers"
+ rendered="true"/>
+ </tr:panelButtonBar>
+ </tr:panelPage>
+ <tr:commandButton action="#{survey.start}" text="start over"
+ rendered="true"/>
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyStart.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyStart.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyStart.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/main/webapp/surveydemo/surveyStart.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:trh="http://myfaces.apache.org/trinidad/html"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=utf-8"/>
+ <f:view>
+ <tr:document title="Survey">
+ <tr:form>
+
+ <tr:panelPage>
+ <f:facet name="navigationGlobal">
+ <tr:navigationPane hint="buttons">
+ <tr:commandNavigationItem text="Return to Index"
+ immediate="true"
+ action="home"/>
+ </tr:navigationPane>
+ </f:facet>
+
+ <tr:panelHeader text="Welcome to the Survey Demo">
+ <tr:outputText value="Test your knowledge of California Driving Laws"
+ styleClass="AFInstructionText"/>
+
+ <tr:spacer height="20"/>
+ <tr:commandButton action="#{survey.start}" text="begin survey"/>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+
+ </tr:form>
+ </tr:document>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/site/site.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/site/site.xml?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/site/site.xml (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/site/site.xml Tue Jun 19 09:46:57 2007
@@ -0,0 +1,34 @@
+<?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.
+
+-->
+<project name="Apache Incubator Trinidad Podling">
+ <bannerLeft>
+ <name>Apache Incubator Trinidad Podling Demo</name>
+ </bannerLeft>
+ <body>
+ <links>
+ <item name="MyFaces" href="http://myfaces.apache.org/"/>
+ </links>
+
+ <menu ref="parent"/>
+ <menu ref="modules"/>
+ <menu ref="reports"/>
+ </body>
+</project>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/AddressBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/AddressBean.java?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/AddressBean.java (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/AddressBean.java Tue Jun 19 09:46:57 2007
@@ -0,0 +1,99 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+public class AddressBean
+{
+
+ public AddressBean()
+ {
+ }
+
+ public String getFirstName()
+ {
+ return _firstName;
+ }
+
+ public void setFirstName(String firstName)
+ {
+ _firstName = firstName;
+ }
+
+ public String getLastName()
+ {
+ return _lastName;
+ }
+
+ public void setLastName(String lastName)
+ {
+ _lastName = lastName;
+ }
+
+
+ public String getStreetAddress()
+ {
+ return _streetAddress ;
+ }
+
+ public void setStreetAddress(String streetAddress)
+ {
+ _streetAddress = streetAddress;
+ }
+
+ public String getCity()
+ {
+ return _city ;
+ }
+
+ public void setCity(String city)
+ {
+ _city = city;
+ }
+
+ public String getState()
+ {
+ return _state ;
+ }
+
+ public void setState(String state)
+ {
+ _state = state;
+ }
+
+
+ public String getZip()
+ {
+ return _zip ;
+ }
+
+ public void setZip(String zip)
+ {
+ _zip = zip;
+ }
+
+
+ private String _firstName = null;
+ private String _lastName = null;
+ private String _streetAddress = null;
+ private String _city = null;
+ private String _state = null;
+ private String _zip = null;
+
+}
+
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CreditCardBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CreditCardBean.java?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CreditCardBean.java (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CreditCardBean.java Tue Jun 19 09:46:57 2007
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+public class CreditCardBean
+{
+
+ public CreditCardBean()
+ {
+
+ }
+
+
+ public String getNumber()
+ {
+ return _number ;
+ }
+
+ public void setNumber(String number)
+ {
+ _number = number;
+ }
+
+ public String getExpirationDate()
+ {
+ return _expirationDate ;
+ }
+
+ public void setExpirationDate(String expirationDate)
+ {
+ _expirationDate = expirationDate;
+ }
+
+
+ public String getFirstName()
+ {
+ return _firstName;
+ }
+
+ public void setFirstName(String firstName)
+ {
+ _firstName = firstName;
+ }
+
+ public String getLastName()
+ {
+ return _lastName;
+ }
+
+ public void setLastName(String lastName)
+ {
+ _lastName = lastName;
+ }
+
+ private String _firstName = null;
+ private String _lastName = null;
+ private String _number = null;
+ private String _expirationDate = null;
+}
+
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/CustomerBean.java Tue Jun 19 09:46:57 2007
@@ -0,0 +1,84 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+public class CustomerBean
+{
+
+ public CustomerBean()
+ {
+
+ // This isn't thread-safe. I don't care. :)
+ _id = _sID++;
+
+ }
+
+
+ public String getFirstName()
+ {
+ return _firstName;
+ }
+
+ public void setFirstName(String firstName)
+ {
+ _firstName = firstName;
+ }
+
+ public String getLastName()
+ {
+ return _lastName;
+ }
+
+ public void setLastName(String lastName)
+ {
+ _lastName = lastName;
+ }
+
+ public String getUserName()
+ {
+ return _userName;
+ }
+
+ public void setUserName(String userName)
+ {
+ _userName = userName;
+ }
+
+ public String getPassword()
+ {
+ return _password;
+ }
+
+ public void setPassword(String password)
+ {
+ _password = password;
+ }
+
+ private String _firstName = null;
+ private String _lastName = null;
+ private String _userName = null;
+ private String _password = null;
+ // Never read
+ @SuppressWarnings("unused")
+ private int _id;
+
+ static private int _sID = 2242;
+
+}
+
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/DynamicBean.java Tue Jun 19 09:46:57 2007
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.MethodBinding;
+import javax.faces.event.ActionEvent;
+
+import org.apache.myfaces.trinidad.component.core.layout.CorePanelBox;
+import org.apache.myfaces.trinidad.component.core.nav.CoreCommandLink;
+
+public class DynamicBean
+{
+ public DynamicBean()
+ {
+ }
+
+ public void doSomething(ActionEvent event)
+ {
+ System.out.println("Received " + event);
+ }
+
+ @SuppressWarnings("unchecked")
+ public CorePanelBox getPanel()
+ {
+ if (_panel == null)
+ {
+ FacesContext context = FacesContext.getCurrentInstance();
+
+ _panel = new CorePanelBox();
+ CoreCommandLink link = new CoreCommandLink();
+ link.setText("Dynamic Link");
+
+ MethodBinding actionListenerMethod = context.getApplication().
+ createMethodBinding("#{dynamic.doSomething}",
+ new Class[]{ActionEvent.class});
+ link.setActionListener(actionListenerMethod);
+ link.setId("TheLinkId");
+ _panel.getChildren().add(link);
+ }
+
+ return _panel;
+ }
+
+ public void setPanel(CorePanelBox panel)
+ {
+ _panel = panel;
+ }
+
+ private CorePanelBox _panel;
+}
+
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/java/org/apache/myfaces/trinidaddemo/OrderBean.java Tue Jun 19 09:46:57 2007
@@ -0,0 +1,126 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+import javax.faces.event.ActionEvent;
+
+public class OrderBean
+{
+
+ public OrderBean()
+ {
+System.out.println("Order constructor");
+
+ // This isn't thread-safe. I don't care. :)
+ _id = _sOrderID++;
+
+ }
+
+
+
+ public int getId()
+ {
+ return _id;
+ }
+
+ public void setId(int id)
+ {
+ _id = id;
+ }
+
+
+ public String getNextAction()
+ {
+ return "next";
+
+ }
+
+ public String getPreviousAction()
+ {
+ return "previous";
+
+ }
+
+
+
+ public void processNext(
+ ActionEvent event)
+ {
+ System.out.println(" demo processNext");
+
+ }
+
+
+ public void processPrevious(
+ ActionEvent event)
+ {
+ System.out.println(" demo processPrevious" );
+
+ }
+
+ public AddressBean getShippingAddress()
+ {
+ return _shippingAddress;
+ }
+
+ public void setShippingAddress(AddressBean shippingAddress)
+ {
+ _shippingAddress = shippingAddress;
+ }
+
+ public AddressBean getBillingAddress()
+ {
+ return _billingAddress;
+ }
+
+ public void setBillingAddress(AddressBean billingAddress)
+ {
+ _billingAddress = billingAddress;
+ }
+
+ public CustomerBean getCustomer()
+ {
+ return _customer;
+ }
+
+ public void setCustomer(CustomerBean customer)
+ {
+ _customer = customer;
+ }
+
+ public CreditCardBean getCreditCard()
+ {
+ return _creditCard;
+ }
+
+ public void setCreditCard(CreditCardBean creditCard)
+ {
+ _creditCard = creditCard;
+ }
+
+ private int _id;
+ private CustomerBean _customer = new CustomerBean();
+ private CreditCardBean _creditCard = new CreditCardBean();
+ private AddressBean _shippingAddress = new AddressBean();
+ private AddressBean _billingAddress = new AddressBean();
+
+ static private int _sOrderID = 4524;
+
+}
+
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/WEB-INF/faces-config-add.xml Tue Jun 19 09:46:57 2007
@@ -0,0 +1,155 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<faces-config>
+
+ <!-- SHOPPING CART -->
+ <navigation-rule>
+ <from-view-id>/cart.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>checkout</from-outcome>
+ <to-view-id>/login.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- LOGIN -->
+ <navigation-rule>
+ <from-view-id>/login.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>loggedIn</from-outcome>
+ <to-view-id>/items.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>newUser</from-outcome>
+ <to-view-id>/register.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- REGISTER -->
+ <navigation-rule>
+ <from-view-id>/register.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>loggedIn</from-outcome>
+ <to-view-id>/items.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- ITEMS LIST -->
+ <navigation-rule>
+ <from-view-id>/items.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/credit.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- CREDIT CARD -->
+ <navigation-rule>
+ <from-view-id>/credit.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/billing.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/items.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- BILLING -->
+ <navigation-rule>
+ <from-view-id>/billing.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/shipping.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/credit.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- SHIPPING -->
+ <navigation-rule>
+ <from-view-id>/shipping.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/review.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/billing.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+
+ <!-- REVIEW -->
+ <navigation-rule>
+ <from-view-id>/review.jspx</from-view-id>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/shipping.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>confirm</from-outcome>
+ <to-view-id>/confirm.jspx</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+
+ <!-- ORDER BEAN FOR SHOPPING CART CHECKOUT -->
+ <managed-bean>
+ <managed-bean-name>order</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.trinidaddemo.OrderBean
+ </managed-bean-class>
+ <managed-bean-scope>
+ session
+ </managed-bean-scope>
+ </managed-bean>
+
+ <!-- END OF CART -->
+ <managed-bean>
+ <managed-bean-name>dynamic</managed-bean-name>
+ <managed-bean-class>
+ org.apache.myfaces.trinidaddemo.DynamicBean
+ </managed-bean-class>
+ <managed-bean-scope>
+ request
+ </managed-bean-scope>
+ </managed-bean>
+
+</faces-config>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/WEB-INF/web.xml Tue Jun 19 09:46:57 2007
@@ -0,0 +1,125 @@
+<?xml version = '1.0' encoding = 'ISO-8859-1'?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+ <!-- Faces API parameter -->
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ <!--param-value>server</param-value-->
+ </context-param>
+
+ <!-- Faces Filter -->
+ <filter>
+ <filter-name>faces</filter-name>
+ <filter-class>org.apache.myfaces.trinidadinternal.webapp.FacesFilter</filter-class>
+ <init-param>
+ <param-name>faces-servlet-url-pattern</param-name>
+ <param-value>/faces/*</param-value>
+ </init-param>
+ </filter>
+
+ <filter>
+ <filter-name>trinidad</filter-name>
+ <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
+ </filter>
+
+ <!-- Faces Filter Mappings -->
+ <filter-mapping>
+ <filter-name>faces</filter-name>
+ <url-pattern>*.jspx</url-pattern>
+ </filter-mapping>
+
+ <filter-mapping>
+ <filter-name>trinidad</filter-name>
+ <servlet-name>faces</servlet-name>
+ </filter-mapping>
+
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>faces</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ </servlet>
+
+ <!-- resource loader servlet -->
+ <servlet>
+ <servlet-name>resources</servlet-name>
+ <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
+ </servlet>
+
+ <!-- On some version of OC4J, the following is needed when using jsf 1.0 -->
+ <!--servlet>
+ <servlet-name>jsp</servlet-name>
+ <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
+ <init-param>
+ <param-name>tags_reuse_default</param-name>
+ <param-value>none</param-value>
+ </init-param>
+ </servlet-->
+
+ <!-- Faces Servlet Mappings -->
+ <servlet-mapping>
+ <servlet-name>faces</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>resources</servlet-name>
+ <url-pattern>/adf/*</url-pattern>
+ </servlet-mapping>
+
+
+ <!-- Welcome Files -->
+ <welcome-file-list>
+ <welcome-file>index.jspx</welcome-file>
+ </welcome-file-list>
+
+ <!-- Trinidad Tag Library -->
+ <taglib>
+ <taglib-uri>http://myfaces.apache.org/trinidad</taglib-uri>
+ <taglib-location>/WEB-INF/tr.tld</taglib-location>
+ </taglib>
+
+ <taglib>
+ <taglib-uri>http://myfaces.apache.org/trinidad/html</taglib-uri>
+ <taglib-location>/WEB-INF/trh.tld</taglib-location>
+ </taglib>
+
+ <!-- Faces Core Tag Library -->
+ <taglib>
+ <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
+ <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
+ </taglib>
+
+ <!-- Faces Html Basic Tag Library -->
+ <taglib>
+ <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
+ <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
+ </taglib>
+
+ <!-- Trinidad Demo Tag Library -->
+ <taglib>
+ <taglib-uri>http://myfaces.apache.org/trinidaddemo</taglib-uri>
+ <taglib-location>/WEB-INF/uixdemo.tld</taglib-location>
+ </taglib>
+
+</web-app>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/billing.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/billing.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/billing.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/billing.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:trh="http://myfaces.apache.org/trinidad/html"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Enter Billing Information"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Billing Address">
+ <tr:panelFormLayout>
+ <tr:inputText label="First Name" value="#{order.billingAddress.firstName}"/>
+ <tr:inputText label="Last Name" value="#{order.billingAddress.lastName}"/>
+ <tr:inputText label="Street Address" value="#{order.billingAddress.streetAddress}"/>
+ <tr:inputText label="City" value="#{order.billingAddress.city}"/>
+ <tr:inputText label="State" value="#{order.billingAddress.state}"/>
+ <tr:inputText label="Zip Code" value="#{order.billingAddress.zip}"/>
+ </tr:panelFormLayout>
+ <tr:panelButtonBar>
+ <tr:singleStepButtonBar selectedStep="3" maxStep="5"
+ nextActionListener="#{order.processNext}"
+ nextAction="#{order.getNextAction}"
+ previousActionListener="#{order.processPrevious}"
+ previousAction="#{order.getPreviousAction}"
+ />
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/cart.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/cart.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/cart.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/cart.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:trh="http://myfaces.apache.org/trinidad/html"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Shopping Cart"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+
+ <tr:panelHeader text="Shopping Cart">
+ <tr:panelFormLayout>
+ <tr:inputText readOnly="true" value="foobar" label="Items" />
+ </tr:panelFormLayout>
+
+ <tr:panelButtonBar>
+ <tr:commandButton action="checkout" text="Proceed to Checkout"/>
+ </tr:panelButtonBar>
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/composite.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/composite.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/composite.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/composite.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:tr="http://myfaces.apache.org/trinidad"
+ xmlns:trh="http://myfaces.apache.org/trinidad/html"
+ xmlns:afdemo="http://myfaces.apache.org/adffacesdemo" >
+ <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Test of composite component"/>
+
+ <trh:body>
+ <tr:panelPage>
+ <tr:form>
+ <tr:messages/>
+ <tr:panelGroupLayout layout="vertical">
+ <afdemo:dateField id="dateField" value="#{date.date1}"/>
+ <tr:message for="dateField"/>
+ <tr:outputText value="Date is now #{date.date1}"/>
+
+ <tr:separator/>
+
+ <!-- Use a normal inputText, but use binding to force the renderer type -->
+ <h:inputText id="dateInput" value="#{date.date2}" binding="#{compositeTest.dateInput}"/>
+
+ <tr:message for="dateInput"/>
+ <tr:outputText value="Date is now #{date.date2}"/>
+
+ <tr:separator/>
+
+ <tr:commandButton text="Submit"/>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:panelPage>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>
Added: myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/confirm.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/confirm.jspx?view=auto&rev=548795
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/confirm.jspx (added)
+++ myfaces/trinidad/trunk/trinidad/trinidad-examples/trinidad-demo/src/test/webapp/confirm.jspx Tue Jun 19 09:46:57 2007
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:trh="http://myfaces.apache.org/trinidad/html"
+ xmlns:tr="http://myfaces.apache.org/trinidad" >
+ <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
+ <f:view>
+ <trh:html>
+ <trh:head title="Confirmation"/>
+ <trh:body>
+ <tr:form>
+
+ <tr:panelPage>
+ <tr:messages/>
+ <tr:panelHeader text="Confirmation">
+ <tr:outputText styleClass="AFInstructionText"
+ value="Thank you for shopping with us. Your confirmation number is:" />
+ <tr:outputText styleClass="AFInstructionText"
+ inlineStyle="font-weight:bold" value="#{order.id}" />
+ </tr:panelHeader>
+ </tr:panelPage>
+
+ </tr:form>
+ </trh:body>
+ </trh:html>
+ </f:view>
+</jsp:root>