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 [8/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/fileupload_showimg.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload_showimg.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload_showimg.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/fileupload_showimg.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,47 @@
+<%@ page import="java.io.File,
+                 java.io.InputStream,
+                 java.io.FileInputStream,
+                 java.io.OutputStream"%><%@ page session="false" %><%
+    String contentType = (String)application.getAttribute("fileupload_type");
+    String fileName = (String)application.getAttribute("fileupload_name");
+
+    String allowCache = request.getParameter("allowCache");
+    String openDirectly = request.getParameter("openDirectly");
+
+    if(allowCache == null || allowCache.equalsIgnoreCase("false"))
+    {
+        response.setHeader("pragma", "no-cache");
+        response.setHeader("Cache-control", "no-cache, no-store, must-revalidate");
+        response.setHeader("Expires", "01 Apr 1995 01:10:10 GMT");
+    }
+
+    if(contentType!=null)
+    {
+        response.setContentType(contentType);
+    }
+
+    if(fileName != null)
+    {
+        fileName = fileName.substring(fileName.lastIndexOf('\\')+1);
+        fileName = fileName.substring(fileName.lastIndexOf('/')+1);
+
+        StringBuffer contentDisposition = new StringBuffer();
+
+        if(openDirectly==null || openDirectly.equalsIgnoreCase("false"))
+        {
+            contentDisposition.append("attachment;");
+        }
+
+        contentDisposition.append("filename=\"");
+        contentDisposition.append(fileName);
+        contentDisposition.append("\"");
+
+        response.setHeader ("Content-Disposition", contentDisposition.toString());
+    }
+
+    byte[] bytes = (byte[])application.getAttribute("fileupload_bytes");
+    if (bytes != null)
+    {
+        response.getOutputStream().write(bytes);
+    }
+%>
\ No newline at end of file

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/filteredStylesheet.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/filteredStylesheet.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/filteredStylesheet.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/filteredStylesheet.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,70 @@
+<%@ 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>
+	<t:stylesheet path="/css/table.css" filtered="true" />
+
+	<f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <p>
+        This example demonstrates a filtered stylesheet.
+	</p>
+    <p>
+		You should see a table with an background image configured. The background image is configured in
+		the stylesheet as<br />
+
+		<pre>
+.tableBack
+{
+	background-image: url(&#35;{environmentInfo.requestContextPath}/images/logo.jpg)
+}
+		</pre>
+	</p>
+
+	<h:panelGrid columns="3" styleClass="tableBack">
+		<h:outputText value="col1.1" />
+		<h:outputText value="col1.2" />
+		<h:outputText value="col1.3" />
+		<h:outputText value="col2.1" />
+		<h:outputText value="col2.2" />
+		<h:outputText value="col2.3" />
+		<h:outputText value="col3.1" />
+		<h:outputText value="col3.2" />
+		<h:outputText value="col3.3" />
+	</h:panelGrid>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/forceId.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/forceId.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/forceId.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/forceId.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,124 @@
+<%@ 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>
+
+<!--
+managed beans used:
+    validateForm
+-->
+
+<f:view>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <h:form id="forceIdForm" >
+        <h:panelGrid columns="3">
+
+            <h:outputText id="forceOneOutput" value="#{example_messages['forceOne']}"/>
+            <h:inputText required="true" id="forceOne" value="#{forceIdBean.valueOne}"/>
+            <h:message id="forceOneMessage" for="forceOne" styleClass="error" />
+
+            <h:outputText id="forceTwoOutput" value="#{example_messages['forceTwo']}"/>
+            <t:inputText required="true" id="forceTwo" value="#{forceIdBean.valueTwo}" forceId="true"/>
+            <h:message id="forceTwoMessage" for="forceTwo" styleClass="error" />
+
+            <h:panelGroup/>
+            <t:commandLink forceId="true" id="button" value="#{example_messages['button_submit']}" action="go_home"/>
+            <h:panelGroup/>
+
+            <t:inputHidden forceId="true" id="hidden-foo"/>
+
+        </h:panelGrid>
+    </h:form>
+
+    <h:form id="dataTable">
+        <h:dataTable value="#{forceIdBean.users}" var="user">
+            <h:column>
+                <h:outputText value="Username"/>
+                <t:inputText id="username" value="#{user.username}" forceId="true"/>
+                <h:outputText value="Password"/>
+                <t:inputText id="passwd" value="#{user.password}" forceId="true"/>
+                <t:commandButton id="updateButton" forceId="true" value="Update" action="#{user.update}"/>
+            </h:column>
+        </h:dataTable>
+
+        <br/>
+
+        Table data <b>without</b> forceId/forceIdIndex
+        <br/>
+        <h:dataTable value="#{forceIdBean.choices}" var="choice">
+            <h:column>
+                <h:inputText id="widget" value="#{choice}"/>
+            </h:column>
+        </h:dataTable>
+
+        <br/>
+        Table data <b>with</b> forceId/forceIdIndex
+        <br/>        
+        <t:dataTable value="#{forceIdBean.choices}" var="choice">
+            <h:column>
+                <t:inputText id="widget" value="#{choice}" forceId="true" forceIdIndex="true"/>
+            </h:column>            
+        </t:dataTable>        
+        
+        <br/>
+<%-- doesn't work yet (see MYFACES-91) 
+
+        <b>Radio buttons without forceId/forceIdIndex</b>
+        <br/>
+                
+        <h:selectOneRadio id="something" value="#{forceIdBean.currentChoice}">
+            <f:selectItem itemValue="0" itemLabel="foo"/>
+            <f:selectItem itemValue="1" itemLabel="bar"/>
+            <f:selectItem itemValue="2" itemLabel="buzz"/>            
+        </h:selectOneRadio>
+        
+        <b>Radio buttons with forceId/forceIdIndex</b>
+        <br/>
+        
+        <t:selectOneRadio id="something" forceId="true" forceIdIndex="true" value="#{forceIdBean.currentChoice}">
+            <f:selectItem itemValue="0" itemLabel="foo"/>
+            <f:selectItem itemValue="1" itemLabel="bar"/>
+            <f:selectItem itemValue="2" itemLabel="buzz"/>            
+        </t:selectOneRadio>        
+--%>        
+    </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/home.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/home.xhtml?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/home.xhtml (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/home.xhtml Thu Jan 28 22:51:42 2010
@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!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:f="http://java.sun.com/jsf/core"
+        xmlns:h="http://java.sun.com/jsf/html"
+        xmlns:ui="http://java.sun.com/jsf/facelets"
+        xmlns:t="http://myfaces.apache.org/tomahawk">
+
+    <h:head>
+      <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
+      <title>MyFaces - the free JSF Implementation</title>
+      <h:outputStylesheet name="css/basic.css"/>
+    </h:head>
+    <h:body>
+        <h:form>
+
+            <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+            <f:loadBundle basename="org.apache.myfaces.examples.resource.build" var="buildInfo"/>
+
+            <h:panelGrid id="header_group1" columns="2" styleClass="pageHeader"  >
+                <t:graphicImage id="header_logo" url="images/logo_mini.jpg" alt="#{example_messages['alt_logo']}" />
+                <h:panelGroup>
+                    <h:outputText style="font-size:20px;color:#FFFFFF" escape="false" value="MyFaces - The free JavaServer&#8482; Faces Implementation"/>
+                    <h:outputText style="font-size:10px;color:#FFFFFF" value=" (Tomahawk Version #{buildInfo['tomahawk_version']}, using #{buildInfo ['jsf_implementation']})"/>
+                </h:panelGroup>
+            </h:panelGrid>
+
+            <h:panelGrid>
+                <h:outputLink value="sample1.jsf" ><f:verbatim>Sample 1</f:verbatim></h:outputLink>
+                <h:outputLink value="sample2.jsf" ><f:verbatim>Sample 2</f:verbatim></h:outputLink>
+                <h:outputLink value="displayValueOnly.jsf" ><f:verbatim>displayValueOnly attribute</f:verbatim></h:outputLink>
+                <h:outputLink value="forceId.jsf" ><f:verbatim>forceId</f:verbatim></h:outputLink>
+                <h:outputLink value="validate.jsf" ><f:verbatim>Validations</f:verbatim></h:outputLink>
+                <h:outputLink value="aliasBean.jsf" ><f:verbatim>Alias Bean</f:verbatim></h:outputLink>
+                <h:outputLink value="buffer.jsf" ><f:verbatim>Buffer</f:verbatim></h:outputLink>
+                <h:outputLink value="div.jsf" ><f:verbatim>Div</f:verbatim></h:outputLink>
+				<h:outputLink value="filteredStylesheet.jsf" ><f:verbatim>Filtered Stylesheet</f:verbatim></h:outputLink>
+                <h:outputText value="Data Table"/>
+                <h:panelGrid style="padding-left:25px">
+                    <h:outputLink value="masterDetail.jsf" ><f:verbatim>Master-Detail</f:verbatim></h:outputLink>
+                    <h:outputLink value="dataScroller.jsf" ><f:verbatim>Data Scroller</f:verbatim></h:outputLink>
+                    <h:outputLink value="sortTable.jsf" ><f:verbatim>Sortable</f:verbatim></h:outputLink>
+                    <h:outputLink value="sortAutoTable.jsf" ><f:verbatim>Automatically sortable by all columns</f:verbatim></h:outputLink>
+                    <h:outputLink value="sortAutoTable2.jsf" ><f:verbatim>Automatically sortable by choosen columns</f:verbatim></h:outputLink>
+                    <h:outputLink value="pagedSortTable.jsf" ><f:verbatim>Paged and Sortable</f:verbatim></h:outputLink>
+                    <h:outputLink value="openDataTable.jsf" ><f:verbatim>Paged and Sortable (dynamic number of columns; mouseover)</f:verbatim></h:outputLink>
+                    <h:outputLink value="crossDataTable.jsf" ><f:verbatim>Dynamic number of columns, add a column</f:verbatim></h:outputLink>
+                    <h:outputLink value="optDataTable.jsf" ><f:verbatim>Optional Header/Footer</f:verbatim></h:outputLink>
+                    <h:outputLink value="simpleGroupBy.jsf" ><f:verbatim>Group by columns</f:verbatim></h:outputLink>
+                	<h:outputLink value="newspaperTable.jsf" ><f:verbatim>Newspaper Table</f:verbatim></h:outputLink>
+                	<h:outputLink value="colspan.jsf" ><f:verbatim>Colspan</f:verbatim></h:outputLink>
+                </h:panelGrid>
+                <h:outputLink value="selectbox.jsf" ><f:verbatim>Select boxes</f:verbatim></h:outputLink>
+                <h:outputLink value="fileupload.jsf" ><f:verbatim>File upload</f:verbatim></h:outputLink>
+                <h:outputLink value="tabbedPane.jsf" ><f:verbatim>Tabbed Pane</f:verbatim></h:outputLink>
+                <h:outputLink value="calendar.jsf" ><f:verbatim>Calendar</f:verbatim></h:outputLink>
+                <h:outputLink value="popup.jsf" ><f:verbatim>Popup</f:verbatim></h:outputLink>
+                <h:outputText value="Menus"/>
+                <h:panelGrid style="padding-left:25px">
+                    <h:outputLink value="jscookmenu.jsf" ><f:verbatim>JSCookMenu</f:verbatim></h:outputLink>
+                    <h:outputLink value="panelnavigation_1.jsf" ><f:verbatim>PanelNavigation Classic (Static JSP)</f:verbatim></h:outputLink>
+                    <h:outputLink value="panelnavigation_2.jsf" ><f:verbatim>PanelNavigation with NavigationMenuItems (Dynamic)</f:verbatim></h:outputLink>
+                    <h:outputLink value="panelnavigation_4.jsf" ><f:verbatim>Horizontal PanelNavigation</f:verbatim></h:outputLink>
+                    <h:outputLink value="panelnavigation_5.jsf" ><f:verbatim>PanelNavigation Item toggles activ/open depending on ViewId</f:verbatim></h:outputLink>
+                </h:panelGrid>
+                <h:outputLink value="jslistener.jsf" ><f:verbatim>Javascript Listener</f:verbatim></h:outputLink>
+                <h:outputLink value="date.jsf" ><f:verbatim>Date</f:verbatim></h:outputLink>
+                <h:outputLink value="inputTextHelp.jsf" ><f:verbatim>InputTextHelp</f:verbatim></h:outputLink>
+                <h:outputLink value="inputHtml.jsf" ><f:verbatim>Html Editor</f:verbatim></h:outputLink>
+                <h:outputLink value="htmlTag.jsf" ><f:verbatim>Html Tag</f:verbatim></h:outputLink>
+                <h:outputLink value="dataList.jsf" ><f:verbatim>Dynamic Lists</f:verbatim></h:outputLink>
+                <h:outputLink value="selectItems.jsf" ><f:verbatim>Auto-generated SelectItems</f:verbatim></h:outputLink>
+                <h:outputLink value="selectOneCountry.jsf" ><f:verbatim>Select one Country</f:verbatim></h:outputLink>
+                <h:outputLink value="selectOneLanguage.jsf" ><f:verbatim>Select one Language</f:verbatim></h:outputLink>
+                <h:outputLink value="tree.jsf" ><f:verbatim>Tree</f:verbatim></h:outputLink>
+                <h:outputLink value="treeTable.jsf" ><f:verbatim>Tree Table</f:verbatim></h:outputLink>
+                <h:outputText value="Tree2"/>
+                <h:panelGrid style="padding-left:25px">
+                    <h:outputLink value="tree2.jsf" ><f:verbatim>Tree2 (client-side toggle, server-side toggle)</f:verbatim></h:outputLink>
+                    <h:outputLink value="tree2HideRoot.jsf" ><f:verbatim>Tree2 (hide root node)</f:verbatim></h:outputLink>
+                    <h:outputLink value="tree2NiceWrap.jsf" ><f:verbatim>Tree2 (nice wrap)</f:verbatim></h:outputLink>
+                    <h:outputLink value="tree2ExpandAll.jsf" ><f:verbatim>Tree2 (expand all)</f:verbatim></h:outputLink>
+                    <h:outputLink value="tree2NoNav.jsf" ><f:verbatim>Tree2 (no nav icons)</f:verbatim></h:outputLink>
+                </h:panelGrid>
+                <h:outputLink value="panelstack.jsf" ><f:verbatim>Panel Stack</f:verbatim></h:outputLink>
+                <h:outputLink value="css.jsf" ><f:verbatim>Style Sheet</f:verbatim></h:outputLink>
+                <h:outputLink value="swapimage.jsf" ><f:verbatim>Swap Image</f:verbatim></h:outputLink>
+                <h:outputLink value="collapsiblePanel.jsf" ><f:verbatim>Collapsible Panel</f:verbatim></h:outputLink>
+                <h:outputLink value="testExceptions.jsf" ><f:verbatim>Test the custom error page - not really jsf stuff, but a demonstration how to print the real exception</f:verbatim></h:outputLink>
+				<h:outputLink value="panelGroup.jsf" ><f:verbatim>Panel Group</f:verbatim></h:outputLink>
+                <h:outputText value="Dojo Integration" />
+                <h:panelGrid style="padding-left:25px">
+                	<h:outputLink value="dojo/dojoimporttest.jsf">
+                		<f:verbatim>Dojo Library Import via t:dojoInitializer</f:verbatim>
+                	</h:outputLink>
+                	<h:outputLink value="dojo/textareatestjsfonly.jsf">
+                		<f:verbatim>Simple Integration of the Dojo Toolkit example</f:verbatim>
+                	</h:outputLink>
+                	<h:outputLink value="dojo/debugconsolejsfonly.jsf">
+                		<f:verbatim>The dojo Debug Console</f:verbatim>
+                	</h:outputLink>
+                </h:panelGrid>
+                <h:outputText value="Schedule" />
+                <h:panelGrid style="padding-left:25px">
+                    <h:outputLink value="schedule1.jsf">
+                        <f:verbatim>Schedule with sample entries</f:verbatim>
+                    </h:outputLink>
+                    <h:outputLink value="schedule2.jsf">
+                        <f:verbatim>Schedule with possibility for adding/removing entries</f:verbatim>
+                    </h:outputLink>
+                    <h:outputLink value="schedule3.jsf">
+                        <f:verbatim>Customizable schedule</f:verbatim>
+                    </h:outputLink>
+                    <h:outputLink value="schedule4.jsf">
+                        <f:verbatim>Schedule with custom styleClasses and custom EntryRenderer</f:verbatim>
+                    </h:outputLink>
+                    <h:outputLink value="schedule5.jsf">
+                        <f:verbatim>Example demonstrating the submitOnClick and mouseListener properties</f:verbatim>
+                    </h:outputLink>
+                </h:panelGrid>
+
+                <h:outputText value="Behaviours controlled by init params" />
+                <h:panelGrid style="padding-left:25px">
+                    <h:outputLink value="autoscroll.jsf">
+                        <f:verbatim>AutoScroll (org.apache.myfaces.AUTO_SCROLL)</f:verbatim>
+                    </h:outputLink>
+                </h:panelGrid>
+                
+                <h:outputText value="CAPTCHA" />
+                <h:panelGrid style="padding-left:25px">
+                    <h:outputLink value="captcha.jsf">
+                        <f:verbatim>CAPTCHA - A component allows generating random images that can be placed with webforms to determine whether the user is human.</f:verbatim>
+                    </h:outputLink>
+                </h:panelGrid>                
+
+
+                <h:outputText value="subForm" />
+                <h:panelGrid style="padding-left:25px">
+                    <h:outputLink value="subForm.jsf">
+                        <f:verbatim>SubForm - Partial validation and model update with SubForms.</f:verbatim>
+                    </h:outputLink>
+                </h:panelGrid>    
+                
+                
+				<h:outputText value="XML Template"/>
+	            <h:panelGrid style="padding-left:25px">
+	           		<h:outputLink value="template/index.jsf" ><f:verbatim>XML Template examples</f:verbatim></h:outputLink>
+	            </h:panelGrid>                
+                
+                <h:outputText value="picklist" />
+                <h:panelGrid style="padding-left:25px">
+                    <h:outputLink value="picklist.jsf">
+                        <f:verbatim>selectManyPicklist - A picklist, where you select components from a list and the selected items are displayed in another list.</f:verbatim>
+                    </h:outputLink>
+                </h:panelGrid>         
+                
+                <h:outputText value="selectOneRow" />
+                <h:panelGrid style="padding-left:25px">                
+                    <h:outputLink value="selectOneRow.jsf">
+                    	<f:verbatim>selectOneRow - a DataTable Enhancement</f:verbatim>
+                    </h:outputLink>                     
+                </h:panelGrid>   
+
+ 				<h:outputText value="toggleLink" />
+                <h:panelGrid style="padding-left:25px">      
+                    <h:outputLink value="toggleLink.jsf">
+                    	<f:verbatim>ToggleLink - Edit/Read-Only Mode Toggler</f:verbatim>
+                    </h:outputLink>                     
+                </h:panelGrid>                                       
+
+        </h:panelGrid>
+
+		</h:form>
+    </h:body>
+</html>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/htmlTag.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/htmlTag.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/htmlTag.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/htmlTag.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>
+
+<%@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>
+
+    <t:htmlTag value="h1"><b>h1</b> tag.</t:htmlTag>
+    <t:htmlTag value="h2"><b>h2</b> tag.</t:htmlTag>
+    <t:htmlTag value="p"><b>p</b> tag.</t:htmlTag>
+    <t:htmlTag value="i"><b>i</b> tag.</t:htmlTag>
+
+	<t:htmlTag value="p">
+    	<t:htmlTag value="b" rendered="true">This is bold, because the <i>b</i> tag is rendered</t:htmlTag>
+    </t:htmlTag>
+    <t:htmlTag value="p">
+    	<t:htmlTag value="b" rendered="false">This should not be bold, because the <i>b</i> tag is not rendered</t:htmlTag>
+    </t:htmlTag>
+
+    <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/images/arrow-ff.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-ff.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-ff.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-first.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-first.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-first.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-fr.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-fr.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-fr.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-last.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-last.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-last.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-next.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-next.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-next.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-previous.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-previous.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/arrow-previous.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/ascending-arrow.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/ascending-arrow.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/ascending-arrow.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/blue-folder-closed.png
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/blue-folder-closed.png?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/blue-folder-closed.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/blue-folder-open.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/blue-folder-open.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/blue-folder-open.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/component.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/component.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/component.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/descending-arrow.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/descending-arrow.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/descending-arrow.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/document.png
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/document.png?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/document.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/help.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/help.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/help.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-last.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-last.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-last.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-middle.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-middle.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-middle.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-trunk.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-trunk.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/line-trunk.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/logo.jpg
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/logo.jpg?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/logo.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/logo_mini.jpg
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/logo_mini.jpg?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/logo_mini.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces_powered.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces_powered.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces_powered.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces_powered_over.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces_powered_over.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/myfaces_powered_over.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/person.png
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/person.png?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/person.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/spacer.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/spacer.gif?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/spacer.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/yellow-folder-closed.png
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/yellow-folder-closed.png?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/yellow-folder-closed.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/yellow-folder-open.png
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/yellow-folder-open.png?rev=904288&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/images/yellow-folder-open.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/features.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/features.html?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/features.html (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/features.html Thu Jan 28 22:51:42 2010
@@ -0,0 +1,64 @@
+<h1>MyFaces Components and Features
+</h1><h3>What is it, that makes MyFaces different?
+</h3>
+
+<br/><hr/><b>Tiles support in MyFaces</b>
+<br/>You can easily use <a class='wiki' target="_blank" href='http://struts.apache.org'>struts/tiles</a> in JSF projects by using myfaces-tiles extension.
+
+<br/><a title="no description" href='tiki-index.php?page=TilesSupport' class='wiki'>learn more...</a>
+<br/><hr/><b>JSCook Menu component</b> '' - Javascript navigation menu&quot;
+<br/>This component renders a Javascript menu based on the excellent JSCookMenu by Heng Yuan
+<br/><a title="no description" href='tiki-index.php?page=JSCookMenu' class='wiki'>learn more...</a>
+<br/><hr/><b>Data Scroller component</b> <i> - scroll through UIData</i>
+<br/>This component renders a scroller to run over the pages of an UIData (eg. &lt;h:dataTable&gt;).
+
+<br/><a title="no description" href='tiki-index.php?page=DataScroller' class='wiki'>learn more...</a>
+<br/><hr/><b>Navigation component</b> <i> - convenient navigation menu</i>
+<br/>This component renders a hierarchical (vertical) navigation menu and remembers it's open/close/active state over different pages.
+<br/><a title="no description" href='tiki-index.php?page=PanelNavigation' class='wiki'>learn more...</a>
+<br/><hr/><b>Calendar component</b> <i>with localisation support</i>
+<br/>A (not yet ;) sophisticated calendar component with localisation support.
+<br/><a title="no description" href='tiki-index.php?page=InputCalendar' class='wiki'>learn more...</a>
+
+<br/><hr/><b>File Upload component</b>
+<br/>Convenient component for uploading files.
+<br/><a title="no description" href='tiki-index.php?page=InputFileUpload' class='wiki'>learn more...</a>
+<br/><hr/><b>UISaveState component</b> <i> - saving model state in the client response</i>
+<br/>Traditional JSP/Servlet applications save their state information within HttpSession objects. This is an easy to use but not always satisfying approach. <a title="no description" href='tiki-index.php?page=UISaveState' class='wiki'>learn more...</a>
+<br/><hr/><b>SortHeader component</b> <i>- clickable list column header with sort direction arrow</i>
+
+<br/>Convenient support for writing lists, that can be (re)sorted by a click on a column header.
+<br/><a title="no description" href='tiki-index.php?page=SortHeader' class='wiki'>learn more...</a>
+<br/><hr/><b>Extended DataTable component</b> <i>- list sort support and preserve DataModel option</i>
+<br/>Extends the standard &lt;h:dataTable&gt; by support for sorting (see SortHeader) and an option to save the DataModel state.
+<br/>To avoid unwanted sideeffects when having a DataModel backed by a database result, state of such a DataModel sometimes must be saved.
+<br/><a title="no description" href='tiki-index.php?page=ExtDataTable' class='wiki'>learn more...</a>
+<br/><hr/><b>Layout component</b> <i>- dynamic page layout control</i>
+
+<br/>Support for switchable page layout.
+<br/>Try the example and change the layout under &quot;Options&quot; to see the magic!
+<br/><hr/><b>TabbedPane component</b>
+<br/>A swing like tabbed pane renderer.
+<br/>(see web\example\tabbedPane.jsp)
+<br/><hr/><b>DataList component</b>
+<br/>A UIData based list that can be used do simple iteration over a group of components or to render a HTML &lt;ul&gt; or &lt;ol&gt; list.
+
+<br/><hr/><b>RssTicker component</b>
+<br/>Displays the value of rss-files.
+<br/><a title="no description" href='tiki-index.php?page=RssTicker' class='wiki'>learn more...</a>
+<br/><hr/><b>EmailValidator</b>
+<br/>Component for validating syntax of emails.
+<br/><a title="no description" href='tiki-index.php?page=EmailValidator' class='wiki'>learn more...</a>
+<br/><hr/><b>CreditCardValidator</b>
+<br/>Component for validating credit card numbers.
+<br/><a title="no description" href='tiki-index.php?page=CreditCardValidator' class='wiki'>learn more...</a>
+<br/><hr/><b>RegExprValidator</b>
+
+<br/>Component for validating regular expressions.
+<br/><a title="no description" href='tiki-index.php?page=RegExprValidator' class='wiki'>learn more...</a>
+<br/><hr/><b>EqualValidator</b>
+<br/>Component for validating value from component a against value from component b.
+<br/><a title="no description" href='tiki-index.php?page=EqualValidator' class='wiki'>learn more...</a>
+<br/><hr/>
+<br/><br/>
+

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/head.inc
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/head.inc?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/head.inc (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/head.inc Thu Jan 28 22:51:42 2010
@@ -0,0 +1,5 @@
+<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="<%= request.getContextPath() %>/css/basic.css" />
+</head>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/mbean_source.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/mbean_source.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/mbean_source.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/mbean_source.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,16 @@
+<%@ 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"%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+<br/>
+<br/>
+
+<t:dataList value="#{accessedBeans.beanList}" var="accessedBean" layout="unorderedList">
+    <h:outputLink value="#{accessedBean.clazz}.java.source">
+        <h:outputText value="Show source of bean with name : "/>
+        <h:outputText value="#{accessedBean.name}"/>
+        <h:outputText value=" and class : "/>
+        <h:outputText value="#{accessedBean.clazz}"/>
+    </h:outputLink>
+</t:dataList>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/navigation.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/navigation.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/navigation.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/navigation.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,53 @@
+<%@ 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"%>
+<t:panelNavigation id="nav"
+              styleClass="navigation"
+              separatorClass="navseparator"
+              itemClass="navitem"
+              activeItemClass="navitem_active"
+              openItemClass="navitem_open"   >
+    <t:commandNavigation id="nav_1" value="#{example_messages['nav_Home']}" action="go_home">
+        <f:param name="param" value="value"/>
+    </t:commandNavigation>
+    <t:commandNavigation id="nav_2" value="#{example_messages['nav_Examples']}" >
+        <t:commandNavigation id="nav_2_1" value="#{example_messages['nav_Sample_1']}" action="go_sample1" />
+        <t:commandNavigation id="nav_2_2" value="#{example_messages['nav_Sample_2']}" action="go_sample2" />
+        <t:commandNavigation id="nav_2_3" value="#{example_messages['nav_Validate']}" action="go_validate" />
+        <t:commandNavigation id="nav_2_4" value="#{example_messages['nav_Components']}" >
+            <t:commandNavigation id="nav_2_4_1" value="#{example_messages['nav_aliasBean']}" action="go_aliasBean" />
+            <t:commandNavigation id="nav_2_4_1_2" value="#{example_messages['nav_buffer']}" action="go_buffer" />
+            <t:commandNavigation id="nav_2_4_2" value="#{example_messages['nav_dataTable']}" action="go_dataTable" />
+            <t:commandNavigation id="nav_2_4_3" value="#{example_messages['nav_sortTable']}" action="go_sortTable" />
+            <t:commandNavigation id="nav_2_4_4" value="#{example_messages['nav_Selectbox']}" action="go_selectbox" />
+            <t:commandNavigation id="nav_2_4_5" value="#{example_messages['nav_FileUpload']}" action="go_fileupload" />
+            <t:commandNavigation id="nav_2_4_6" value="#{example_messages['nav_TabbedPane']}" action="go_tabbedPane" />
+            <t:commandNavigation id="nav_2_4_7" value="#{example_messages['nav_Calendar']}" action="go_calendar" />
+            <t:commandNavigation id="nav_2_4_71" value="#{example_messages['nav_Popup']}" action="go_popup" />
+            <t:commandNavigation id="nav_2_4_72" value="#{example_messages['nav_JsListener']}" action="go_jslistener" />
+            <t:commandNavigation id="nav_2_4_73" value="#{example_messages['nav_panelnavigation']}" action="go_panelnavigation" />
+            <t:commandNavigation id="nav_2_4_8" value="#{example_messages['nav_Date']}" action="go_date" />
+            <t:commandNavigation id="nav_2_4_81" value="#{example_messages['nav_InputHtml']}" action="go_inputHtml" />
+            <t:commandNavigation id="nav_2_4_9" value="#{example_messages['nav_dataList']}" action="go_dataList" />
+            <t:commandNavigation id="nav_2_4_10" value="#{example_messages['nav_tree']}" action="go_tree" />
+            <t:commandNavigation id="nav_2_4_100" value="#{example_messages['nav_tree2']}" action="go_tree2" />
+            <t:commandNavigation id="nav_2_4_11" value="#{example_messages['nav_treeTable']}" action="go_treeTable"/>
+            <t:commandNavigation id="nav_2_4_13" value="#{example_messages['nav_dataScroller']}" action="go_datascroller" />
+            <t:commandNavigation id="nav_2_4_14" value="#{example_messages['nav_panelstack']}" action="go_panelstack" />
+            <t:commandNavigation id="nav_2_4_15" value="#{example_messages['nav_css']}" action="go_css" />
+            <t:commandNavigation id="nav_2_4_16" value="#{example_messages['nav_newspaperTable']}" action="go_newspaperTable" />
+            <t:commandNavigation id="nav_2_4_17" value="#{example_messages['nav_swapimage']}" action="go_swapimage" />
+            <t:commandNavigation id="nav_2_4_18" value="#{example_messages['nav_forceId']}" action="go_forceId" />
+            <t:commandNavigation id="nav_2_4_19" value="#{example_messages['nav_selectOneCountry']}" action="go_selectOneCountry" />
+        </t:commandNavigation>
+    </t:commandNavigation>
+    <t:commandNavigation id="nav_3" value="#{example_messages['nav_Documentation']}" >
+        <t:commandNavigation id="nav_3_1" value="#{example_messages['nav_Features']}" action="go_features"/>
+    </t:commandNavigation>
+    <t:commandNavigation id="nav_4" value="#{example_messages['nav_Options']}" action="go_options" />
+    <f:verbatim>&nbsp;</f:verbatim>
+    <t:commandNavigation id="nav_5" value="#{example_messages['nav_Info']}" >
+        <t:commandNavigation id="nav_5_1" value="#{example_messages['nav_Contact']}" action="go_contact" />
+        <t:commandNavigation id="nav_5_2" value="#{example_messages['nav_Copyright']}" action="go_copyright" />
+    </t:commandNavigation>
+</t:panelNavigation>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_footer.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_footer.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_footer.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_footer.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,6 @@
+<br/>
+<br/>
+
+<a href="home.jsf">[HOME]</a>
+&nbsp;
+<a href="<%=request.getRequestURI()%>.source">[SOURCE]</a>

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_header.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_header.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_header.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inc/page_header.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"%>
+
+<h:panelGrid id="header_group1" columns="2" styleClass="pageHeader1"  >
+    <t:graphicImage id="header_logo" url="images/logo_mini.jpg" alt="#{example_messages['alt_logo']}" />
+    <f:verbatim>
+        &nbsp;&nbsp;
+        <font size="+1" color="#FFFFFF">MyFaces - The free JavaServer&#8482; Faces Implementation</font>
+        <font size="-1" color="#FFFFFF">(Version 1.1.1)</font>
+    </f:verbatim>
+</h:panelGrid>
+
+<h:panelGrid id="header_group2" columns="1" styleClass="pageHeader2" columnClasses="pageHeader2col1"  >
+    <t:jscookMenu layout="hbr" theme="ThemeOffice" >
+        <%/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack, ThemeOffice, ThemePanel
+             Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl, vur, vul
+             respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu
+        */%>
+        <t:navigationMenuItem id="nav_1" itemLabel="#{example_messages['nav_Home']}" action="go_home" />
+        <t:navigationMenuItem id="nav_2" itemLabel="#{example_messages['nav_Examples']}" >
+            <t:navigationMenuItem id="nav_2_1" itemLabel="#{example_messages['nav_Sample_1']}" action="go_sample1" icon="images/myfaces.gif" />
+            <t:navigationMenuItem id="nav_2_2" itemLabel="#{example_messages['nav_Sample_2']}" action="go_sample2" icon="images/myfaces.gif" />
+            <t:navigationMenuItem id="nav_2_3" itemLabel="#{example_messages['nav_Validate']}" action="go_validate" icon="images/myfaces.gif" />
+            <t:navigationMenuItem id="nav_2_4" itemLabel="#{example_messages['nav_Components']}" icon="images/component.gif" split="true" >
+	            <t:navigationMenuItem id="nav_2_4_1" itemLabel="#{example_messages['nav_aliasBean']}" action="go_aliasBean" icon="images/myfaces.gif" />
+  	            <t:navigationMenuItem id="nav_2_4_1_2" itemLabel="#{example_messages['nav_buffer']}" action="go_buffer" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_2" itemLabel="#{example_messages['nav_dataTable']}" action="go_dataTable" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_3" itemLabel="#{example_messages['nav_sortTable']}" action="go_sortTable" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_4" itemLabel="#{example_messages['nav_Selectbox']}" action="go_selectbox" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_5" itemLabel="#{example_messages['nav_FileUpload']}" action="go_fileupload" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_6" itemLabel="#{example_messages['nav_TabbedPane']}" action="go_tabbedPane" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_7" itemLabel="#{example_messages['nav_Calendar']}" action="go_calendar" icon="images/myfaces.gif" split="true" />
+                <t:navigationMenuItem id="nav_2_4_71" itemLabel="#{example_messages['nav_Popup']}" action="go_popup" icon="images/myfaces.gif" split="true" />
+                <t:navigationMenuItem id="nav_2_4_72" itemLabel="#{example_messages['nav_JsListener']}" action="go_jslistener" icon="images/myfaces.gif" split="true" />                
+            	<t:navigationMenuItem id="nav_2_4_8" itemLabel="#{example_messages['nav_Date']}" action="go_date" icon="images/myfaces.gif" />
+	            <t:navigationMenuItem id="nav_2_4_81" itemLabel="#{example_messages['nav_InputHtml']}" action="go_inputHtml" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_9" itemLabel="#{example_messages['nav_dataList']}" action="go_dataList" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_10" itemLabel="#{example_messages['nav_tree']}" action="go_tree" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_100" itemLabel="#{example_messages['nav_tree2']}" action="go_tree2" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_11" itemLabel="#{example_messages['nav_treeTable']}" action="go_treeTable" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_13" itemLabel="#{example_messages['nav_dataScroller']}" action="go_datascroller" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_14" itemLabel="#{example_messages['nav_panelstack']}" action="go_panelstack" icon="images/myfaces.gif" />
+	            <t:navigationMenuItem id="nav_2_4_15" itemLabel="#{example_messages['nav_css']}" action="go_css" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_16" itemLabel="#{example_messages['nav_newspaperTable']}" action="go_newspaperTable" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_17" itemLabel="#{example_messages['nav_swapimage']}" action="go_swapimage" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_18" itemLabel="#{example_messages['nav_forceId']}" action="go_forceId" icon="images/myfaces.gif" />
+                <t:navigationMenuItem id="nav_2_4_19" itemLabel="#{example_messages['nav_selectOneCountry']}" action="go_selectOneCountry" icon="images/myfaces.gif" />
+            </t:navigationMenuItem>
+        </t:navigationMenuItem>
+        <t:navigationMenuItem id="nav_3" itemLabel="#{example_messages['nav_Documentation']}" >
+            <t:navigationMenuItem id="nav_3_1" itemLabel="#{example_messages['nav_Features']}" action="go_features" icon="images/myfaces.gif" />
+        </t:navigationMenuItem>
+        <t:navigationMenuItem id="nav_4" itemLabel="#{example_messages['nav_Options']}" action="go_options" />
+        <t:navigationMenuItems id="nav_5" value="#{navigationMenu.infoItems}" />
+
+    </t:jscookMenu>
+</h:panelGrid>
+

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/index.html?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/index.html (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/index.html Thu Jan 28 22:51:42 2010
@@ -0,0 +1,5 @@
+<html>
+<head>
+    <meta http-equiv="refresh" content="0; URL=home.jsf"/>
+</head>
+</html>
\ No newline at end of file

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml-multiple.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml-multiple.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml-multiple.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml-multiple.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,65 @@
+<%@ 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">
+
+        <h:form>
+            <f:verbatim>
+                <h1>Html Editor - multiple instances</h1>
+                <b>Warning, this is for TEST, and doesn't work yet :-(</b><br/>
+                Powered by the <a href="http://kupu.oscom.org">Kupu library</a>
+            </f:verbatim>
+
+			<f:verbatim><h2>Editor #1</h2></f:verbatim>
+            <t:inputHtml value="#{editor1.text}" style="height: 40ex;"/>
+
+			<f:verbatim><h2>Editor #2</h2></f:verbatim>
+            <t:inputHtml value="#{editor2.text}" style="height: 40ex;"/>
+
+			<f:verbatim><br/><br/></f:verbatim>
+            <h:commandButton value="Submit"/>
+        </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/inputHtml.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputHtml.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,94 @@
+<%@ 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">
+
+        <h:form>
+            <f:verbatim>
+                <h1>Html Editor</h1>
+                Powered by the <a href="http://kupu.oscom.org">Kupu library</a>
+            </f:verbatim>
+
+            <t:inputHtml value="#{editor.text}"
+                    style="height: 60ex;"
+                    allowEditSource="#{editor.allowEditSource}"
+                    showPropertiesToolBox="#{editor.showPropertiesToolBox}"
+                    showLinksToolBox="#{editor.showLinksToolBox}"
+                    showImagesToolBox="#{editor.showImagesToolBox}"
+                    showTablesToolBox="#{editor.showTablesToolBox}"
+                    showDebugToolBox="#{editor.showDebugToolBox}"/>
+
+            <t:div>
+                    <h:outputText value="Note : You can drag & drop images in the editor."/>
+            </t:div>
+
+            <h:commandButton value="Submit"/>
+
+            <f:verbatim>
+                    <h2>Component Options</h2>
+            </f:verbatim>
+            <h:panelGrid columns="2">
+                    <h:selectBooleanCheckbox value="#{editor.allowEditSource}" immediate="true"/>
+                    <h:outputText value="Allow Edit Source"/>
+
+                    <h:selectBooleanCheckbox value="#{editor.showPropertiesToolBox}" immediate="true"/>
+                    <h:outputText value="Show Properties tool box"/>
+
+                    <h:selectBooleanCheckbox value="#{editor.showLinksToolBox}" immediate="true"/>
+                    <h:outputText value="Show Links tool box"/>
+
+                    <h:selectBooleanCheckbox value="#{editor.showImagesToolBox}" immediate="true"/>
+                    <h:outputText value="Show Images tool box"/>
+
+                    <h:selectBooleanCheckbox value="#{editor.showTablesToolBox}" immediate="true"/>
+                    <h:outputText value="Show Tables tool box"/>
+
+                    <h:selectBooleanCheckbox value="#{editor.showDebugToolBox}" immediate="true"/>
+                    <h:outputText value="Show Debug tool box"/>
+            </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/inputTextDisabled.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputTextDisabled.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputTextDisabled.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputTextDisabled.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"%>
+<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
+
+<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>
+    <h:form>
+        <h:panelGrid>     
+             <t:messages showDetail="true" showSummary="false"/>
+            <h:outputText value="Example for disabled input value submit"/>                        
+            
+            <f:verbatim>
+                <script type="text/javascript"><!--
+                    function changeDisabledInputValue() {
+                        var fName = document.getElementById("_idJsp0:firstName");
+                        var lName = document.getElementById("_idJsp0:lastName");
+                        var fullName = document.getElementById("_idJsp0:fullName");
+                        fullName.value = fName.value+" "+lName.value;
+                        fullName.onchange();                        
+                    }
+                //--></script>    
+            </f:verbatim>    
+                        
+            <h:outputText value="Person" style="font-weight:bold;"/>
+            <h:panelGrid columns="2">
+                <h:outputLabel for="firstName" value="First Name:"/>
+                <h:inputText id="firstName" value="#{inputTextDisabled.firstName}"/>
+                <h:outputLabel for="lastName" value="Last Name:"/>                
+                <h:inputText id="lastName" value="#{inputTextDisabled.lastName}"/>                
+                <h:outputLabel for="fullName" value="Full Name:"/>
+                <t:inputText id="fullName" value="#{inputTextDisabled.fullName}" disabledOnClientSide="true">
+                    <f:validateLength maximum="5" minimum="2"/>
+                </t:inputText>                   
+            </h:panelGrid>
+            <h:outputLink value="#" onclick="changeDisabledInputValue();"><f:verbatim>Change disabled input field's value</f:verbatim></h:outputLink>                
+            <h:commandButton value="Show current values of Person"/>                        
+        </h:panelGrid>
+                
+        
+        <h:panelGrid columns="2">
+            <h:outputText value="First name of Person:"/>
+            <h:outputText value="#{inputTextDisabled.firstName}"/>
+            <h:outputText value="Last name of Person:"/>
+            <h:outputText value="#{inputTextDisabled.lastName}"/>
+            <h:outputText value="Full name of Person:"/>
+            <h:outputText value="#{inputTextDisabled.fullName}"/>            
+        </h:panelGrid>
+
+    </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/inputTextHelp.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputTextHelp.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputTextHelp.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/inputTextHelp.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,57 @@
+<%@ 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>
+        <f:verbatim>
+            <h1>Input Text Help</h1>
+        </f:verbatim>
+        <t:div/>
+        <h:outputText value="Delete helper text:"/>
+        <t:inputTextHelp value="" id="i1" helpText="Hello World"/>
+        <t:div/>
+        <h:outputText value="Select helper text:"/>
+        <t:inputTextHelp value="" id="i2" selectText="true" helpText="TT.MM.JJJJ"/>
+    </h:form>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>
\ No newline at end of file

Added: myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jscookmenu.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jscookmenu.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jscookmenu.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jscookmenu.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,121 @@
+
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ 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>
+	<f:loadBundle
+		basename="org.apache.myfaces.examples.resource.example_messages"
+		var="example_messages" />
+    <t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="css/jscookmenu">
+		<%/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack, ThemeOffice, ThemePanel, ThemeGray
+             Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl, vur, vul
+             respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu
+        */%>
+
+        <t:navigationMenuItems id="nav_0" value="#{navigationMenu.JSCookMenuNavigationItems}" />
+        <t:navigationMenuItem id="nav_1" actionListener="#{navigationMenu.actionListener}"
+			itemLabel="#{example_messages['nav_Home']}" itemValue="go_home" action="go_home"/>
+        <t:navigationMenuItem id="nav_2"
+			itemLabel="#{example_messages['nav_Examples']}">
+			<t:navigationMenuItem id="nav_2_1"
+				itemLabel="#{example_messages['nav_Sample_1']}" action="go_sample1" />
+			<t:navigationMenuItem split="true"> </t:navigationMenuItem>
+			<t:navigationMenuItem id="nav_2_2"
+				itemLabel="#{example_messages['nav_Sample_2']}" action="go_sample2"
+				icon="images/myfaces.gif" />
+			<t:navigationMenuItem id="nav_2_3"
+				itemLabel="#{example_messages['nav_Validate']}" action="go_validate"
+				icon="images/myfaces.gif" />
+			<t:navigationMenuItem id="nav_2_4"
+				itemLabel="#{example_messages['nav_Components']}"
+				icon="images/component.gif" split="true">
+				<t:navigationMenuItem id="nav_2_4_1"
+					itemLabel="#{example_messages['nav_sortTable']}"
+					action="go_sortTable" icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_2"
+					itemLabel="#{example_messages['nav_Selectbox']}"
+					action="go_selectbox" icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_3"
+					itemLabel="#{example_messages['nav_FileUpload']}"
+					action="go_fileupload" icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_4"
+					itemLabel="#{example_messages['nav_TabbedPane']}"
+					action="go_tabbedPane" icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_5"
+					itemLabel="#{example_messages['nav_Calendar']}"
+					action="go_calendar" icon="images/myfaces.gif" split="true" />
+				<t:navigationMenuItem id="nav_2_4_6"
+					itemLabel="#{example_messages['nav_Popup']}" action="go_popup"
+					icon="images/myfaces.gif" split="true" />
+				<t:navigationMenuItem id="nav_2_4_7"
+					itemLabel="#{example_messages['nav_Date']}" action="go_date"
+					icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_8"
+					itemLabel="#{example_messages['nav_InputHtml']}"
+					action="go_inputHtml" icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_9"
+					itemLabel="#{example_messages['nav_tree2']}" action="go_tree2"
+					icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_10"
+					itemLabel="#{example_messages['nav_treeTable']}"
+					action="go_treeTable" icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_12"
+					itemLabel="#{example_messages['nav_dataScroller']}"
+					action="go_datascroller" icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_13"
+					itemLabel="#{example_messages['nav_css']}" action="go_css"
+					icon="images/myfaces.gif" />
+				<t:navigationMenuItem id="nav_2_4_14"
+					itemLabel="#{example_messages['nav_newspaperTable']}"
+					action="go_newspaperTable" icon="images/myfaces.gif" />
+			</t:navigationMenuItem>
+        </t:navigationMenuItem>
+        <t:navigationMenuItem id="nav_3"
+            itemLabel="Apache MyFaces Home" action="http://myfaces.apache.org" />
+	</t:jscookMenu>
+
+    <h:outputText value="<p>Dynamic binding: </p>" escape="false"/>
+
+    <t:jscookMenu id="menu2" layout="hbr" theme="ThemeOffice" styleLocation="css/jscookmenu">
+        <t:navigationMenuItems id="navitems" value="#{navigationMenu.panelNavigationItems}" />
+    </t:jscookMenu>
+</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/jslistener.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jslistener.jsp?rev=904288&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jslistener.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/jslistener.jsp Thu Jan 28 22:51:42 2010
@@ -0,0 +1,78 @@
+<%@ 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"/>
+
+    <h:form>
+
+        <h:panelGrid columns="2">
+            <h:outputLabel for="text1" value="Text:"/>
+            <h:inputText id="text1">
+                <t:jsValueChangeListener for="text2" property="value" expressionValue="($srcElem.value=='yes')?'true':'false'" />
+                <t:jsValueChangeListener for="text3" property="value" expressionValue="$srcElem.value" />
+                <t:jsValueChangeListener for="text4" expressionValue="$destElem.innerHTML = $srcElem.value" />
+                <t:jsValueChangeListener for="text5" expressionValue="($srcElem.value=='hide')?$destElem.style.display='none':$destElem.style.display='inline'" />
+                <t:jsValueSet name="countryMap" value="#{countryList.countryMap}"/>
+                <t:jsValueChangeListener for="text6" expressionValue="$destElem.innerHTML = countryMap[$srcElem.value]" />
+            </h:inputText>
+            <h:inputText id="text2"/>
+            <h:inputText id="text3"/>
+            <h:panelGroup id="text4" />
+            <h:panelGroup id="text5" >
+                <h:outputText value="Hide me - enter hide in first input-field."/>
+            </h:panelGroup>
+            <h:panelGroup id="text6" >
+                <h:outputText value="Countryname - enter ISO Code in first input-field (e.g. AT)"/>
+            </h:panelGroup>
+            <h:panelGroup/>
+            <h:selectOneMenu id="selone_menu_options" value="o2" styleClass="selectOneMenu">
+                <f:selectItem itemValue="" itemLabel="#{example_messages['empty_selitem']}" />
+                <f:selectItems value="#{jsListenerModel.optionItems}" />
+                <t:jsValueChangeListener for="selone_menu_options_text" expressionValue="($srcElem.options[$srcElem.selectedIndex].value=='o1')?$destElem.style.display='inline':$destElem.style.display='none';"/>
+            </h:selectOneMenu>
+            <h:inputText id="selone_menu_options_text"/>
+        </h:panelGrid>
+
+    </h:form>
+
+    <jsp:include page="inc/mbean_source.jsp"/>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>