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 [7/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/apac...

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/contact.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/contact.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/contact.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/contact.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,77 @@
+<%@ 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:panelLayout id="page" layout="#{globalOptions.pageLayout}"
+            styleClass="pageLayout"
+            headerClass="pageHeader"
+            navigationClass="pageNavigation"
+            bodyClass="pageBody"
+            footerClass="pageFooter" >
+
+        <f:facet name="header">
+            <f:subview id="header">
+                <jsp:include page="inc/page_header.jsp" />
+            </f:subview>
+        </f:facet>
+
+        <f:facet name="navigation">
+            <f:subview id="menu" >
+                <jsp:include page="inc/navigation.jsp" />
+            </f:subview>
+        </f:facet>
+
+        <f:facet name="body">
+            <h:panelGroup id="body">
+                <f:verbatim>
+                    <h3>Webpages</h3>
+                     <a href="http://myfaces.apache.org/" target="_blank">Project Homepage</a><br>
+                     <a href="http://www.apache.org" target="_blank">Apache Software Foundation</a><br>
+                    <h3>Project Members</h3>
+                     <a href="http://myfaces.apache.org/community/whoweare.html">MyFaces Team Members</a><br>
+                </f:verbatim>
+            </h:panelGroup>
+        </f:facet>
+
+        <%@include file="inc/page_footer.jsp" %>
+
+    </t:panelLayout>
+
+</f:view>
+
+</body>
+
+</html>
\ No newline at end of file

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/copyright.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/copyright.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/copyright.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/copyright.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,89 @@
+<%@ 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:panelLayout  id="page" layout="#{globalOptions.pageLayout}"
+            styleClass="pageLayout"
+            headerClass="pageHeader"
+            navigationClass="pageNavigation"
+            bodyClass="pageBody"
+            footerClass="pageFooter" >
+
+        <f:facet name="header">
+            <f:subview id="header">
+                <jsp:include page="inc/page_header.jsp" />
+            </f:subview>
+        </f:facet>
+
+        <f:facet name="navigation">
+            <f:subview id="menu" >
+                <jsp:include page="inc/navigation.jsp" />
+            </f:subview>
+        </f:facet>
+
+        <f:facet name="body">
+            <h:panelGroup id="body">
+                <f:verbatim>
+<p>
+<h4>Copyright 2004 The Apache Software Foundation.</h4>
+<p>
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+<p>
+You may obtain a copy of the License at
+<p>
+<a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>
+<p>
+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.
+<p>
+
+                </f:verbatim>
+            </h:panelGroup>
+        </f:facet>
+
+        <%@include file="inc/page_footer.jsp" %>
+
+    </t:panelLayout>
+
+</f:view>
+
+</body>
+
+</html>
\ No newline at end of file

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryForm.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryForm.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryForm.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryForm.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,87 @@
+<%@ 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:panelGroup>
+        <h:form id="countryForm">
+            <t:saveState value="#{countryForm.id}" />
+            <h:panelGrid columns="2" styleClass="countryFormTable"
+                         headerClass="countryFormHeader"
+                         footerClass="countryFormFooter"
+                         columnClasses="countryFormLabels, countryFormInputs" >
+                <f:facet name="header">
+                    <h:outputText id="cfH" value="(Country Form Header)"/>
+                </f:facet>
+                <f:facet name="footer">
+                    <h:outputText value="(Country Form Footer)"/>
+                </f:facet>
+
+                <h:outputLabel for="name" value="#{example_messages['label_country_name']}"/>
+                <h:panelGroup>
+                    <h:inputText id="name" value="#{countryForm.name}" required="true" />
+                    <t:message for="name" styleClass="error" showDetail="true" showSummary="false" />
+                </h:panelGroup>
+
+                <h:outputLabel for="isoCode" value="#{example_messages['label_country_iso']}"/>
+                <h:panelGroup>
+                    <h:inputText id="isoCode" value="#{countryForm.isoCode}" required="true">
+                        <f:validateLength maximum="2" minimum="2"/>
+                    </h:inputText>
+                    <t:message for="isoCode" styleClass="error" showDetail="true" showSummary="false" />
+                </h:panelGroup>
+
+                <h:panelGroup/>
+                <h:panelGroup>
+                    <h:commandButton action="#{countryForm.save}" value="#{example_messages['button_save']}" />
+                    <f:verbatim>&nbsp;</f:verbatim>
+                    <h:commandButton action="cancel" immediate="true" value="#{example_messages['button_cancel']}" />
+                    <f:verbatim>&nbsp;</f:verbatim>
+                    <h:commandButton action="#{countryForm.delete}" immediate="true" value="#{example_messages['button_delete']}" />
+                    <f:verbatim>&nbsp;</f:verbatim>
+                    <h:commandButton action="#{countryForm.apply}" value="#{example_messages['button_apply']}" />
+                </h:panelGroup>
+
+            </h:panelGrid>
+        </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/countryTableForm.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryTableForm.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryTableForm.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/countryTableForm.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,135 @@
+<%@ 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:panelGroup id="body">
+
+        <h:form id="form" style="display:inline" >
+
+        <t:messages errorClass="error" showSummary="true" showDetail="true" />
+
+        <t:dataTable id="data"
+                styleClass="standardTable"
+                headerClass="standardTable_Header"
+                rowClasses="standardTable_Row1,standardTable_Row2"
+                columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
+                var="country"
+                value="#{countryList.countries}"
+                preserveDataModel="true">
+           <h:column>
+               <f:facet name="header">
+                  <h:panelGroup>
+                    <h:outputText value="#{example_messages['label_country_name']}" />
+                    <h:outputText value="*" style="color:red;"/>
+                  </h:panelGroup>
+               </f:facet>
+               <h:inputText id="cname" value="#{country.name}" required="true" />
+           </h:column>
+
+           <h:column>
+               <f:facet name="header">
+                <h:panelGroup>
+                    <h:outputText value="#{example_messages['label_country_iso']}" />
+                    <h:outputText value="*" style="color:red;"/>
+                </h:panelGroup>
+               </f:facet>
+               <h:inputText id="ciso" value="#{country.isoCode}" required="true" >
+                        <f:validateLength maximum="2" minimum="2"/>
+               </h:inputText>
+
+           </h:column>
+
+           <h:column>
+               <f:facet name="header">
+                  <h:outputText value="#{example_messages['label_country_cities']}" />
+               </f:facet>
+                <t:dataTable id="cities"
+                        styleClass="standardTable_Column"
+                        var="city"
+                        value="#{country.cities}"
+                        preserveDataModel="false" 
+                		>
+                   <h:column>
+                   	   <f:facet name="header">
+	               	     <h:outputText value="#{example_messages['label_city']}"/>
+                   	   </f:facet>
+                       <h:inputText value="#{city.name}" style="font-size: 11px" >
+                         <f:validateLength maximum="20"/>
+                       </h:inputText>
+                       <f:facet name="footer">
+                       	 <h:commandButton value="#{example_messages['label_country_city_add']}" action="#{country.addCity}"/>
+                       </f:facet>
+                   </h:column>
+                   <h:column>
+                       	 <h:commandButton value="#{example_messages['label_country_city_delete']}" actionListener="#{country.deleteCity}"/>
+                   </h:column>
+                </t:dataTable>
+           </h:column>
+
+           <h:column>
+                <h:selectBooleanCheckbox value="#{country.remove}"/>
+           </h:column>
+
+           <h:column>
+                <t:commandLink value="#{example_messages['button_delete']}" actionListener="#{countryList.deleteCountry}" />
+           </h:column>
+
+           <f:facet name="footer">
+                <h:panelGrid columns="1" >
+                <t:commandLink value="#{example_messages['new_country']}" action="#{countryList.addCountry}"   />
+                <h:panelGroup><f:verbatim>&nbsp;</f:verbatim></h:panelGroup>
+                <h:panelGroup>
+                    <h:commandButton action="go_back" value="#{example_messages['button_save']}" />
+                    <f:verbatim>&nbsp;</f:verbatim>
+                    <h:commandButton action="go_back" immediate="true" value="#{example_messages['button_cancel']}" />
+                    <f:verbatim>&nbsp;</f:verbatim>
+                    <h:commandButton value="#{example_messages['button_apply']}" />
+                </h:panelGroup>
+                </h:panelGrid>
+           </f:facet>
+
+        </t:dataTable>
+        </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/crossDataTable.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/crossDataTable.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/crossDataTable.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/crossDataTable.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,112 @@
+<%@ 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:
+    countryList
+-->
+
+<f:view>
+
+	<f:loadBundle
+		basename="org.apache.myfaces.examples.resource.example_messages"
+		var="example_messages" />
+
+    <h:form>
+    <h:panelGroup id="body">
+
+        <h:panelGrid columns="1">
+            <h:commandLink rendered="#{!crossDataTable.editValues}" action="#{crossDataTable.editValues}"
+                immediate="true">
+                <h:outputText value="#{example_messages['country_edit_table']}"
+                    styleClass="standard" />
+            </h:commandLink>
+            <h:panelGrid rendered="#{!crossDataTable.editValues}" columns="3">
+                <h:outputLabel for="columnLabel" value="#{example_messages['crosstable_field_column']}"/>
+                <h:inputText id="columnLabel" value="#{crossDataTable.columnLabel}" />
+                <h:commandLink action="#{crossDataTable.addColumn}">
+                    <h:outputText value="#{example_messages['crosstable_add_column']}"
+                        styleClass="standard" />
+                </h:commandLink>
+            </h:panelGrid>
+            <h:commandLink rendered="#{crossDataTable.editValues}" action="#{crossDataTable.saveValues}">
+                <h:outputText value="#{example_messages['crosstable_save_values']}"
+                    styleClass="standard" />
+            </h:commandLink>
+        </h:panelGrid>
+        <f:verbatim>
+            <br>
+        </f:verbatim>
+
+        <t:dataTable id="data" styleClass="standardTable"
+            headerClass="standardTable_Header"
+            footerClass="standardTable_Header"
+            rowClasses="standardTable_Row1,standardTable_Row2"
+            columnClasses="standardTable_Column" var="country"
+            value="#{crossDataTable.countryDataModel}" preserveDataModel="false">
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="#{example_messages['label_country_name']}" />
+                </f:facet>
+                <h:outputText value="#{country.name}" />
+            </h:column>
+
+            <t:columns value="#{crossDataTable.columnDataModel}" var="column">
+                <f:facet name="header">
+                    <h:panelGroup>
+                        <h:outputText value="#{column} " />
+                        <h:commandLink action="#{crossDataTable.removeColumn}">
+                            <h:outputText value="-" title="#{example_messages['crosstable_remove_column']}" />
+                        </h:commandLink>
+                    </h:panelGroup>
+                </f:facet>
+                <h:outputText rendered="#{!crossDataTable.editValues}"
+                    value="#{crossDataTable.columnValue}" />
+                <h:inputText rendered="#{crossDataTable.editValues}"
+                    value="#{crossDataTable.columnValue}" />
+            </t:columns>
+
+        </t:dataTable>
+
+        <f:verbatim>
+            <br>
+        </f:verbatim>
+
+    </h:panelGroup>
+    </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/css.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,48 @@
+<%@ 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>
+
+<%-- Unnecessary, as we define head below --%>
+<%-- <%@include file="inc/head.inc" %> --%>
+
+<f:view>
+    <head>
+        <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
+        <title>MyFaces - the free JSF Implementation</title>
+        <t:stylesheet path="/css/basic.css"/>
+    </head>
+
+    <body>
+
+        <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+        <h:outputText value="#{example_messages['css_msg']}"/><code>stylesheet</code>-Component<br />
+        <a href='http://myfaces.apache.org'>The MyFaces-Team</a>.
+
+         <jsp:include page="inc/mbean_source.jsp"/>
+
+        <%@include file="inc/page_footer.jsp" %>
+
+    </body>
+</f:view>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/common.css
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/common.css?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/common.css (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/common.css Thu Jan 28 22:51:42 2010
@@ -0,0 +1,34 @@
+body {
+    font-family: Verdana, Arial, Helvetica, sans-serif;
+    font-size: 12px;
+    font-weight: normal;
+    color: #000000;
+    background-color: #ffffff;
+}
+
+h1 {
+    font-family: Verdana, Arial, Helvetica, sans-serif;
+    font-size: 24px;
+}
+
+h2 {
+    font-family: Verdana, Arial, Helvetica, sans-serif;
+    font-size: 16px;
+}
+
+a, a:link, a:visited, a:active {
+    color: #000000;
+    background-color: inherit;
+}
+
+a:hover {
+    color: #ff0000;
+    background-color: inherit;
+}
+
+hr {
+    height: 1px;
+    border-style: dotted;
+    border-color: #000000;
+    border-width: 0px 0px 1px 0px;
+}
\ No newline at end of file

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css Thu Jan 28 22:51:42 2010
@@ -0,0 +1,292 @@
+/* ThemeOfficeMenu Style Sheet */
+
+.ThemeOfficeMenu,.ThemeOfficeSubMenuTable
+{
+	font-family:	verdana, arial, sans-serif;
+	font-size:	13px;
+
+	padding:	0;
+
+	white-space:	nowrap;
+	cursor:		default;
+}
+
+.ThemeOfficeSubMenu
+{
+	position:	absolute;
+	visibility:	hidden;
+
+	/*
+	   Netscape/Mozilla renders borders by increasing
+	   their z-index.  The following line is necessary
+	   to cover any borders underneath
+	*/
+	z-index:	100;
+	border:		0;
+	padding:	0;
+
+	overflow:	visible;
+	border:		1px solid #8C867B;
+
+	filter:progid:DXImageTransform.Microsoft.Shadow(color=#BDC3BD, Direction=135, Strength=4);
+}
+
+.ThemeOfficeSubMenuTable
+{
+	overflow:	visible;
+}
+
+.ThemeOfficeMainItem,.ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive,
+.ThemeOfficeMenuItem,.ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive
+{
+	border:		0;
+	cursor:		default;
+	white-space:	nowrap;
+}
+
+.ThemeOfficeMainItem
+{
+	background-color:	#EFEBDE;
+}
+
+.ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive
+{
+	background-color:	#C6D3EF;
+}
+
+.ThemeOfficeMenuItem
+{
+	background-color:	WHITE;
+}
+
+.ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive
+{
+	background-color:	#C6D3EF;
+}
+
+
+/* horizontal main menu */
+
+.ThemeOfficeMainItem
+{
+	padding:	1px;
+	border:		0;
+}
+
+td.ThemeOfficeMainItemHover,td.ThemeOfficeMainItemActive
+{
+	padding:	0px;
+	border:		1px solid #3169C6;
+}
+
+.ThemeOfficeMainFolderLeft,.ThemeOfficeMainItemLeft,
+.ThemeOfficeMainFolderText,.ThemeOfficeMainItemText,
+.ThemeOfficeMainFolderRight,.ThemeOfficeMainItemRight
+{
+	background-color:	inherit;
+}
+
+/* vertical main menu sub components */
+
+td.ThemeOfficeMainFolderLeft,td.ThemeOfficeMainItemLeft
+{
+	padding-top:	2px;
+	padding-bottom:	2px;
+	padding-left:	0px;
+	padding-right:	2px;
+
+	border-top:	1px solid #3169C6;
+	border-bottom:	1px solid #3169C6;
+	border-left:	1px solid #3169C6;
+
+	background-color:	inherit;
+}
+
+td.ThemeOfficeMainFolderText,td.ThemeOfficeMainItemText
+{
+	padding-top:	2px;
+	padding-bottom:	2px;
+	padding-left:	5px;
+	padding-right:	5px;
+
+	border-top:	1px solid #3169C6;
+	border-bottom:	1px solid #3169C6;
+
+	background-color:	inherit;
+	white-space:	nowrap;
+}
+
+td.ThemeOfficeMainFolderRight,td.ThemeOfficeMainItemRight
+{
+	padding-top:	2px;
+	padding-bottom:	2px;
+	padding-left:	0px;
+	padding-right:	0px;
+
+	border-top:	1px solid #3169C6;
+	border-bottom:	1px solid #3169C6;
+	border-right:	1px solid #3169C6;
+
+	background-color:	inherit;
+}
+
+tr.ThemeOfficeMainItem td.ThemeOfficeMainFolderLeft,
+tr.ThemeOfficeMainItem td.ThemeOfficeMainItemLeft
+{
+	padding-top:	3px;
+	padding-bottom:	3px;
+	padding-left:	1px;
+	padding-right:	2px;
+
+	white-space:	nowrap;
+
+	border:		0;
+	background-color:	inherit;
+}
+
+tr.ThemeOfficeMainItem td.ThemeOfficeMainFolderText,
+tr.ThemeOfficeMainItem td.ThemeOfficeMainItemText
+{
+	padding-top:	3px;
+	padding-bottom:	3px;
+	padding-left:	5px;
+	padding-right:	5px;
+
+	border:		0;
+	background-color:	inherit;
+}
+
+tr.ThemeOfficeMainItem td.ThemeOfficeMainItemRight,
+tr.ThemeOfficeMainItem td.ThemeOfficeMainFolderRight
+{
+	padding-top:	3px;
+	padding-bottom:	3px;
+	padding-left:	0px;
+	padding-right:	1px;
+
+	border:		0;
+	background-color:	inherit;
+}
+
+/* sub menu sub components */
+
+.ThemeOfficeMenuFolderLeft,.ThemeOfficeMenuItemLeft
+{
+	padding-top:	2px;
+	padding-bottom:	2px;
+	padding-left:	1px;
+	padding-right:	3px;
+
+	border-top:	1px solid #3169C6;
+	border-bottom:	1px solid #3169C6;
+	border-left:	1px solid #3169C6;
+
+	background-color:	inherit;
+	white-space:	nowrap;
+}
+
+.ThemeOfficeMenuFolderText,.ThemeOfficeMenuItemText
+{
+	padding-top:	2px;
+	padding-bottom:	2px;
+	padding-left:	5px;
+	padding-right:	5px;
+
+	border-top:	1px solid #3169C6;
+	border-bottom:	1px solid #3169C6;
+
+	background-color:	inherit;
+	white-space:	nowrap;
+}
+
+.ThemeOfficeMenuFolderRight,.ThemeOfficeMenuItemRight
+{
+	padding-top:	2px;
+	padding-bottom:	2px;
+	padding-left:	0px;
+	padding-right:	0px;
+
+	border-top:	1px solid #3169C6;
+	border-bottom:	1px solid #3169C6;
+	border-right:	1px solid #3169C6;
+
+	background-color:	inherit;
+	white-space:	nowrap;
+}
+
+.ThemeOfficeMenuItem .ThemeOfficeMenuFolderLeft,
+.ThemeOfficeMenuItem .ThemeOfficeMenuItemLeft
+{
+	padding-top:	3px;
+	padding-bottom:	3px;
+	padding-left:	2px;
+	padding-right:	3px;
+
+	white-space:	nowrap;
+
+	border:		0;
+	background-color:	#EFEFDE;
+}
+
+.ThemeOfficeMenuItem .ThemeOfficeMenuFolderText,
+.ThemeOfficeMenuItem .ThemeOfficeMenuItemText
+{
+	padding-top:	3px;
+	padding-bottom:	3px;
+	padding-left:	5px;
+	padding-right:	5px;
+
+	border:		0;
+	background-color:	inherit;
+}
+
+.ThemeOfficeMenuItem .ThemeOfficeMenuFolderRight,
+.ThemeOfficeMenuItem .ThemeOfficeMenuItemRight
+{
+	padding-top:	3px;
+	padding-bottom:	3px;
+	padding-left:	0px;
+	padding-right:	1px;
+
+	border:		0;
+	background-color:	inherit;
+}
+
+/* menu splits */
+
+.ThemeOfficeMenuSplit
+{
+	margin:		2px;
+	height:		1px;
+	overflow:	hidden;
+	background-color:	inherit;
+	border-top:	1px solid #C6C3BD;
+}
+
+/* image shadow animation */
+
+/*
+	seq1:	image for normal
+	seq2:	image for hover and active
+
+	To use, in the icon field, input the following:
+	<img class="seq1" src="normal.gif" /><img class="seq2" src="hover.gif" />
+*/
+
+.ThemeOfficeMenuItem img.seq1
+{
+	display:	inline;
+}
+
+.ThemeOfficeMenuItemHover seq2,
+.ThemeOfficeMenuItemActive seq2
+{
+	display:	inline;
+}
+
+.ThemeOfficeMenuItem .seq2,
+.ThemeOfficeMenuItemHover .seq1,
+.ThemeOfficeMenuItemActive .seq1
+{
+	display:	none;
+}

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/table.css
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/table.css?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/table.css (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/css/table.css Thu Jan 28 22:51:42 2010
@@ -0,0 +1,4 @@
+.tableBack
+{
+	background-image: url(#{environmentInfo.requestContextPath}/images/logo.jpg)
+}

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataList.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataList.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataList.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataList.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,97 @@
+<%@ 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:outputText value="#{example_messages['dataList_simple']}" styleClass="standard_bold" />
+
+    <f:verbatim><br/></f:verbatim>
+
+    <h:form>
+
+    <t:dataList id="data1"
+        styleClass="standardList"
+        var="country"
+        value="#{countryList.countries}"
+        layout="simple"
+        rowCountVar="rowCount"
+        rowIndexVar="rowIndex">
+        <h:outputText value="#{country.name}" />
+        <h:outputText value=", " rendered="#{rowIndex + 1 < rowCount}" />
+    </t:dataList>
+
+    <f:verbatim><br/><br/></f:verbatim>
+
+    <h:outputText value="#{example_messages['dataList_ul']}" styleClass="standard_bold" />
+    <t:dataList id="data2"
+        styleClass="standardList"
+        var="country"
+        value="#{countryList.countries}"
+        layout="unorderedList" forceId="true">
+        <h:outputText value="#{country.name}" />
+    </t:dataList>
+
+    <f:verbatim><br/><br/></f:verbatim>
+    <h:outputText value="#{example_messages['dataList_ol']}" styleClass="standard_bold" />
+    <t:dataList id="data3"
+        styleClass="standardList"
+        var="country"
+        value="#{countryList.countries}"
+        layout="orderedList">
+        <h:outputText value="#{country.name}" />
+    </t:dataList>
+
+    <f:verbatim><br/><br/></f:verbatim>
+    <h:outputText value="#{example_messages['dataList_ol']}" styleClass="standard_bold" />
+    <t:dataList id="data4"
+        styleClass="standardList"
+        var="country"
+        value="#{countryList.countries}"
+        layout="orderedList"
+        forceId="true">
+        <h:inputText value="#{country.name}" />
+    </t:dataList>
+
+    <h:commandButton value="Submit" action="test"/>
+
+    </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/dataScroller.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataScroller.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataScroller.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataScroller.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,142 @@
+<%@ 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:outputText value="Rows to show"/>
+    <h:inputText value="#{scrollerList.rowCount}" />
+    <h:commandButton value="set rowCount"/>
+
+    <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="#{scrollerList.list}"
+                preserveDataModel="false"
+                rows="#{scrollerList.rowCount}"
+           >
+           <h:column>
+               <f:facet name="header">
+               </f:facet>
+               <h:outputText value="#{car.id}" />
+           </h:column>
+
+           <h:column>
+               <f:facet name="header">
+                  <h:outputText value="#{example_messages['label_cars']}" />
+               </f:facet>
+               <h:outputText value="#{car.type}" />
+           </h:column>
+
+           <h:column>
+               <f:facet name="header">
+                  <h:outputText value="#{example_messages['label_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;"
+                    immediate="true"
+                    actionListener="#{scrollerList.scrollerAction}"
+                    >
+                <f:facet name="first" >
+                    <t:graphicImage url="images/arrow-first.gif" border="1" />
+                </f:facet>
+                <f:facet name="last">
+                    <t:graphicImage url="images/arrow-last.gif" border="1" />
+                </f:facet>
+                <f:facet name="previous">
+                    <t:graphicImage url="images/arrow-previous.gif" border="1" />
+                </f:facet>
+                <f:facet name="next">
+                    <t:graphicImage url="images/arrow-next.gif" border="1" />
+                </f:facet>
+                <f:facet name="fastforward">
+                    <t:graphicImage url="images/arrow-ff.gif" border="1" />
+                </f:facet>
+                <f:facet name="fastrewind">
+                    <t:graphicImage url="images/arrow-fr.gif" border="1" />
+                </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:panelGrid>
+
+    </h:panelGroup>
+    <t:commandLink value="test" immediate="true" />
+        
+    </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/dataTable.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataTable.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataTable.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataTable.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,134 @@
+<%@ 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:
+    countryList
+-->
+
+<f:view>
+<h:form>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <t:panelLayout id="page" layout="#{globalOptions.pageLayout}"
+            styleClass="pageLayout"
+            headerClass="pageHeader"
+            navigationClass="pageNavigation"
+            bodyClass="pageBody"
+            footerClass="pageFooter" >
+
+        <f:facet name="header">
+            <f:subview id="header">
+                <jsp:include page="inc/page_header.jsp" />
+            </f:subview>
+        </f:facet>
+
+        <f:facet name="navigation">
+            <f:subview id="menu" >
+                <jsp:include page="inc/navigation.jsp" />
+            </f:subview>
+        </f:facet>
+
+        <f:facet name="body">
+            <h:panelGroup id="body">
+
+               <h:panelGrid columns="1">
+                   <h:commandLink action="go_country" immediate="true">
+                        <h:outputText value="#{example_messages['new_country']}" styleClass="standard" />
+                   </h:commandLink>
+                   <h:commandLink action="go_edit_table" immediate="true">
+                        <h:outputText value="#{example_messages['country_edit_table']}" styleClass="standard" />
+                   </h:commandLink>
+               </h:panelGrid>
+               <f:verbatim><br></f:verbatim>
+
+                <t:dataTable id="data"
+                        styleClass="standardTable"
+                        headerClass="standardTable_Header"
+                        footerClass="standardTable_Header"
+                        rowClasses="standardTable_Row1,standardTable_Row2"
+                        columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
+                        var="country"
+                        value="#{countryList.countries}"
+                        preserveDataModel="true" >
+                   <h:column>
+                       <f:facet name="header">
+                          <h:outputText value="#{example_messages['label_country_name']}" />
+                       </f:facet>
+                       <t:commandLink action="go_country" immediate="true" >
+                            <h:outputText value="#{country.name}" />
+                            <!-- for convenience: MyFaces extension. sets id of current row in countryForm -->
+                            <!-- you don't have to implement a custom action! -->
+                            <t:updateActionListener property="#{countryForm.id}" value="#{country.id}" />
+                       </t:commandLink>
+                   </h:column>
+
+                   <h:column>
+                       <f:facet name="header">
+                          <h:outputText value="#{example_messages['label_country_iso']}" />
+                       </f:facet>
+                       <h:outputText value="#{country.isoCode}" />
+                   </h:column>
+
+                   <h:column>
+                       <f:facet name="header">
+                          <h:outputText value="#{example_messages['label_country_cities']}" />
+                       </f:facet>
+                        <t:dataTable id="cities"
+                                styleClass="standardTable_Column"
+                                var="city"
+                                value="#{country.cities}"
+                                preserveDataModel="false">
+                           <h:column>
+                               <h:outputText value="#{city}" style="font-size: 11px" />
+                           </h:column>
+                        </t:dataTable>
+                   </h:column>
+
+                </t:dataTable>
+
+                <f:verbatim><br></f:verbatim>
+
+            </h:panelGroup>
+        </f:facet>
+
+        <%@include file="inc/page_footer.jsp" %>
+
+    </t:panelLayout>
+
+</h:form>
+<jsp:include page="inc/mbean_source.jsp"/>
+</f:view>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/date.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/date.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/date.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/date.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,77 @@
+<%@ page import="java.util.Random"%>
+<%@ 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:panelGroup id="body">
+
+        <h:messages id="messageList" showSummary="true" showDetail="true" />
+
+        <f:verbatim>
+            <h:outputText escape="false" value="<h4> #{example_messages['date_comp_header']}</h4>"/>
+        </f:verbatim>
+
+            <h:form>
+                <f:verbatim><p></f:verbatim>
+                        <h:outputText value="#{example_messages['date_comp_text1']}"/> <h:message for="date1"/>
+                        <t:inputDate id="date1" value="#{date1}" popupCalendar="true"/>
+                        <f:verbatim><br></f:verbatim>
+                        <h:outputText value="#{example_messages['date_comp_text2']} #{date1}"/> <%-- TODO : print date part only --%>
+                <f:verbatim></p></f:verbatim>
+
+                <h:outputText value="#{example_messages['date_comp_text3']}"/>
+                        <t:inputDate id="date2" value="#{date2}" type="time"/> <h:message for="date2"/>
+                        <f:verbatim><br></f:verbatim>
+                        <h:outputText value="#{example_messages['date_comp_text4']} #{date2}"/> <%-- TODO : print time part only --%>
+                <f:verbatim></p></f:verbatim>
+
+                <h:outputText value="#{example_messages['date_comp_text5']}"/>
+                        <t:inputDate id="date3" value="#{date3}" type="both"/> <h:message for="date3"/>
+                        <f:verbatim><br></f:verbatim>
+                        <h:outputText value="#{example_messages['date_comp_text6']} #{date3}"/>
+                <f:verbatim></p></f:verbatim>
+
+                <h:commandButton value="#{example_messages['date_comp_button']}"/>
+            </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/displayValueOnly.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/displayValueOnly.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/displayValueOnly.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/displayValueOnly.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,113 @@
+<%@ 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:verbatim>
+        <h1>Usage of the displayValueOnly attribute</h1>
+    </f:verbatim>
+    <h:form id="form" >
+	    <t:saveState id="ss1" value="#{dvoFace.attribute}"/>
+
+    	<h:selectBooleanCheckbox
+	    	id="displayValueOnlyCheckBox"
+	    	title="displayValueOnly"
+			value="#{dvoFace.attribute}"/>
+		<h:outputLabel id="displayValueOnlyCheckBoxL" for="displayValueOnlyCheckBox" value="displayValueOnly attribute"/>
+
+		<f:verbatim><br/></f:verbatim>
+
+		<h:panelGrid id="firstGrid" columns="2">
+	        <h:outputLabel id="inputTextL" for="inputText" value="inputText"/>
+	        <t:inputText id="inputText" value="#{dvoFace.map['inputText']}" displayValueOnly="#{dvoFace.attribute}"/>
+
+	        <h:outputLabel id="inputTextareaL" for="inputTextarea" value="inputTextarea"/>
+	        <t:inputTextarea id="inputTextarea" value="#{dvoFace.map['inputTextarea']}" displayValueOnly="#{dvoFace.attribute}"/>
+
+	        <h:outputLabel for="selectManyCheckbox" value="selectManyCheckbox"/>
+	        <t:selectManyCheckbox id="selectManyCheckbox" value="#{dvoFace.map['selectManyCheckboxList']}" displayValueOnly="#{dvoFace.attribute}">
+			  	<f:selectItem itemLabel="Value 1" itemValue="1"/>
+			  	<f:selectItem itemLabel="Value 2" itemValue="2"/>
+			  	<f:selectItem itemLabel="Value 3" itemValue="3"/>
+			</t:selectManyCheckbox>
+
+	        <%--h:outputLabel for="selectOneMenu" value="selectOneMenu"/>
+			<t:selectOneMenu id="selectOneMenu" value="#{dvoFace.map['selectOneMenu']}" displayValueOnly="#{dvoFace.attribute}">
+			  	<f:selectItem itemLabel="Value 1" itemValue="1"/>
+			  	<f:selectItem itemLabel="Value 2" itemValue="2"/>
+			  	<f:selectItem itemLabel="Value 3" itemValue="3"/>
+			</t:selectOneMenu--%>
+
+	        <h:outputLabel id="selectManyMenuL" for="selectManyMenu" value="selectManyMenu"/>
+			<t:selectManyMenu id="selectManyMenu" value="#{dvoFace.map['selectManyMenuList']}" displayValueOnly="#{dvoFace.attribute}">
+			  	<f:selectItem itemLabel="Value 1" itemValue="1"/>
+			  	<f:selectItem itemLabel="Value 2" itemValue="2"/>
+			  	<f:selectItem itemLabel="Value 3" itemValue="3"/>
+			</t:selectManyMenu>
+
+			<%--h:outputLabel for="selectOneListbox" value="selectOneListbox"/>
+			<t:selectOneListbox id="selectOneListbox" value="#{dvoFace.map['selectOneListbox']}" displayValueOnly="#{dvoFace.attribute}">
+			  	<f:selectItem itemLabel="Value 1" itemValue="1"/>
+			  	<f:selectItem itemLabel="Value 2" itemValue="2"/>
+			  	<f:selectItem itemLabel="Value 3" itemValue="3"/>
+			</t:selectOneListbox--%>
+
+			<h:outputLabel id="inputHtmlL" for="inputHtml" value="inputHtml"/>
+	        <t:inputHtml id="inputHtml" value="#{dvoFace.map['inputHtml']}" displayValueOnly="#{dvoFace.attribute}"/>
+
+		</h:panelGrid>
+        <f:verbatim><br/><br/>
+
+        <h2>The attribute can also be set for a whole section</h2>
+
+        </f:verbatim>
+        <t:panelGrid id="secondGrid" columns="2" displayValueOnly="#{dvoFace.attribute}">
+	        <h:outputLabel id="inputText2L" for="inputText2" value="inputText"/>
+	        <t:inputText id="inputText2" value="#{dvoFace.map['inputText2']}"/>
+	        
+	        <h:outputLabel id="inputSecret2L" for="inputSecret2" value="inputSecret"/>
+	        <t:inputSecret id="inputSecret2" value="secret" />
+
+	        <h:outputLabel id="inputTextArea2L" for="inputTextarea2" value="inputTextarea"/>
+	        <t:inputTextarea id="inputTextarea2" value="#{dvoFace.map['inputTextarea2']}"/>
+	    </t:panelGrid>
+        <h:commandButton id="submitBtn" />
+    </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/div.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/div.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/div.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/div.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,86 @@
+<%@ page import="java.util.Random"%>
+<%@ 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:panelGroup id="body">
+
+        <h:messages id="messageList" showSummary="true" showDetail="true" />
+
+        <h:form>
+			<t:div id="setTypeHeader1" rendered="#{true}"  >
+				<tr>
+			    	<td  >
+			      	<h:outputLabel value="# {true}" />
+					</td>
+					<td width="5%" />
+			  	</tr>
+			</t:div>
+			<t:div id="setTypeHeader2" rendered="true"  >
+				<tr>
+			    	<td  >
+			      	<h:outputLabel value="true" />
+					</td>
+					<td width="5%" />
+			  	</tr>
+			</t:div>
+			<t:div id="setTypeHeader3" rendered="#{false}"  >
+				<tr>
+			    	<td  >
+			      	<h:outputLabel value="# {false}" />
+					</td>
+					<td width="5%" />
+			  	</tr>
+			</t:div>
+			<t:div id="setTypeHeader4" rendered="false"  >
+				<tr>
+			    	<td  >
+			      	<h:outputLabel value="false" />
+					</td>
+					<td width="5%" />
+			  	</tr>
+			</t:div>
+        </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/dojo/debugconsole.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsole.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsole.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsole.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,79 @@
+<%@ 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>
+<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"/>
+
+</head>
+
+<!--
+/*
+ * 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>
+    <h:panelGroup>
+        <t:dojoInitializer require="dojo.widget.Editor" debug="true"/>
+        <t:dojoInitializer require="dojo.widget.DebugConsole"/>
+        <t:dojoInitializer require="dojo.widget.ResizeHandle"/>
+        <t:dojoInitializer require="dojo.widget.Button"/>
+        <f:verbatim>
+            <script type="text/javascript">
+                function generateSomeDebuggingInfo() {
+                    for (var x = 0; x < 10; x++) {
+                        dojo.debug(x + ": Here is some debugging info, should be 10 new lines");
+                    }
+                }
+            </script>
+
+            <p>Debugging Console. This widget, once loaded, will have djConfig output all debugging information to its
+                floating pane. Some debugging information won't go to the debugConsole before it loads, but there isn't
+                much that can be done about that. If you set djConfig = {isDebug:true} it will log to the bottom of the
+                screen (or some div if you set that) until the debugConsole finishes loading.</p>
+            <button id="go" class="dojo-button" onClick="generateSomeDebuggingInfo();">Generate Debugging info
+            </button>
+
+            <div dojoType="DebugConsole"
+                 title="Debug Console"
+                 iconSrc="images/flatScreen.gif"
+                 constrainToContainer="1"
+                 style="width: 700px; height: 500px; left: 200px;"
+                 hasShadow="true"
+                 resizable="true"
+                 displayCloseAction="true"
+                 layoutAlign="client"
+                >
+            </div>
+
+
+        </f:verbatim>
+    </h:panelGroup>
+
+</f:view>
+<%@ include file="../inc/page_footer.jsp" %>
+</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsolejsfonly.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsolejsfonly.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsolejsfonly.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/debugconsolejsfonly.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,66 @@
+<%@ 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>
+	<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" />
+	
+	</head>
+
+	<!--
+/*
+ * 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>
+			<h:panelGroup>
+				<t:dojoInitializer require="dojo.widget.Editor" debug="true"/>	
+				<t:dojoInitializer require="dojo.widget.DebugConsole" debugAtAllCosts="false"/>	
+				<t:dojoInitializer require="dojo.widget.ResizeHandle" />	
+				<t:dojoInitializer debugConsole="true" expanded="true"/>
+					
+				<f:verbatim>
+					<script type="text/javascript" >
+						function generateSomeDebuggingInfo() {
+							for (var x=0; x<10; x++) {
+								dojo.debug(x + ": Here is some debugging info, should be 10 new lines");
+							
+							}
+							dojo.debug("also note the usage of the expanded attribute");
+							dojo.debug("this attribute set to true loads the expanded version");
+							dojo.debug("otherwise the non expanded version is loaded");
+						}
+					</script>
+				</f:verbatim>
+				<h:form>	
+				<h:commandButton id="triggerdojo" onclick="javascript:generateSomeDebuggingInfo();return false;" value="[Press me for debug infos]"></h:commandButton>
+				</h:form>
+			</h:panelGroup>
+		</f:view>
+		<%@include file="../inc/page_footer.jsp"%>
+	</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/dojoimporttest.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/dojoimporttest.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/dojoimporttest.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/dojoimporttest.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,186 @@
+<%@ 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>
+	<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>
+		body {
+			font-family: Arial, Helvetica, sans-serif;
+			padding: 0;
+			margin: 0;
+		}
+
+		.page {
+			padding: 20px 20px 20px 20px;
+		}
+
+		#outerbar {
+			padding: 10px;
+			color: white;
+			background-color: #667;
+			text-align: center;
+			position: relative;
+			left: 0px;
+			top: 0px;
+			width: 100%;
+			/* height: 30px; */
+		}
+  </STYLE>
+	</head>
+
+	<!--
+/*
+ * 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>
+			<h:panelGroup>
+				<f:verbatim>
+					<script language="JavaScript" type="text/javascript">
+				
+						var built = false;
+						function buildEditor(){
+							if(built){ 
+								return;
+								// built.onClose(false, true);
+							}
+							var groups = [];
+							var ob = document.getElementById("outerbar");
+							var eb = document.getElementById("scriptEditorBlock");
+							var inputs = ob.getElementsByTagName("input");
+							for(var x=0; x<inputs.length; x++){
+								if((inputs[x].type == "checkbox")&&(inputs[x].checked)){
+									groups.push(inputs[x].name);
+									groups.push("|");
+								}
+							}
+							if(groups.length){
+								groups.pop();
+							}
+							
+							built = dojo.widget.createWidget("Editor", { items: groups }, eb);
+							dojo.fx.wipeOut(ob, 750);
+						}
+					</script>
+				</f:verbatim>
+
+
+
+
+				<t:dojoInitializer require="dojo.fx.*"/>	
+				<t:dojoInitializer require="dojo.widget.Editor"/>	
+
+								
+				<h:outputText value="Dojo import tests, you now can setup dojo by using the s:dojoInitializer component." />
+				<h:outputText value="this component provides you with the DjConfig flags and also allows you to import via require" />
+				
+
+				<f:verbatim>
+					<div id="outerbar">
+						<input type="checkbox" name="commandGroup">
+						Save/Cancel
+						<input type="checkbox" checked name="blockGroup">
+						Block Formatting + Fonts
+						<input type="checkbox" checked name="textGroup">
+						Text Formatting
+						<input type="checkbox" name="listGroup">
+						Lists
+						<input type="checkbox" checked name="justifyGroup">
+						Justification
+						<input type="checkbox" name="indentGroup">
+						Indention
+						<input type="checkbox" name="linkGroup">
+						Links and Images
+						<input type="checkbox" name="colorGroup">
+						Colors
+						<input type="button" onclick="buildEditor();" value="Build It!">
+					</div>
+
+					<div class="page" id="scriptEditorBlock">
+						<h3>
+							Select Your Toolbar Items And Then Edit This!
+						</h3>
+						<p>
+							Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam facilisis enim. Pellentesque in elit et lacus euismod dignissim. Aliquam dolor pede, convallis eget, dictum a, blandit ac, urna. Pellentesque sed nunc ut justo volutpat egestas. Class
+							aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. In erat. Suspendisse potenti. Fusce faucibus nibh sed nisi. Phasellus faucibus, dui a cursus dapibus, mauris nulla euismod velit, a lobortis turpis arcu vel dui.
+							Pellentesque fermentum ultrices pede. Donec auctor lectus eu arcu. Curabitur non orci eget est porta gravida. Aliquam pretium orci id nisi. Duis faucibus, mi non adipiscing venenatis, erat urna aliquet elit, eu fringilla lacus tellus quis erat. Nam
+							tempus ornare lorem. Nullam feugiat.
+						</p>
+					</div>
+
+					<div class="page dojo-Editor">
+						<h3>
+							Editable Content With Default Toolbar
+						</h3>
+						<ul>
+							<li>
+								Sed congue.
+							</li>
+							<li>
+								Aenean blandit sollicitudin mi.
+							</li>
+							<li>
+								Maecenas pellentesque.
+							</li>
+							<li>
+								Vivamus ac urna.
+							</li>
+						</ul>
+						<p>
+							Nunc consequat nisi vitae quam. Suspendisse sed nunc. Proin suscipit porta magna. Duis accumsan nunc in velit. Nam et nibh. Nulla facilisi. Cras venenatis urna et magna. Aenean magna mauris, bibendum sit amet, semper quis, aliquet nec, sapien.
+							Aliquam aliquam odio quis erat. Etiam est nisi, condimentum non, lacinia ac, vehicula laoreet, elit. Sed interdum augue sit amet quam dapibus semper. Nulla facilisi. Pellentesque lobortis erat nec quam.
+						</p>
+						<p>
+							Sed arcu magna, molestie at, fringilla in, sodales eu, elit. Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat augue. Integer fermentum odio lobortis odio. Nullam mollis
+							nisl non metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus ut elit convallis eleifend. Fusce tincidunt, justo quis tempus euismod, magna nulla viverra libero, sit amet lacinia odio diam id risus. Ut varius viverra turpis. Morbi urna
+							elit, imperdiet eu, porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac, faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu, consequat quis, varius interdum, nulla. Donec neque tortor, sollicitudin sed, consequat nec,
+							facilisis sit amet, orci. Aenean ut eros sit amet ante pharetra interdum.
+						</p>
+						<p>
+							Fusce rutrum pede eget quam. Praesent purus. Aenean at elit in sem volutpat facilisis. Nunc est augue, commodo at, pretium a, fermentum at, quam. Nam sit amet enim. Suspendisse potenti. Cras hendrerit rhoncus justo. Integer libero. Cum sociis
+							natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam erat volutpat. Sed adipiscing mi vel ipsum.
+						</p>
+						<p>
+							Sed aliquam, quam consectetuer condimentum bibendum, neque libero commodo metus, non consectetuer magna risus vitae eros. Pellentesque mollis augue id libero. Morbi nonummy hendrerit dui. Morbi nisi felis, fringilla ac, euismod vitae, dictum mollis,
+							pede. Integer suscipit, est sed posuere ullamcorper, ipsum lectus interdum nunc, quis blandit erat eros hendrerit pede. Vestibulum varius, elit id mattis mattis, nulla est feugiat ante, eget vestibulum augue eros ut odio. Maecenas euismod purus quis
+							felis. Ut hendrerit tincidunt est. Fusce euismod, nunc eu tempus tempor, purus ligula volutpat tellus, nec lacinia sapien enim id risus. Aliquam orci turpis, condimentum sed, sollicitudin vel, placerat in, purus. Proin tortor nisl, blandit quis,
+							imperdiet quis, scelerisque at, nisl. Maecenas suscipit fringilla erat. Curabitur consequat, dui blandit suscipit dictum, felis lectus imperdiet tellus, sit amet ornare risus mauris non ipsum. Fusce a purus. Vestibulum sodales. Sed porta ultrices
+							nibh. Vestibulum metus.
+						</p>
+					</div>
+
+				</f:verbatim>
+			</h:panelGroup>
+		</f:view>
+
+		<%@include file="../inc/page_footer.jsp"%>
+
+	</body>
+
+</html>
+

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/textareatestjsfonly.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/textareatestjsfonly.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/textareatestjsfonly.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dojo/textareatestjsfonly.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,67 @@
+<%@ 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>
+	<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" />
+	
+	</head>
+
+	<!--
+/*
+ * 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>
+			<h:panelGroup>
+				<t:dojoInitializer require="dojo.widget.Editor"/>	
+				<h:form id="myForm">
+					<h:inputTextarea id="editarea2" styleClass="dojo-Editor" value="hello world">
+						
+					</h:inputTextarea>
+					<h:commandLink action="submitted" id="submitted" value="[Submit]"/>
+					
+					<%/* Alternate way to do it */%>
+					<h:inputTextarea id="myInputTextarea" value="Customized Toolbars"/>
+					<f:verbatim>
+					<script type="text/javascript">
+					<!--
+						var editorArgs = {
+			    			items: ["textGroup", "blockGroup", "justifyGroup", "colorGroup", "listGroup", "indentGroup", "linkGroup"]
+						};
+						var editor = dojo.widget.createWidget("Editor", editorArgs,
+			                                    dojo.byId("myForm:myInputTextarea"));
+					//--></script>
+					</f:verbatim>
+				</h:form>
+			</h:panelGroup>
+		
+		</f:view>
+		<%@include file="../inc/page_footer.jsp"%>
+	</body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/error.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/error.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/error.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/error.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,113 @@
+<%@page pageEncoding="UTF-8"%><%@ page import="java.util.List,java.io.PrintWriter,org.apache.myfaces.shared_tomahawk.util.ExceptionUtils" isErrorPage="true" %>
+<!--
+/*
+ * 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 - Error Message</title>
+</head>
+<body>
+<style>
+body {
+	font-family : arial, verdana, Geneva, Arial, Helvetica, sans-serif;
+    font-size : 1.1em;
+}
+.errorHeader {
+	font-size: 1.6em;
+	background-color: #6392C6;
+	color: white;
+	font-weight: bold;
+	padding: 3px;
+	margin-bottom: 10px;
+}
+
+.errorFooter {
+	font-size: 0.8em;
+	background-color: #6392C6;
+	color: white;
+	font-style: italic;
+	padding: 3px;
+	margin-top: 5px;
+}
+
+.errorMessage {
+	color: red;
+	font-weight: bold;
+}
+.errorExceptions {
+}
+.errorExceptionStack {
+	margin-top: 5px;
+	padding: 3px;
+	border-style: solid;
+	border-width: 1px;
+	border-color: #9F9F9F;
+	background-color: #E0E0E0;
+}
+.errorExceptionCause {
+	font-size: 1.1em;
+	padding: 3px;
+	border-style: solid;
+	border-width: 1px;
+	border-color: #9F9F9F;
+	background-color: #E0E0E0;
+}
+.errorException {
+	font-size: 1.0em;
+}
+</style>
+<div class="errorHeader">MyFaces encountered an error.</div>
+<%
+if (exception != null)
+{
+	List exceptions = ExceptionUtils.getExceptions(exception);
+	Throwable throwable = (Throwable) exceptions.get(exceptions.size()-1);
+	String exceptionMessage = ExceptionUtils.getExceptionMessage(exceptions);
+	
+	%>Message: <span class="errorMessage"><%=exceptionMessage%></span><%
+	
+	PrintWriter pw = new PrintWriter(out);
+	
+ 	%><br/><%
+	%><span id="errorDetails" class="errorExceptions"><%
+		%><pre class="errorExceptionCause"><%
+		throwable.printStackTrace(pw);
+		%></pre><%
+		
+	 	%><input type="button" value="More Details>>" onclick="document.getElementById('errorMoreDetails').style.display=''"/><%
+	 	%><div id="errorMoreDetails" style="display:none" class="errorExceptionStack"><%
+	 	
+			throwable = (Throwable) exceptions.get(0);
+			%><pre class="errorException"><%
+			throwable.printStackTrace(pw);
+			%></pre><%
+		
+		%></div><%
+	%></span><%
+}
+else
+{
+	%>Unknown error<%
+}
+%>
+<div class="errorFooter">MyFaces Exception Report</div>
+</body>
+</html>
\ No newline at end of file

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/features.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/features.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/features.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/features.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,75 @@
+<%@ 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:panelLayout id="page" layout="#{globalOptions.pageLayout}"
+            styleClass="pageLayout"
+            headerClass="pageHeader"
+            navigationClass="pageNavigation"
+            bodyClass="pageBody"
+            footerClass="pageFooter" >
+
+        <f:facet name="header">
+            <f:subview id="header">
+                <jsp:include page="inc/page_header.jsp" />
+            </f:subview>
+        </f:facet>
+
+        <f:facet name="navigation">
+            <f:subview id="menu" >
+                <jsp:include page="inc/navigation.jsp" />
+            </f:subview>
+        </f:facet>
+
+        <f:facet name="body">
+            <h:panelGroup id="body">
+
+<f:verbatim><%@ include file="inc/features.html"  %></f:verbatim>
+
+            </h:panelGroup>
+        </f:facet>
+
+        <%@include file="inc/page_footer.jsp" %>
+
+    </t:panelLayout>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+</body>
+
+</html>
\ No newline at end of file

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,101 @@
+<%@ page import="java.util.Random"%>
+<%@ 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"/>
+
+    <t:saveState value="#{fileUploadForm.name}"/>
+
+    <h:panelGroup id="body">
+
+        <h:messages id="messageList" showSummary="true" />
+
+        <f:verbatim>
+
+            <h4>
+                <h:outputText value="#{example_messages['fileupload_title']}"/>
+            </h4>
+            <table border="1"><tr><td>
+        </f:verbatim>
+
+        <h:form id="form1" enctype="multipart/form-data" >
+        <h:outputText value=""/>
+            <h:outputText value="#{example_messages['fileupload_gimmeimage']} "/>
+            <t:inputFileUpload id="fileupload"
+                               accept="image/*"
+                               value="#{fileUploadForm.upFile}"
+                               storage="file"
+                               styleClass="fileUploadInput"
+                               required="true"
+                               maxlength="200000"/>
+            <h:message for="fileupload" showDetail="true" />
+            <f:verbatim><br></f:verbatim>
+            <h:outputText value="#{example_messages['fileupload_name']}"/>
+            <h:inputText value="#{fileUploadForm.name}"/>
+            <h:commandButton value="#{example_messages['fileupload_button']}" action="#{fileUploadForm.upload}" />
+        </h:form>
+
+        <h:panelGrid columns="1" rendered="#{fileUploadForm.uploaded}">
+            <h:outputText value="#{example_messages['fileupload_msg1']}" />
+            <h:graphicImage url="fileupload_showimg.jsf"/>
+            <h:outputText value="#{fileUploadForm.name}"/>
+            <h:outputText value="#{example_messages['fileupload_msg2']}" />
+            <h:outputLink value="fileupload_showimg.jsf">
+                <f:param name="allowCache" value="true"/>
+                <f:param name="openDirectly" value="false"/>
+                <h:outputText value="#{example_messages['fileupload_dlimg']}"/>
+            </h:outputLink>
+            <h:outputText value="#{example_messages['fileupload_msg3']}" />
+            <h:outputLink value="fileupload_showimg.jsf">
+                <f:param name="allowCache" value="true"/>
+                <f:param name="openDirectly" value="true"/>
+                <h:outputText value="#{example_messages['fileupload_dlimg']}"/>
+            </h:outputLink>
+        </h:panelGrid>
+        <f:verbatim></td></tr></table><p></f:verbatim>
+
+        <f:verbatim></p><p></f:verbatim>
+
+        <f:verbatim></p></f:verbatim>
+
+    </h:panelGroup>
+
+    <%@include file="inc/page_footer.jsp" %>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+</body>
+
+</html>