You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/01/28 23:52:00 UTC

svn commit: r904288 [10/13] - in /myfaces/tomahawk/trunk/examples/simple20: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/myfaces/ src/main/java/org/apache/myfaces/examples/ src/main/java/org/apa...

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/resources/css/basic.css
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/resources/css/basic.css?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/resources/css/basic.css (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/resources/css/basic.css Thu Jan 28 22:51:42 2010
@@ -0,0 +1,646 @@
+body {
+	font-family : arial, verdana, Geneva, Arial, Helvetica, sans-serif;
+    font-size : 12px;
+}
+
+.standard {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+}
+
+.standard_bold {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    font-weight: bold;
+}
+
+.scrollerTable {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    padding: 2;
+    border-style: solid;
+    border-width: 1px;
+    width: 400px;
+}
+
+.scroller {
+    padding-left:20px;
+}
+
+.paginator {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+}
+
+
+.standardTable {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    padding: 2;
+    border-style: solid;
+    border-width: 1px;
+}
+
+.standardTable_Header {
+	color: #000000;
+    background-color: #FFDD00;
+    padding: 3;
+    text-align: center;
+    border: none;
+}
+
+.standardTable_SortHeader {
+    background-color: #FFDD00;
+    color: #000000;
+    padding: 3;
+    text-align: center;
+    border: none;
+    font-weight: bold;
+}
+
+.standardTable_Footer {
+    background-color: #FFFFE0;
+}
+
+.standardTable_Row1 {
+    background-color: #FFFFE0;
+}
+
+.standardTable_Row2 {
+    background-color: #FFFFE0;
+}
+
+.standardTable_Column {
+}
+
+.standardTable_ColumnCentered {
+    text-align: center
+}
+
+a
+{
+	color: #333366;
+    text-decoration: underline;
+    font-size: 12px;
+}
+
+a:hover
+{
+	color: #333366;
+    text-decoration: underline;
+}
+
+.error {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 10px;
+	color: #FF0000;
+}
+
+.sortLink {
+	color: #333366;
+    text-decoration: none;
+}
+
+
+.pageLayout {
+    width:760px;
+    height:100%;
+}
+
+.pageHeader {
+    background-color: #6392C6;
+    text-align: center;
+    vertical-align: middle;
+    height:1px;
+    overflow:visible;
+    color: #FFFFFF;
+    padding: 0px;
+    margin: 0px;
+}
+
+.pageHeader1 {
+}
+.pageHeader2 {
+    width:100%;
+}
+.pageHeader2col1 {
+    background-color: #FFFFFF;
+}
+
+.pageNavigation {
+    text-align: left;
+    vertical-align: top;
+    width: 200px;
+    background-color: #E7EFF7;
+    border: 1px solid #6392C6;
+    padding: 10px;
+}
+
+.pageBody {
+    text-align: left;
+    vertical-align: top;
+    width: 560px;
+    padding: 20px;
+    background-color: #FFFFFF;
+}
+
+.pageFooter {
+    text-align: right;
+    font-size: xx-small;
+    height:1px;
+    overflow:visible;
+    background-color: #6392C6;
+    color: #FFFFFF;
+}
+
+
+
+.navigation {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+    width: 100%;
+}
+
+.navitem {
+	white-space : nowrap;
+    text-decoration : none;
+}
+
+a.navitem:hover,active {
+	white-space : nowrap;
+	text-decoration: none;
+    color: #6392C6;
+}
+
+.navitem_open {
+	white-space : nowrap;
+	text-decoration: none;
+	font-weight : bold;
+}
+
+a.navitem_open:hover,active {
+	white-space : nowrap;
+	text-decoration: none;
+	font-weight : bold;
+    color: #6392C6;
+}
+
+.navitem_active {
+	white-space : nowrap;
+	text-decoration: none;
+	font-weight : bold;
+    background-color: #6392C6;
+	width: 100%;
+    color: #FFFFFF;
+}
+
+a.navitem_active:hover,active {
+	white-space : nowrap;
+	text-decoration: none;
+	font-weight : bold;
+    background-color: #6392C6;
+	width: 100%;
+    color: #FFFFFF;
+}
+
+
+.navseparator {
+    line-height: 12px;
+    border-bottom: 1px solid #A2B7C5;
+}
+
+
+
+.fileUploadInput {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    width: 250px;
+}
+
+
+
+
+.emptyHeader {
+    background-color: #FFFFFF;
+    border-top: 0px none;
+    border-right: 0px none;
+    border-bottom: 0px none;
+    border-left: 0px none;
+}
+
+
+
+div.titlebar {
+  background: #C7D0D9;
+  color: black;
+  border: 1px solid #8CACBB;
+  padding-left: 1px;
+  padding-right: 1px;
+  padding-top: 1px;
+  padding-bottom: 1px;
+  margin: 1px 1px;
+  clear: both;
+}
+
+/*
+   ------------------------------------------------------------
+   Calendar component
+   ------------------------------------------------------------
+*/
+
+.yearMonthHeader {
+    background-color: #DDDDDD;
+    color: #000000;
+    text-align: center;
+    border: none;
+    font-weight: bold;
+}
+
+.weekHeader {
+    background-color: #E7E7E7;
+    color: #000000;
+    text-align: center;
+    border: none;
+}
+
+.currentDayCell {
+    background-color: #DDDDDD;
+    color: #000000;
+    border: none;
+}
+
+
+/*
+   ------------------------------------------------------------
+   End Calendar component
+   ------------------------------------------------------------
+*/
+
+/*
+   ------------------------------------------------------------
+   Popup component
+   ------------------------------------------------------------
+*/
+
+.popup {
+    background-color:rgb(255,255,255);
+    color: #000000;
+    border: 1px solid #CCCCCC;
+    font-size:smaller;
+    padding: 5px;
+}
+
+.popup table {
+    font-size:smaller;
+}
+
+
+/*
+   ------------------------------------------------------------
+   End popup component
+   ------------------------------------------------------------
+*/
+
+
+.countryFormTable {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    padding: 2;
+    border-style: solid;
+    border-width: 1px;
+}
+
+.countryFormHeader {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    padding: 2;
+    border-style: none;
+    background-color: #FFDD00;
+    text-align: center;
+	font-weight : normal;
+}
+
+.countryFormFooter {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    padding: 2;
+    border-style: none;
+    background-color: #FFDD00;
+    text-align: center;
+	font-weight : normal;
+}
+
+.countryFormLabels {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    padding: 2;
+    border-style: none;
+    text-align: right;
+	font-weight : bold;
+}
+
+.countryFormInputs {
+	font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 12px;
+	color: #000000;
+    padding: 2;
+    border-style: none;
+}
+
+/*
+   ------------------------------------------------------------
+   Tree component
+   ------------------------------------------------------------
+*/
+
+.nodeFolder
+{
+    font-size: 10px;
+    font-family: Verdana, Geneva, sans-serif;
+    text-decoration: none
+}
+.document
+{
+    color: blue;
+    font-size: 10px;
+    font-family: Verdana, Geneva, sans-serif;
+    text-decoration: none
+}
+.documentSelected
+{
+    color: blue;
+    font-size: 10px;
+    font-family: Verdana, Geneva, sans-serif;
+    text-decoration: none;
+    font-weight: bold
+}
+
+.childCount
+{
+    color: blue;
+    font-size: 10px;
+    font-family: Verdana, Geneva, sans-serif;
+    text-decoration: none
+}
+
+/*
+   ------------------------------------------------------------
+   Panelnavigation
+   ------------------------------------------------------------
+*/
+#subnavigation {
+margin-left: 0px;
+margin-right: 20px;
+padding: 0px 0px 20px 0px;
+border: 1px solid #546359;
+background-color: #EAF4F4;
+}
+
+#subnavigation_outer {
+float: left;
+width: 220px;
+padding: 0px;
+margin: 0px 0px 0px 0px;
+}
+#subnavigation_outer h1  {
+font-size: 1.5em;
+margin: 0px;
+padding: 0px 0px 15px 0px;
+}
+
+/*
+   --------------------------------------------------------------
+    Horizontal Panelnavigation
+   --------------------------------------------------------------
+*/
+#hNav_outer {
+    margin: 0;
+    padding: 0;   
+    height: 60px;
+    width: 800px;
+}
+#hNav_outer ul {    
+    padding: 0;
+    margin: 0;    
+}
+#hNav_outer ul li ul {
+    margin: 0;
+    padding: 0;
+}
+#hNav_outer ul a {
+    text-decoration: none;
+}
+#hNav_outer ul li { /*float the main list items*/
+    margin: 0;
+    float: left;
+    display: block;
+    padding: 5px;
+}
+#hNav_outer ul li ul {
+    display: none;
+}
+#hNav_outer ul li.off ul, #hNav_outer ul li.on ul { /*put the subnav below*/
+    position: absolute;
+    top: 36px;
+    *top: 44px;/*reposition for IE*/    
+    background: #224d6f;    
+    left: 13px;
+    *left: 15px;
+    width: 740px;    
+}
+#hNav_outer ul li.on ul {    
+    display: block;
+    background: #f90;
+}
+#hNav_outer ul li.on:hover ul, #hNav_outer ul li.over ul { /*for ie*/
+    background: #224d6f;
+}
+#hNav_outer ul li a {
+    color: #224d6f;
+    font-weight: bold;
+    display: block;
+    padding: 5;
+}
+#hNav_outer ul li.on a {   
+    color: #fff;
+    background: #f90;
+}
+#hNav_outer ul li.on ul a, #hNav_outer ul li.off ul a {
+    float: left; /*ie doesn't inherit the float*/
+    border: 0;
+    color: #f90;
+    width: auto;    
+}
+#hNav_outer ul li.on:hover ul a, #hNav_outer ul li.over ul li a { /*for ie - the specificity is necessary*/
+    background: #224d6f;
+}
+#hNav_outer ul li.off:hover ul, #hNav_outer ul li.over ul {
+    display: block;
+    z-index: 6000;
+}		
+#hNav_outer ul li.off a:hover, #hNav_outer ul li:hover a, #hNav_outer ul li.over a {
+    background: #29497b;
+    color: #f90;
+}
+#hNav_outer ul li.off a:hover, #hNav_outer ul li.on a:hover { 
+    color: #f90;
+}		
+/*subnav formatting*/
+#hNav_outer ul li.off ul a {
+    display: block;
+    background: #224d6f;
+    color: #fff;    
+}		
+#hNav_outer ul li.on ul a {       
+    display: block;
+    background: #f90;
+    color: #fff;    
+}
+
+/**************************************************
+ * css layers and classes for list navigation list
+ **************************************************/
+#subnavigation ul li  a {
+display:block;
+background-color: #D1E4E4;
+color: #294747;
+text-decoration: none;
+border-bottom: 1px solid #87A8A8;
+padding: 2px 20px;
+margin: 0px;
+}
+
+#subnavigation ul li a:visited {color:#294747;}
+#subnavigation ul li a:hover {color: #FFFFFF;  background-color: #87A8A8;}
+#subnavigation ul li a:active { color:#294747;}
+
+#subnavigation ul li a.selected {
+font-weight: bold;
+color:#294747;
+background-color: #FFFFFF;
+}
+
+#subnavigation ul ul li a {
+padding: 2px 20px 2px 25px;
+margin: 0px;
+background-color: #FFFFFF;}
+
+#subnavigation ul ul li ul li a {
+padding: 2px 20px 2px 30px;
+margin: 0px;
+}
+
+#subnavigation ul {
+list-style-type: none;
+padding: 0px;
+margin: 0px;
+}
+
+#subnavigation li{
+margin: 0px;
+padding: 0px;
+display:inline;
+}
+
+#subnavigation ul.mypage li a {
+padding: 2px 20px 2px 20px;
+margin: 0px;
+background-color: #EAF4F4;
+}
+
+#subnavigation ul.mypage ul li a:hover {color: #FFFFFF;  background-color: #87A8A8;}
+/*
+    body, th, td, input, select {
+        font-family: Verdana, Helvetica, Arial, sans-serif;
+    }
+
+    table, th, td {
+        font-size: small;
+        border: none;
+    }
+
+    .treeHeader {
+        background-color: #bbb;
+        border: 0.75px solid #fff;
+        padding: 2px 3px;
+        text-align: left;
+    }
+
+    .treeFooter {
+        padding: 5px;
+        margin: .67em 2px;
+        margin-top: 0;
+        background-color: #ddd;
+        background-image: url(../images/sw_med_rond.gif);
+        background-repeat: no-repeat;
+        background-position: bottom left;
+    }
+
+    input, .treeFooter {
+        font-size: xx-small;
+        font-size: x-small;
+    }
+
+    .a td {
+        background: #ddd;
+        border-bottom: 1px solid #fff;
+    }
+
+    .b td {
+        background: #efefef;
+        border-bottom: 1px solid #fff;
+    }
+
+    .col1 {
+        border-right: 1px solid #fff;
+        padding: 2px 15px 2px 5px;
+    }
+
+    .col2 {
+        border-left: 1px solid #fff;
+        padding: 2px 15px 2px 5px;
+    }
+
+    .tree {
+       lineheight: 18px;
+       font-family: arial, sans-serif;
+    }
+
+    .treenode {
+       padding: 2px 15px 2px 5px;
+    }
+
+    .treenode a {
+       text-decoration: none;
+    }
+
+    .treenodeSelected {
+       padding: 2px 15px 2px 5px;
+    }
+
+    .treenodeSelected a {
+       text-decoration: none;
+       font-weight: bold;
+    }
+
+    table .selectOneRadio {
+        font-weight: bold;
+    }
+
+
+    .standardList {
+        font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+        font-size: 12px;
+        color: #000000;
+    }
+
+    */

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample1.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample1.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample1.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample1.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,154 @@
+<%@ page import="java.math.BigDecimal,
+                 java.util.Date"%>
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<%@include file="inc/head.inc" %>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:panelGroup id="body">
+
+        <t:saveState id="save1" value="#{calcForm.number1}" />
+        <t:saveState id="save2" value="#{calcForm.number2}" />
+        <t:saveState id="save3" value="#{ucaseForm.text}" />
+
+        <t:messages id="messageList" styleClass="error" summaryFormat="{0} in {1}" />
+
+        <f:verbatim>
+            <h4>
+        </f:verbatim>
+                <h:outputText value="#{example_messages['sample1_form']}"/>
+        <f:verbatim>
+            </h4>
+            <table border="1"><tr><td>
+        </f:verbatim>
+
+        <h:form id="form1">
+            <h:outputLabel for="form1:number1" value="#{example_messages['sample1_number']} 1" />
+            <h:outputText value="#{validationController.number1ValidationLabel}"/>
+            <f:verbatim>: </f:verbatim>
+            <h:inputText id="number1" value="#{calcForm.number1}" maxlength="10" size="25" required="true" >
+               <f:validateLongRange minimum="1" maximum="10" />
+            </h:inputText>
+            <h:message id="number1Error" for="form1:number1" styleClass="error" /><f:verbatim><br></f:verbatim>
+
+            <h:outputLabel for="form1:number2" value="#{example_messages['sample1_form']} 2" />
+            <h:outputText value="#{validationController.number2ValidationLabel}"/>
+            <f:verbatim>: </f:verbatim>
+            <h:inputText id="number2" value="#{calcForm.number2}" maxlength="10" size="25" required="true" >
+               <f:validateLongRange minimum="20" maximum="50" />
+            </h:inputText>
+            <h:message id="number2Error" for="form1:number2" styleClass="error" /><f:verbatim><br></f:verbatim>
+
+            <h:outputLabel for="form1:result" value="#{example_messages['sample1_result']}" /><f:verbatim>: </f:verbatim>
+            <h:outputText id="result" value="#{calcForm.result}" /><f:verbatim><br></f:verbatim>
+
+            <h:commandButton id="addButton" value="#{example_messages['sample1_add']}" action="none">
+                <f:actionListener type="org.apache.myfaces.examples.example1.CalcActionListener" ></f:actionListener>
+            </h:commandButton>
+            <h:commandButton id="subtractButton" value="#{example_messages['sample1_sub']}" action="none">
+                <f:actionListener type="org.apache.myfaces.examples.example1.CalcActionListener" ></f:actionListener>
+            </h:commandButton>
+            <f:verbatim><br></f:verbatim>
+
+            <h:commandLink id="href1" action="none">
+                <h:outputText value="#{example_messages['sample1_add_link']}"/>
+                <f:actionListener type="org.apache.myfaces.examples.example1.CalcActionListener" ></f:actionListener>
+            </h:commandLink><f:verbatim><br></f:verbatim>
+            <h:commandLink id="href2" action="none">
+                <h:outputText value="#{example_messages['sample1_sub_link']}"/>
+                <f:actionListener type="org.apache.myfaces.examples.example1.CalcActionListener" ></f:actionListener>
+            </h:commandLink>
+        </h:form>
+
+        <f:verbatim>
+            </td></tr></table>
+            <h4>
+        </f:verbatim>
+            <h:outputText value="#{example_messages['sample1_another_form']}"/>
+        <f:verbatim>
+            </h4>
+            <table border="1"><tr><td>
+        </f:verbatim>
+
+        <h:form id="form2">
+            <h:outputLabel for="form2:text" value="#{example_messages['sample1_text']}" />
+            <h:outputText value="#{validationController.textValidationLabel}"/>
+            <f:verbatim>: </f:verbatim>
+            <h:inputText id="text" value="#{ucaseForm.text}">
+                <f:validateLength minimum="3" maximum="7"/>
+            </h:inputText>
+            <h:message id="textError" for="form2:text" styleClass="error" /><f:verbatim><br></f:verbatim>
+            <h:commandButton id="ucaseButton" value="#{example_messages['sample1_uppercase']}" action="none">
+                <f:actionListener type="org.apache.myfaces.examples.example1.UCaseActionListener" />
+            </h:commandButton>
+            <h:commandButton id="lcaseButton" value="#{example_messages['sample1_lowercase']}" action="none">
+                <f:actionListener type="org.apache.myfaces.examples.example1.UCaseActionListener" />
+            </h:commandButton>
+            <f:verbatim><br></f:verbatim>
+        </h:form>
+
+        <f:verbatim>
+            </td></tr></table>
+            <h4>
+        </f:verbatim>
+            <h:outputText value="#{example_messages['sample1_validation']}"/>
+        <f:verbatim>
+            </h4>
+            <table border="1"><tr><td>
+        </f:verbatim>
+
+        <h:form id="form3">
+            <h:commandButton id="valDisable" value="#{example_messages['sample1_disable_validation']}" action="#{validationController.disableValidation}" />
+            <h:commandButton id="valEnable" value="#{example_messages['sample1_enable_validation']}" action="#{validationController.enableValidation}" />
+        </h:form>
+
+        <f:verbatim>
+            </td></tr></table>
+        </f:verbatim>
+
+        <f:verbatim><br></f:verbatim>
+        <h:form>
+	        <h:commandLink id="jump_home" action="#{ucaseForm.jumpHome}" ><f:verbatim>Go Home</f:verbatim></h:commandLink>
+        </h:form>
+
+    </h:panelGroup>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample2.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample2.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample2.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sample2.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,81 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<!--
+managed beans used:
+    q_form
+-->
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:panelGroup id="body">
+
+        <h:messages id="messageList" />
+
+        <h:form id="q_form">
+            <h:inputTextarea id="text"
+                              rows="5"
+                              value="#{q_form.text}" required="true" />
+            <f:verbatim><br><br></f:verbatim>
+            <h:selectOneMenu id="oneoption" value="#{q_form.quoteChar}" >
+                <f:selectItem itemValue="" itemLabel="#{example_messages['sample2_select_quote']}" />
+                <f:selectItem itemValue="\"" itemLabel="Double" />
+                <f:selectItem itemValue="'" itemLabel="Single" />
+                <f:selectItems value="#{q_form.selectOneItems}" />
+            </h:selectOneMenu>
+            <h:commandButton id="button1" value="#{example_messages['sample2_add_quote']}" action="none">
+                <f:actionListener type="org.apache.myfaces.examples.example2.QuotationController" ></f:actionListener>
+            </h:commandButton>
+
+            <f:verbatim><br><br></f:verbatim>
+            <h:selectManyListbox id="manyoptions" value="#{q_form.selectManyValues}" >
+                <f:selectItem itemValue="" itemLabel="#{example_messages['sample2_select_unquote']}" />
+                <f:selectItems value="#{q_form.selectManyItems}" />
+            </h:selectManyListbox>
+            <h:commandButton id="button2" value="#{example_messages['sample2_remove_quote']}" action="none"><f:verbatim><br></f:verbatim>
+                <f:actionListener type="org.apache.myfaces.examples.example2.QuotationController" ></f:actionListener>
+            </h:commandButton>
+
+        </h:form>
+
+    </h:panelGroup>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule1.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule1.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule1.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule1.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,59 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<html>
+<%@include file="/inc/head.inc"%>
+<body>
+<f:view>
+	<h:form>
+		<!--  The schedule itself -->
+		<t:div style="position: absolute; left: 220px; top: 5px; right: 5px;">
+			<t:schedule value="#{scheduleHandler1.model}" id="schedule1"
+				rendered="true" visibleEndHour="18" visibleStartHour="8"
+				workingEndHour="17" workingStartHour="9" readonly="false"
+				theme="evolution" tooltip="true"/>
+		</t:div>
+		<!--  The column on the left, containing the calendar and other controls -->
+		<t:div style="position: absolute; left: 5px; top: 5px; width: 210px; overflow: auto">
+			<h:panelGrid columns="1">
+				<t:inputCalendar id="scheduleNavigator"
+					value="#{scheduleHandler1.model.selectedDate}" />
+				<h:commandButton
+					actionListener="#{scheduleHandler1.addSampleEntries}"
+					value="add sample entries" />
+				<h:commandButton
+					actionListener="#{scheduleHandler1.addSampleHoliday}"
+					value="add sample holiday" />
+			</h:panelGrid>
+    <%@include file="/inc/page_footer.jsp" %>
+    <jsp:include page="inc/mbean_source.jsp"/>
+		</t:div>
+	</h:form>
+
+    
+
+</f:view>
+</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule2.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule2.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule2.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule2.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,57 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<html>
+<%@include file="/inc/head.inc"%>
+<body>
+<f:view>
+	<h:form>
+		<!--  The schedule itself -->
+		<t:div style="position: absolute; left: 220px; top: 5px; right: 5px;">
+			<t:schedule value="#{scheduleHandler1.model}" id="schedule1"
+				rendered="true" visibleEndHour="18" visibleStartHour="8"
+				workingEndHour="17" workingStartHour="9" readonly="false"
+				theme="evolution" tooltip="true" />
+		</t:div>
+		<!--  The column on the left, containing the calendar and other controls -->
+		<t:div style="position: absolute; left: 5px; top: 5px; width: 210px; overflow: auto">
+			<h:panelGrid columns="1">
+				<t:inputCalendar id="scheduleNavigator"
+					value="#{scheduleHandler1.model.selectedDate}" />
+				<h:commandButton
+					action="add_entry"
+					value="add entry" />
+				<h:commandButton
+					actionListener="#{scheduleHandler1.deleteSelectedEntry}"
+					value="delete selected entry"
+					rendered="#{scheduleHandler1.model.entrySelected}"/>
+			</h:panelGrid>
+		    <%@include file="/inc/page_footer.jsp" %>
+		    <jsp:include page="inc/mbean_source.jsp"/>
+		</t:div>
+	</h:form>
+</f:view>
+</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule3.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule3.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule3.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule3.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,70 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<html>
+<%@include file="/inc/head.inc"%>
+<body>
+<f:view>
+	<h:form>
+		<!--  The schedule itself -->
+		<t:div style="position: absolute; left: 220px; top: 5px; right: 5px;">
+			<t:schedule value="#{scheduleHandler2.model}" id="schedule1"
+				rendered="true" visibleEndHour="#{scheduleSettings2.visibleEndHour}"
+				visibleStartHour="#{scheduleSettings2.visibleStartHour}"
+				workingEndHour="#{scheduleSettings2.workingEndHour}"
+				workingStartHour="#{scheduleSettings2.workingStartHour}"
+				readonly="#{scheduleSettings2.readonly}"
+				theme="#{scheduleSettings2.theme}"
+				tooltip="#{scheduleSettings2.tooltip}"
+				renderZeroLengthEntries="#{scheduleSettings2.renderZeroLength}"
+				expandToFitEntries="#{scheduleSettings2.expandToFitEntries}"
+				headerDateFormat="#{scheduleSettings2.headerDateFormat}"
+				compactWeekRowHeight="#{scheduleSettings2.compactWeekRowHeight}"
+				compactMonthRowHeight="#{scheduleSettings2.compactMonthRowHeight}"
+				detailedRowHeight="#{scheduleSettings2.detailedRowHeight}"/>
+		</t:div>
+		<!--  The column on the left, containing the calendar and other controls -->
+		<t:div style="position: absolute; left: 5px; top: 5px; width: 210px; overflow: auto">
+			<h:panelGrid columns="1">
+				<t:inputCalendar id="scheduleNavigator"
+					value="#{scheduleHandler2.model.selectedDate}" />
+				<h:commandButton
+					actionListener="#{scheduleHandler2.addSampleEntries}"
+					value="add sample entries" />
+				<h:commandButton
+					actionListener="#{scheduleHandler2.addSampleHoliday}"
+					value="add sample holiday" />
+				<h:commandButton
+					action="edit_settings"
+					value="Schedule properties..." />
+			</h:panelGrid>
+			<%@include file="/inc/page_footer.jsp"%>
+		    <jsp:include page="inc/mbean_source.jsp"/>
+		</t:div>
+	</h:form>
+
+</f:view>
+</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule4.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule4.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule4.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule4.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,87 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<html>
+<head>
+<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
+<title>MyFaces - the free JSF Implementation</title>
+<link rel="stylesheet" type="text/css" href="css/basic.css" />
+<style>
+table.background td.evenReddish,
+table.background td.unevenReddish,
+table.background td.freeReddish {
+    font-family: Verdana, Arial, Helvetica, Sans-Serif;
+    font-size: 10px;
+    text-align: center;
+}
+
+table.background td.unevenReddish {
+    background-color: rgb(240,220,220);
+    color: rgb(230,220,220);
+}
+
+table.background td.evenReddish {
+    background-color: rgb(255,230,230);
+    color: rgb(240,230,230);
+}
+
+table.background td.freeReddish {
+	background-color: rgb(255,0,0);
+	color: rgb(255,0,0);
+}
+  </style>
+</head>
+<body>
+<f:view>
+	<h:form>
+		<!--  The schedule itself -->
+		<t:div style="position: absolute; left: 220px; top: 5px; right: 5px;">
+			<t:schedule value="#{scheduleHandler1.model}" id="schedule1"
+				rendered="true" visibleEndHour="18" visibleStartHour="8"
+				workingEndHour="17" workingStartHour="9" readonly="false"
+				theme="outlookxp" tooltip="true"
+				evenClass="evenReddish" unevenClass="unevenReddish" freeClass="freeReddish"
+				entryRenderer="#{randomColorEntryRenderer}" />
+		</t:div>
+		<!--  The column on the left, containing the calendar and other controls -->
+		<t:div style="position: absolute; left: 5px; top: 5px; width: 210px; overflow: auto">
+			<h:panelGrid columns="1">
+				<t:inputCalendar id="scheduleNavigator"
+					value="#{scheduleHandler1.model.selectedDate}" />
+				<h:commandButton
+					actionListener="#{scheduleHandler1.addSampleEntries}"
+					value="add sample entries" />
+				<h:commandButton
+					actionListener="#{scheduleHandler1.addSampleHoliday}"
+					value="add sample holiday" />
+			</h:panelGrid>
+			<%@include file="/inc/page_footer.jsp"%>
+		    <jsp:include page="inc/mbean_source.jsp"/>
+		</t:div>
+	</h:form>
+
+</f:view>
+</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule5.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule5.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule5.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule5.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,70 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<html>
+<%@include file="/inc/head.inc"%>
+<body>
+<f:view>
+	<h:form>
+		<!--  The schedule itself -->
+		<t:div style="position: absolute; left: 220px; top: 5px; right: 5px;">
+			<t:schedule value="#{bindingScheduleHandler.model}" id="schedule1"
+			    binding="#{bindingScheduleHandler.schedule}"
+				rendered="true" visibleEndHour="#{scheduleSettings2.visibleEndHour}"
+				visibleStartHour="#{scheduleSettings2.visibleStartHour}"
+				workingEndHour="#{scheduleSettings2.workingEndHour}"
+				workingStartHour="#{scheduleSettings2.workingStartHour}"
+				readonly="#{scheduleSettings2.readonly}"
+				theme="#{scheduleSettings2.theme}"
+				tooltip="#{scheduleSettings2.tooltip}"
+				headerDateFormat="#{scheduleSettings2.headerDateFormat}"
+				compactWeekRowHeight="#{scheduleSettings2.compactWeekRowHeight}"
+				compactMonthRowHeight="#{scheduleSettings2.compactMonthRowHeight}"
+				detailedRowHeight="#{scheduleSettings2.detailedRowHeight}"
+				submitOnClick="true"
+				mouseListener="#{bindingScheduleHandler.scheduleClicked}"
+				action="#{bindingScheduleHandler.scheduleAction}"
+				/>
+			<h:outputText value="#{bindingScheduleHandler.mouseActionText}"></h:outputText>
+		</t:div>
+		<!--  The column on the left, containing the calendar and other controls -->
+		<t:div style="position: absolute; left: 5px; top: 5px; width: 210px; overflow: auto">
+			<h:panelGrid columns="1">
+				<t:inputCalendar id="scheduleNavigator"
+					value="#{bindingScheduleHandler.model.selectedDate}" />
+				<h:commandButton
+					actionListener="#{bindingScheduleHandler.addSampleEntries}"
+					value="add sample entries" />
+				<h:commandButton
+					actionListener="#{bindingScheduleHandler.addSampleHoliday}"
+					value="add sample holiday" />
+			</h:panelGrid>
+		    <%@include file="/inc/page_footer.jsp" %>
+		    <jsp:include page="inc/mbean_source.jsp"/>
+		</t:div>
+	</h:form>
+</f:view>
+</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_addentry.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_addentry.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_addentry.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_addentry.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,62 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<html>
+<%@include file="/inc/head.inc"%>
+<body>
+<f:view>
+	<h:form>
+		<t:htmlTag value="h3">Add entry</t:htmlTag>
+		<h:messages tooltip="true" layout="table" globalOnly="true" />
+		<h:panelGrid columns="3">
+			<h:outputLabel for="from" value="from:" />
+			<t:inputDate id="from" value="#{addEntryHandler.from}" type="both"
+				required="true" popupCalendar="true"/>
+			<h:message for="from" />
+			<h:outputLabel for="until" value="until:" />
+			<t:inputDate id="until" value="#{addEntryHandler.until}" type="both"
+				required="true" popupCalendar="true"/>
+			<h:message for="until" />
+			<h:outputLabel for="title" value="title:" />
+			<h:inputText id="title" value="#{addEntryHandler.title}" required="true" />
+			<h:message for="title" />
+			<h:outputLabel for="location" value="location:" />
+			<h:inputText id="location" value="#{addEntryHandler.location}" />
+			<h:message for="location" />
+			<h:outputLabel for="comments" value="comments:" />
+			<h:inputTextarea id="comments" value="#{addEntryHandler.comments}" />
+			<h:message for="comments" />
+		</h:panelGrid>
+		<h:panelGrid columns="2">
+			<h:commandButton action="#{addEntryHandler.add}" value="add" />
+			<h:commandButton action="cancel" value="cancel" immediate="true"/>
+		</h:panelGrid>
+	</h:form>
+<%@include file="/inc/page_footer.jsp"%>
+<jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_editsettings.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_editsettings.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_editsettings.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/schedule_editsettings.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,124 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<html>
+<%@include file="/inc/head.inc"%>
+<body>
+<f:view>
+	<h:form>
+		<t:htmlTag value="h3">Edit settings</t:htmlTag>
+		<h:messages tooltip="true" layout="table" globalOnly="false" />
+		<h:panelGrid columns="3">
+			<h:outputLabel for="mode" value="Display mode:" />
+			<h:selectOneRadio id="mode" value="#{scheduleSettings2.mode}">
+				<f:selectItem itemValue="0" itemLabel="day"/>
+				<f:selectItem itemValue="1" itemLabel="workweek"/>
+				<f:selectItem itemValue="2" itemLabel="week" />
+				<f:selectItem itemValue="3" itemLabel="month" />
+			</h:selectOneRadio>
+			<h:message for="mode" />
+			<h:outputLabel for="visibleStartHour" value="Display from:" />
+			<h:inputText id="visibleStartHour"
+				value="#{scheduleSettings2.visibleStartHour}" required="true">
+				<f:validateLongRange minimum="0" maximum="11" />
+			</h:inputText>
+			<h:message for="visibleStartHour" />
+			<h:outputLabel for="visibleEndHour" value="Display until:" />
+			<h:inputText id="visibleEndHour"
+				value="#{scheduleSettings2.visibleEndHour}" required="true">
+				<f:validateLongRange minimum="13" maximum="24" />
+			</h:inputText>
+			<h:message for="visibleEndHour" />
+			<h:outputLabel for="workingStartHour" value="Working day starts at:" />
+			<h:inputText id="workingStartHour"
+				value="#{scheduleSettings2.workingStartHour}" required="true">
+				<f:validateLongRange minimum="7" maximum="11" />
+			</h:inputText>
+			<h:message for="workingStartHour" />
+			<h:outputLabel for="workingEndHour" value="Working day ends at:" />
+			<h:inputText id="workingEndHour"
+				value="#{scheduleSettings2.workingEndHour}" required="true">
+				<f:validateLongRange minimum="15" maximum="22" />
+			</h:inputText>
+			<h:message for="workingEndHour" />
+			<h:outputLabel for="readonly" value="Schedule is read only:" />
+			<h:selectBooleanCheckbox id="readonly"
+				value="#{scheduleSettings2.readonly}" required="true" />
+			<h:message for="readonly" />
+			<h:outputLabel for="tooltip" value="Show tooltips:" />
+			<h:selectBooleanCheckbox id="tooltip"
+				value="#{scheduleSettings2.tooltip}" required="true" />
+			<h:message for="tooltip" />
+			<h:outputLabel for="renderZeroLength" value="Render zero length entries" />
+			<h:selectBooleanCheckbox id="renderZeroLength"
+				value="#{scheduleSettings2.renderZeroLength}" required="true" />
+			<h:message for="renderZeroLength" />
+			<h:outputLabel for="expandToFitEntries" value="Expand to fit entries" />
+			<h:selectBooleanCheckbox id="expandToFitEntries"
+				value="#{scheduleSettings2.expandToFitEntries}" required="true" />
+			<h:message for="expandToFitEntries" />
+			<h:outputLabel for="theme" value="Theme:" />
+			<h:selectOneRadio id="theme" value="#{scheduleSettings2.theme}"
+				required="true">
+				<f:selectItems value="#{scheduleThemeChoices}" />
+			</h:selectOneRadio>
+			<h:message for="theme" />
+			<h:outputLabel for="headerDateFormat" value="Header date format:" />
+			<h:inputText id="headerDateFormat"
+				value="#{scheduleSettings2.headerDateFormat}" required="true" />
+			<h:message for="headerDateFormat" />
+			<h:outputLabel for="compactWeekRowHeight"
+				value="Row height in week mode:" />
+			<h:inputText id="compactWeekRowHeight"
+				value="#{scheduleSettings2.compactWeekRowHeight}" required="true">
+				<f:validateLongRange minimum="100" maximum="300" />
+			</h:inputText>
+			<h:message for="compactWeekRowHeight" />
+			<h:outputLabel for="compactMonthRowHeight"
+				value="Row height in month mode:" />
+			<h:inputText id="compactMonthRowHeight"
+				value="#{scheduleSettings2.compactMonthRowHeight}" required="true">
+				<f:validateLongRange minimum="50" maximum="150" />
+			</h:inputText>
+			<h:message for="compactMonthRowHeight" />
+			<h:outputLabel for="detailedRowHeight"
+				value="Row height in detailed mode:" />
+			<h:inputText id="detailedRowHeight"
+				value="#{scheduleSettings2.detailedRowHeight}" required="true">
+				<f:validateLongRange minimum="22" maximum="50" />
+			</h:inputText>
+			<h:message for="detailedRowHeight" />
+		</h:panelGrid>
+		<h:panelGrid columns="2">
+			<h:commandButton action="#{scheduleSettings2.save}" value="save" />
+		</h:panelGrid>
+	</h:form>
+	<%@include file="/inc/page_footer.jsp"%>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,76 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <h:form>
+    
+        <h:outputText value ="List" />
+
+        <h:panelGrid columns="1">
+          <h:selectOneMenu id="menu1" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneMenu>
+          
+          <h:selectOneRadio id="radio1" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneRadio>
+          
+          <h:selectOneListbox id="list1" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneListbox>
+        </h:panelGrid>
+        
+        <h:outputText value ="Map" />
+        
+        <h:panelGrid columns="1">
+          <h:selectOneMenu id="menu2" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carMap}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneMenu>
+          
+          <h:selectOneRadio id="radio2" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carMap}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneRadio>
+          
+          <h:selectOneListbox id="list2" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carMap}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneListbox>
+        </h:panelGrid>
+
+        <h:commandButton value="GO!" action="doSomething"/>
+    </h:form>
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems_f.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems_f.xhtml?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems_f.xhtml (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectItems_f.xhtml Thu Jan 28 22:51:42 2010
@@ -0,0 +1,78 @@
+<?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 html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:t="http://myfaces.apache.org/tomahawk">
+<!-- <%@include file="inc/head.inc" %> -->
+<h:head>
+</h:head>
+<h:body>
+
+<f:view>
+
+    <h:form>
+    
+        <h:outputText value ="List" />
+
+        <h:panelGrid columns="1">
+          <h:selectOneMenu id="menu1" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneMenu>
+          
+          <h:selectOneRadio id="radio1" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneRadio>
+          
+          <h:selectOneListbox id="list1" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneListbox>
+        </h:panelGrid>
+        
+        <h:outputText value ="Map" />
+        
+        <h:panelGrid columns="1">
+          <h:selectOneMenu id="menu2" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carMap}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneMenu>
+
+          <h:selectOneRadio id="radio2" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carMap}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneRadio>
+          
+          <h:selectOneListbox id="list2" value="#{selectItemsBean.selectedCarColor}">
+              <t:selectItems value="#{selectItemsBean.carMap}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
+          </h:selectOneListbox>
+
+        </h:panelGrid>
+
+        <h:commandButton value="GO!" action="doSomething"/>
+    </h:form>
+</f:view>
+
+<!-- <%@include file="inc/page_footer.jsp" %> -->
+
+</h:body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneCountry.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneCountry.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneCountry.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneCountry.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,53 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:form>
+        <t:selectOneCountry value="#{countryForm.isoCode}" maxLength="25" onchange="this.form.submit();"/>
+        <f:verbatim><br/></f:verbatim>
+        <h:outputLabel for="countryCode" value="Code : "/>
+        <h:outputText id="countryCode" value="#{countryForm.isoCode}"/>
+        <f:verbatim><br/><br/></f:verbatim>
+        <h:commandButton value="Update"/>
+    </h:form>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneLanguage.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneLanguage.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneLanguage.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneLanguage.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,54 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:form>
+        <t:selectOneLanguage value="#{language.code}" maxLength="25" onchange="this.form.submit();"/>
+        <f:verbatim><br/></f:verbatim>
+        <h:outputLabel for="languageCode" value="Code : "/>
+        <h:outputText id="languageCode" value="#{language.code}"/>
+        <f:verbatim><br/><br/></f:verbatim>
+        <h:commandButton value="Update"/>
+    </h:form>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneRow.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneRow.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneRow.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectOneRow.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,144 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <h:form>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:panelGroup id="body">
+
+        <t:dataTable id="data"
+                styleClass="scrollerTable"
+                headerClass="standardTable_Header"
+                footerClass="standardTable_Header"
+                rowClasses="standardTable_Row1,standardTable_Row2"
+                columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
+                var="car"
+                value="#{selectOneRowList.list}"
+                preserveDataModel="false"
+                rows="10"
+           >
+           <h:column>
+               <f:facet name="header">
+                   <h:outputText value="Select"/>
+               </f:facet>
+               <t:selectOneRow  groupName="selection" id="hugo" value="#{selectOneRowList.selectedRowIndex}"
+                       onchange="submit();" immediate="true"
+                       valueChangeListener="#{selectOneRowList.processRowSelection}"/>
+           </h:column>
+           <h:column>
+               <f:facet name="header">
+               </f:facet>
+               <h:outputText value="#{car.id}" />
+           </h:column>
+
+           <h:column>
+               <f:facet name="header">
+                  <h:outputText value="Cars" />
+               </f:facet>
+               <h:outputText value="#{car.type}" />
+           </h:column>
+
+           <h:column>
+               <f:facet name="header">
+                  <h:outputText value="Color" />
+               </f:facet>
+               <h:outputText value="#{car.color}" />
+           </h:column>
+
+        </t:dataTable>
+
+        <h:panelGrid columns="1" styleClass="scrollerTable2" columnClasses="standardTable_ColumnCentered" >
+            <t:dataScroller id="scroll_1"
+                    for="data"
+                    fastStep="10"
+                    pageCountVar="pageCount"
+                    pageIndexVar="pageIndex"
+                    styleClass="scroller"
+                    paginator="true"
+                    paginatorMaxPages="9"
+                    paginatorTableClass="paginator"
+                    paginatorActiveColumnStyle="font-weight:bold;"
+                    actionListener="#{selectOneRowList.scrollerAction}"
+                    >
+                <f:facet name="first" >
+                    <h:outputText value="First" />
+                </f:facet>
+                <f:facet name="last">
+                    <h:outputText value="Last" />
+                </f:facet>
+                <f:facet name="previous">
+                    <h:outputText value="Prev" />
+                </f:facet>
+                <f:facet name="next">
+                    <h:outputText value="Next" />
+                </f:facet>
+                <f:facet name="fastforward">
+                    <h:outputText value="FFW" />
+                </f:facet>
+                <f:facet name="fastrewind">
+                    <h:outputText value="FRW" />
+                </f:facet>
+            </t:dataScroller>
+            <t:dataScroller id="scroll_2"
+                    for="data"
+                    rowsCountVar="rowsCount"
+                    displayedRowsCountVar="displayedRowsCountVar"
+                    firstRowIndexVar="firstRowIndex"
+                    lastRowIndexVar="lastRowIndex"
+                    pageCountVar="pageCount"
+                    immediate="true"
+                    pageIndexVar="pageIndex"
+                    >
+                <h:outputFormat value="#{example_messages['dataScroller_pages']}" styleClass="standard" >
+                    <f:param value="#{rowsCount}" />
+                    <f:param value="#{displayedRowsCountVar}" />
+                    <f:param value="#{firstRowIndex}" />
+                    <f:param value="#{lastRowIndex}" />
+                    <f:param value="#{pageIndex}" />
+                    <f:param value="#{pageCount}" />
+                </h:outputFormat>
+            </t:dataScroller>
+            <h:outputText value="#{selectOneRowList.selectionMessage}" />
+            <h:commandButton value="Select" />
+        </h:panelGrid>
+
+    </h:panelGroup>
+    </h:form>
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectbox.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectbox.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectbox.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/selectbox.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,142 @@
+<%@ page import="java.math.BigDecimal,
+                 java.util.Date"%>
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <t:saveState value="#{carconf}"/>
+
+    <t:messages id="messageList" styleClass="error" showDetail="true" summaryFormat="{0} "/>
+
+    <h:form>
+
+        <h:panelGrid columns="2">
+
+            <h:outputLabel for="selone_lb" value="#{example_messages['label_cars']}" />
+            <h:selectOneListbox id="selone_lb" size="3" value="#{carconf.car}"
+                                validator="#{carconf.validateCar}" styleClass="selectOneListbox" required="true" >
+                <f:selectItems id="selone_lb_cars" value="#{carconf.cars}" />
+            </h:selectOneListbox>
+
+            <h:outputLabel for="selone_menu_colors" value="#{example_messages['label_colors']}" />
+            <h:selectOneMenu id="selone_menu_colors" value="#{carconf.color}"
+                             styleClass="selectOneMenu" required="true" converter="#{carconf.colorConverter}">
+                <f:selectItem itemValue="" itemLabel="#{example_messages['empty_selitem']}" />
+                <f:selectItems value="#{carconf.colors}" />
+            </h:selectOneMenu>
+
+            <h:outputLabel for="selmany_menu_colors" value="#{example_messages['label_interior_color']}" />
+            <h:selectManyListbox id="selmany_menu_colors" value="#{carconf.interiorColors}"
+                             styleClass="selectOneMenu" required="true" converter="#{carconf.colorConverter}">
+                <f:selectItems value="#{carconf.colors}" />
+            </h:selectManyListbox>
+
+            <h:outputLabel for="selone_menu_extras" value="#{example_messages['label_extras']}" />
+            <h:selectManyCheckbox id="selone_menu_extras" value="#{carconf.extras}" layout="pageDirection" styleClass="selectManyCheckbox">
+                <f:selectItems value="#{carconf.extrasList}" />
+            </h:selectManyCheckbox>
+
+            <f:verbatim>&nbsp;</f:verbatim>
+            <h:panelGroup >
+                <h:selectOneRadio id="r1" value="#{carconf.discount}" layout="pageDirection"  styleClass="selectOneRadio">
+                    <f:selectItem itemValue="1" itemLabel="#{example_messages['discount_0']}" />
+                    <f:selectItem itemValue="2" itemLabel="#{example_messages['discount_1']}"  />
+                    <f:selectItem itemValue="3" itemLabel="#{example_messages['discount_2']}"  />
+                </h:selectOneRadio>
+            </h:panelGroup>
+
+            <h:panelGroup ></h:panelGroup>
+            <h:panelGroup ></h:panelGroup>
+
+            <f:verbatim>&nbsp;</f:verbatim>
+            <h:panelGrid columns="1"  >
+                <%/* t:selectOneRadio is an extension of h:selectOneRadio
+                       if layout="spread" selectitems wont get rendered
+                       instead t:radio components are getting rendered
+                */%>
+                <t:selectOneRadio id="discount2" value="#{carconf.discount2}" layout="spread" styleClass="selectOneRadio">
+                    <f:selectItem itemValue="0" itemLabel="#{example_messages['discount_2_0']}" />
+                    <f:selectItem itemValue="1" itemLabel="#{example_messages['discount_2_1']}" />
+                    <f:selectItem itemValue="2" itemLabel="#{example_messages['discount_2_2']}" />
+                </t:selectOneRadio>
+                <h:panelGroup>
+                    <t:radio for="discount2" index="2" /><f:verbatim>&nbsp;</f:verbatim>
+                    <h:inputText value="#{carconf.bandName}" />
+                </h:panelGroup>
+                <%/* t:radio is a myfaces extension. renders the selectItem at the
+                     given index (starting with 0). the for attribute must be the id
+                     of the corresponding t:selectOneRadio */%>
+                <t:radio for="discount2" index="0" />
+                <t:radio for="discount2" index="1" />
+
+            </h:panelGrid>
+
+            <h:outputLabel for="doors" value="#{example_messages['doors']}" />
+            <h:selectOneMenu id="doors" value="#{carconf.doors}">
+                    <f:selectItem itemValue="#{2}" itemLabel="2" />
+                    <f:selectItem itemValue="#{4}" itemLabel="4" />
+                    <f:selectItem itemValue="#{7}" itemLabel="7" />
+            </h:selectOneMenu>
+
+            <h:outputLabel for="selboolean" value="#{example_messages['sales_tax']}" />
+            <h:selectBooleanCheckbox id="selboolean" value="#{carconf.salesTax}"/>
+
+            <f:verbatim>&nbsp;</f:verbatim>
+            <h:commandButton action="#{carconf.calcPrice}" value="#{example_messages['button_calcprice']}" />
+
+        </h:panelGrid>
+    </h:form>
+
+    <h:outputFormat value="#{example_messages['msg_price']}" >
+        <f:param value="#{carconf.price}" />
+    </h:outputFormat>
+
+    <h:dataTable var="interiorColor" value="#{carconf.interiorColors}">
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="#{example_messages.label_interior_color}"/>
+            </f:facet>
+            <h:outputText value="#{example_messages[interiorColor.color]}"/>
+        </h:column>
+    </h:dataTable>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/simpleGroupBy.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/simpleGroupBy.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/simpleGroupBy.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/simpleGroupBy.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,72 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+        <t:dataTable id="data"
+                style="border-collapse:collapse;"
+                styleClass="standardTable"
+                headerClass="standardTable_Header"
+                footerClass="standardTable_Header"
+                rowClasses="standardTable_Row1,standardTable_Row2"
+                var="demo"
+                value="#{simpleGroupBy.demoList}"
+                preserveDataModel="true"
+                rowGroupStyle="border-bottom:blue;border-bottom-style:solid;border-bottom-width:2px;vertical-align:top"
+                rowGroupStyleClass="testclass">
+           <t:column groupBy="true">
+               <f:facet name="header">
+                  <h:outputText value="Groups" />
+               </f:facet>
+                    <h:outputText value="#{demo.value1}" />
+           </t:column>
+
+           <t:column>
+               <f:facet name="header">
+                  <h:outputText value="Items" />
+               </f:facet>
+               <h:outputText value="#{demo.value2}" />
+           </t:column>
+
+
+        </t:dataTable>
+
+        <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,83 @@
+
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:form>    
+        <t:dataTable id="data"
+                styleClass="standardTable"            
+                headerClass="standardTable_SortHeader"
+                footerClass="standardTable_Footer"
+                rowClasses="standardTable_Row1,standardTable_Row2"
+                var="car"                      
+                sortable="true"                       
+                value="#{autosortlist.cars}"                 
+                sortColumn="#{autosortlist.sortColumn}" 
+                sortAscending="#{autosortlist.sortAscending}"
+                preserveDataModel="true"
+                preserveSort="true">
+
+            <t:column defaultSorted="true">
+                <f:facet name="header">  
+                    <h:outputText value="ID" />                
+                </f:facet>
+                <h:outputText value="#{car.id}" />            
+            </t:column>
+
+            <t:column>
+                <f:facet name="header">  
+                    <h:outputText value="#{example_messages['sort_cartype']}" />                
+                </f:facet>
+                <h:outputText value="#{car.type}" />            
+            </t:column>
+
+            <t:column>
+                <f:facet name="header">
+                    <h:outputText value="#{example_messages['sort_carcolor']}" />                
+                </f:facet>
+                <h:outputText value="#{car.color}" />            
+            </t:column>
+
+        </t:dataTable>           
+    </h:form>     
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable2.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable2.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable2.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortAutoTable2.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,81 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+    
+    <h:form>
+        <t:dataTable id="data"
+                styleClass="standardTable"            
+                headerClass="standardTable_SortHeader"
+                footerClass="standardTable_Footer"
+                rowClasses="standardTable_Row1,standardTable_Row2"
+                var="car"                                                        
+                value="#{autosortlist.cars}"                 
+                sortColumn="#{autosortlist.sortColumn}" 
+                sortAscending="#{autosortlist.sortAscending}"
+                preserveDataModel="true"
+                preserveSort="true">
+
+            <t:column sortable="true" defaultSorted="true">
+                <f:facet name="header">  
+                    <h:outputText value="ID" />                
+                </f:facet>
+                <h:outputText value="#{car.id}" />            
+            </t:column>
+
+            <t:column>
+                <f:facet name="header">  
+                    <h:outputText value="#{example_messages['sort_cartype']}" />                                
+                </f:facet>
+                <h:outputText value="#{car.type}" />            
+            </t:column>
+
+            <t:column sortable="true">
+                <f:facet name="header">
+                    <h:outputText value="#{example_messages['sort_carcolor']}" />                
+                </f:facet>
+                <h:outputText value="#{car.color}" />            
+            </t:column>
+
+        </t:dataTable>      
+    </h:form>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortTable.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortTable.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortTable.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/sortTable.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,90 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:form>
+        <t:dataTable styleClass="standardTable"
+                headerClass="standardTable_SortHeader"
+                footerClass="standardTable_Footer"
+                rowClasses="standardTable_Row1,standardTable_Row2"
+                var="car"
+                value="#{list.cars}"
+                sortColumn="#{list.sort}"
+                sortAscending="#{list.ascending}"
+                preserveDataModel="true"
+                preserveSort="true">
+
+            <f:facet name="header">
+                <h:outputText value="(header table)"  />
+            </f:facet>
+            <f:facet name="footer">
+                <h:outputText value="(footer table)"  />
+            </f:facet>
+
+            <h:column>
+                <f:facet name="header">
+                    <t:commandSortHeader columnName="type" arrow="true">
+                        <h:outputText value="#{example_messages['sort_cartype']}" />
+                    </t:commandSortHeader>
+                </f:facet>
+                <h:outputText value="#{car.type}" />
+                <f:facet name="footer">
+                    <h:outputText id="ftr1" value="(footer col1)"  />
+                </f:facet>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <t:commandSortHeader columnName="color" arrow="true">
+                        <h:outputText value="#{example_messages['sort_carcolor']}" />
+                    </t:commandSortHeader>
+                </f:facet>
+                <h:outputText value="#{car.color}" />
+                <f:facet name="footer">
+                    <h:outputText id="ftr2" value="(footer col2)"  />
+                </f:facet>
+            </h:column>
+
+        </t:dataTable>
+    </h:form>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>