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 2012/06/06 19:51:33 UTC
svn commit: r1347003 - in
/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc:
selectBooleanCheckbox/ selectManyCheckbox/ selectManyListbox/
selectOneListbox/ selectOneRadio/
Author: lofwyr
Date: Wed Jun 6 17:51:33 2012
New Revision: 1347003
URL: http://svn.apache.org/viewvc?rev=1347003&view=rev
Log:
TOBAGO-1151: Define default values for preferredWidth for tc:selectOneChoice
- tests
Added:
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectBooleanCheckbox/selectBooleanCheckbox-layout.xhtml
- copied, changed from r1346959, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox-layout.xhtml
- copied, changed from r1346959, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyListbox/selectManyListbox-layout.xhtml
- copied, changed from r1346959, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneListbox/selectOneListbox-layout.xhtml
- copied, changed from r1346959, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneRadio/selectOneRadio-layout.xhtml
Copied: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectBooleanCheckbox/selectBooleanCheckbox-layout.xhtml (from r1346959, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectBooleanCheckbox/selectBooleanCheckbox-layout.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectBooleanCheckbox/selectBooleanCheckbox-layout.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml&r1=1346959&r2=1347003&rev=1347003&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectBooleanCheckbox/selectBooleanCheckbox-layout.xhtml Wed Jun 6 17:51:33 2012
@@ -31,19 +31,13 @@
<tc:label value="tc"/>
<tc:label value="tx"/>
- <tc:selectOneChoice value="a" id="s1">
- <tc:selectItem itemValue="a" itemLabel="A Value"/>
- <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
- </tc:selectOneChoice>
- <tx:selectOneChoice value="b" label="normal" fieldId="s2">
- <tc:selectItem itemValue="a" itemLabel="A Value"/>
- <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
- </tx:selectOneChoice>
+ <tc:selectBooleanCheckbox value="true" id="s1" label="A Value"/>
+ <tx:selectBooleanCheckbox value="true" label="normal" fieldId="s2" itemLabel="A Value"/>
<tc:script file="script/tobago-assert.js"/>
- <tc:script onload="TobagoAssert.assertLayout('page:s1', 0, 25, 200, 20);"/>
- <tc:script onload="TobagoAssert.assertLayout('page:s2', 330, 25, 200, 20);"/>
+ <tc:script onload="TobagoAssert.assertLayout(jQuery('#page\\:s1').parent(), 0, 25, 200, 19);"/>
+ <tc:script onload="TobagoAssert.assertLayout(jQuery('#page\\:s2').parent(), 330, 25, 200, 19);"/>
</tc:page>
</f:view>
Copied: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox-layout.xhtml (from r1346959, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox-layout.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox-layout.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml&r1=1346959&r2=1347003&rev=1347003&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox-layout.xhtml Wed Jun 6 17:51:33 2012
@@ -31,19 +31,19 @@
<tc:label value="tc"/>
<tc:label value="tx"/>
- <tc:selectOneChoice value="a" id="s1">
+ <tc:selectManyCheckbox id="s1">
<tc:selectItem itemValue="a" itemLabel="A Value"/>
<tc:selectItem itemValue="b" itemLabel="An Alternative"/>
- </tc:selectOneChoice>
- <tx:selectOneChoice value="b" label="normal" fieldId="s2">
+ </tc:selectManyCheckbox>
+ <tx:selectManyCheckbox label="normal" fieldId="s2">
<tc:selectItem itemValue="a" itemLabel="A Value"/>
<tc:selectItem itemValue="b" itemLabel="An Alternative"/>
- </tx:selectOneChoice>
+ </tx:selectManyCheckbox>
<tc:script file="script/tobago-assert.js"/>
- <tc:script onload="TobagoAssert.assertLayout('page:s1', 0, 25, 200, 20);"/>
- <tc:script onload="TobagoAssert.assertLayout('page:s2', 330, 25, 200, 20);"/>
+ <tc:script onload="TobagoAssert.assertLayout('page:s1', 0, 25, 200, 40);"/>
+ <tc:script onload="TobagoAssert.assertLayout('page:s2', 330, 25, 200, 40);"/>
</tc:page>
</f:view>
Copied: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyListbox/selectManyListbox-layout.xhtml (from r1346959, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyListbox/selectManyListbox-layout.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyListbox/selectManyListbox-layout.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml&r1=1346959&r2=1347003&rev=1347003&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectManyListbox/selectManyListbox-layout.xhtml Wed Jun 6 17:51:33 2012
@@ -31,19 +31,19 @@
<tc:label value="tc"/>
<tc:label value="tx"/>
- <tc:selectOneChoice value="a" id="s1">
+ <tc:selectManyListbox id="s1">
<tc:selectItem itemValue="a" itemLabel="A Value"/>
<tc:selectItem itemValue="b" itemLabel="An Alternative"/>
- </tc:selectOneChoice>
- <tx:selectOneChoice value="b" label="normal" fieldId="s2">
+ </tc:selectManyListbox>
+ <tx:selectManyListbox label="normal" fieldId="s2">
<tc:selectItem itemValue="a" itemLabel="A Value"/>
<tc:selectItem itemValue="b" itemLabel="An Alternative"/>
- </tx:selectOneChoice>
+ </tx:selectManyListbox>
<tc:script file="script/tobago-assert.js"/>
- <tc:script onload="TobagoAssert.assertLayout('page:s1', 0, 25, 200, 20);"/>
- <tc:script onload="TobagoAssert.assertLayout('page:s2', 330, 25, 200, 20);"/>
+ <tc:script onload="TobagoAssert.assertLayout('page:s1', 0, 25, 200, 75);"/>
+ <tc:script onload="TobagoAssert.assertLayout('page:s2', 330, 25, 200, 75);"/>
</tc:page>
</f:view>
Copied: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneListbox/selectOneListbox-layout.xhtml (from r1346959, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneListbox/selectOneListbox-layout.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneListbox/selectOneListbox-layout.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml&r1=1346959&r2=1347003&rev=1347003&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneChoice/selectOneChoice-layout.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneListbox/selectOneListbox-layout.xhtml Wed Jun 6 17:51:33 2012
@@ -31,19 +31,19 @@
<tc:label value="tc"/>
<tc:label value="tx"/>
- <tc:selectOneChoice value="a" id="s1">
+ <tc:selectOneListbox value="a" id="s1">
<tc:selectItem itemValue="a" itemLabel="A Value"/>
<tc:selectItem itemValue="b" itemLabel="An Alternative"/>
- </tc:selectOneChoice>
- <tx:selectOneChoice value="b" label="normal" fieldId="s2">
+ </tc:selectOneListbox>
+ <tx:selectOneListbox value="b" label="normal" fieldId="s2">
<tc:selectItem itemValue="a" itemLabel="A Value"/>
<tc:selectItem itemValue="b" itemLabel="An Alternative"/>
- </tx:selectOneChoice>
+ </tx:selectOneListbox>
<tc:script file="script/tobago-assert.js"/>
- <tc:script onload="TobagoAssert.assertLayout('page:s1', 0, 25, 200, 20);"/>
- <tc:script onload="TobagoAssert.assertLayout('page:s2', 330, 25, 200, 20);"/>
+ <tc:script onload="TobagoAssert.assertLayout('page:s1', 0, 25, 200, 75);"/>
+ <tc:script onload="TobagoAssert.assertLayout('page:s2', 330, 25, 200, 75);"/>
</tc:page>
</f:view>
Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneRadio/selectOneRadio-layout.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneRadio/selectOneRadio-layout.xhtml?rev=1347003&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneRadio/selectOneRadio-layout.xhtml (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/selectOneRadio/selectOneRadio-layout.xhtml Wed Jun 6 17:51:33 2012
@@ -0,0 +1,49 @@
+<?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:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <tc:page id="page">
+ <tc:gridLayoutConstraint width="700px" height="600px"/>
+ <f:facet name="layout">
+ <tc:gridLayout columns="auto;auto" rows="auto;auto"/>
+ </f:facet>
+
+ <tc:label value="tc"/>
+ <tc:label value="tx"/>
+
+ <tc:selectOneRadio value="a" id="s1">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tc:selectOneRadio>
+ <tx:selectOneRadio value="b" label="normal" fieldId="s2">
+ <tc:selectItem itemValue="a" itemLabel="A Value"/>
+ <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+ </tx:selectOneRadio>
+
+ <tc:script file="script/tobago-assert.js"/>
+
+ <tc:script onload="TobagoAssert.assertLayout('page:s1', 0, 25, 200, 40);"/>
+ <tc:script onload="TobagoAssert.assertLayout('page:s2', 330, 25, 200, 40);"/>
+
+ </tc:page>
+</f:view>