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 2011/05/19 04:01:12 UTC
svn commit: r1124512 - in
/myfaces/tomahawk/trunk/examples/simple/src/main/webapp: fieldset.jsp
home.jsp
Author: lu4242
Date: Thu May 19 02:01:11 2011
New Revision: 1124512
URL: http://svn.apache.org/viewvc?rev=1124512&view=rev
Log:
add fieldset.jsp example
Added:
myfaces/tomahawk/trunk/examples/simple/src/main/webapp/fieldset.jsp
Modified:
myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp
Added: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/fieldset.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/fieldset.jsp?rev=1124512&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/fieldset.jsp (added)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/fieldset.jsp Thu May 19 02:01:11 2011
@@ -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>
+
+ <%@include file="inc/head.inc" %>
+
+<body>
+ <f:view>
+ <h:form>
+ <t:fieldset legend="FieldSet">
+ <h:outputLabel for="input1" value="Input1: "/>
+ <h:inputText id="input1"/>
+ <t:htmlTag value="br"/>
+ <h:outputLabel for="input2" value="Input2: "/>
+ <h:inputText id="input2"/>
+ <t:htmlTag value="br"/>
+ <h:outputLabel for="input3" value="Input3: "/>
+ <h:inputText id="input3"/>
+ </t:fieldset>
+ </h:form>
+ </f:view>
+</body>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</html>
Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp?rev=1124512&r1=1124511&r2=1124512&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/home.jsp Thu May 19 02:01:11 2011
@@ -166,6 +166,11 @@
</h:outputLink>
</h:panelGrid>
+ <h:outputText value="FieldSet" />
+ <h:panelGrid style="padding-left:25px">
+ <h:outputLink value="fieldset.jsf"><f:verbatim>FieldSet</f:verbatim></h:outputLink>
+ </h:panelGrid>
+
</h:panelGrid>
</h:form>