You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ha...@apache.org on 2008/06/15 02:02:18 UTC

svn commit: r667903 - /myfaces/tomahawk/trunk/examples/simple/src/main/webapp/picklist.jsp

Author: hazems
Date: Sat Jun 14 17:02:17 2008
New Revision: 667903

URL: http://svn.apache.org/viewvc?rev=667903&view=rev
Log:
Promoting the selectManyPicklist component.

Added:
    myfaces/tomahawk/trunk/examples/simple/src/main/webapp/picklist.jsp

Added: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/picklist.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/picklist.jsp?rev=667903&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/picklist.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/picklist.jsp Sat Jun 14 17:02:17 2008
@@ -0,0 +1,52 @@
+<%@ 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>
+        <t:selectManyPicklist size="5" valueChangeListener="#{picklistBean.selectionChanged}">
+           <f:selectItem itemValue="option1" itemLabel="Option 1" />
+           <f:selectItem itemValue="option2" itemLabel="Option 2" />
+           <f:selectItem itemValue="option3" itemLabel="Option 3" />
+           <f:selectItems value="#{picklistBean.testList}"/>
+        </t:selectManyPicklist>
+        
+        <h:commandButton value="Submit" action="none"/>
+        
+        <h:outputText value="#{picklistBean.selectedInfo}"/>
+    </h:form>
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>