You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/08/22 17:53:54 UTC
svn commit: r1160315 - in
/myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/selectOneRadio:
./ selectOneRadio.xhtml
Author: lofwyr
Date: Mon Aug 22 15:53:54 2011
New Revision: 1160315
URL: http://svn.apache.org/viewvc?rev=1160315&view=rev
Log:
sample
Added:
myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/selectOneRadio/
myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/selectOneRadio/selectOneRadio.xhtml
Added: myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/selectOneRadio/selectOneRadio.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/selectOneRadio/selectOneRadio.xhtml?rev=1160315&view=auto
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/selectOneRadio/selectOneRadio.xhtml (added)
+++ myfaces/tobago/branches/tobago-1.0.x/example/test/src/main/webapp/tc/selectOneRadio/selectOneRadio.xhtml Mon Aug 22 15:53:54 2011
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+
+<f:view
+ xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <tc:page width="700px" height="600px">
+ <f:facet name="layout">
+ <!-- fixme: rows="20px" -->
+ <tc:gridLayout columns="*;2*" rows="auto;20px" columnSpacing="30px"/>
+ </f:facet>
+
+ <tc:cell spanX="2">
+ <tc:messages>
+ </tc:messages>
+ </tc:cell>
+
+ <tc:label value="2 tc"/>
+ <tc:label value="tx"/>
+
+ <tc:selectOneRadio value="a">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tc:selectOneRadio>
+ <tx:selectOneRadio value="b" label="normal">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tx:selectOneRadio>
+
+ <tc:selectOneRadio value="a" readonly="true">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tc:selectOneRadio>
+ <tx:selectOneRadio value="b" readonly="true" label="readonly">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tx:selectOneRadio>
+
+ <tc:selectOneRadio value="a" disabled="true">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tc:selectOneRadio>
+ <tx:selectOneRadio value="b" disabled="true" label="disabled">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tx:selectOneRadio>
+
+ <tc:selectOneRadio value="a" tip="tip">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tc:selectOneRadio>
+ <tx:selectOneRadio value="b" tip="tip" label="tip">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tx:selectOneRadio>
+
+ <tc:selectOneRadio value="a" inline="true">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tc:selectOneRadio>
+ <tx:selectOneRadio value="b" inline="true" label="inline">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tx:selectOneRadio>
+
+ <tc:selectOneRadio required="true">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tc:selectOneRadio>
+ <tx:selectOneRadio required="true" label="required">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tx:selectOneRadio>
+
+ <tc:button label="submit"/>
+ <tc:cell/>
+
+ <tc:form>
+ <tc:selectOneRadio required="true">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tc:selectOneRadio>
+ <tx:selectOneRadio required="true" label="required">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tx:selectOneRadio>
+
+ <tc:button label="submit"/>
+ <tc:cell/>
+ </tc:form>
+
+ </tc:page>
+</f:view>