You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sc...@apache.org on 2005/06/29 03:42:13 UTC

svn commit: r202306 - in /myfaces/examples/trunk/sandbox: ./ inputSuggest.jsp

Author: schof
Date: Tue Jun 28 18:42:12 2005
New Revision: 202306

URL: http://svn.apache.org/viewcvs?rev=202306&view=rev
Log:
initial commit of new sandbox component: inputSuggest

Added:
    myfaces/examples/trunk/sandbox/
    myfaces/examples/trunk/sandbox/inputSuggest.jsp

Added: myfaces/examples/trunk/sandbox/inputSuggest.jsp
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/sandbox/inputSuggest.jsp?rev=202306&view=auto
==============================================================================
--- myfaces/examples/trunk/sandbox/inputSuggest.jsp (added)
+++ myfaces/examples/trunk/sandbox/inputSuggest.jsp Tue Jun 28 18:42:12 2005
@@ -0,0 +1,37 @@
+<%@ 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/extensions" prefix="x"%>
+
+<!--
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed 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>
+ <body>
+   <f:view>
+     <h:form>
+       <br/>
+       <x:inputSuggest value="#{user.state.key}" required="true">
+         <f:selectItems value="#{choices}"/>
+       </x:inputSuggest>
+
+       <h:messages/>
+       <h:commandButton value="Update"
+         action="#{userHandler.update}" />
+     </h:form>
+   </f:view>
+ </body>
+</html>