myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r481483 - in /myfaces/core/branches/jsf12: build/src/main/resources/META-INF/maven-faces-plugin/components/includes/html/BorderProperty.xml impl/src/test/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRendererTest.java
Date Sat, 02 Dec 2006 01:26:00 GMT
Author: baranda
Date: Fri Dec  1 17:25:59 2006
New Revision: 481483

URL: http://svn.apache.org/viewvc?view=rev&rev=481483
Log:
Added default-value to "border" (Integer.MIN_VALUE) so it is ignored by the renderer if the
value is not changed.

Modified:
    myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/includes/html/BorderProperty.xml
    myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRendererTest.java

Modified: myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/includes/html/BorderProperty.xml
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/includes/html/BorderProperty.xml?view=diff&rev=481483&r1=481482&r2=481483
==============================================================================
--- myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/includes/html/BorderProperty.xml
(original)
+++ myfaces/core/branches/jsf12/build/src/main/resources/META-INF/maven-faces-plugin/components/includes/html/BorderProperty.xml
Fri Dec  1 17:25:59 2006
@@ -1,3 +1,19 @@
+<?xml version="1.0" ?>
+<!--
+  Copyright 2006 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.
+-->
 <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:mfp="http://myfaces.apache.org/maven-faces-plugin">
     <component>
@@ -5,10 +21,11 @@
             <description>Specifies the width of the border of this element, in pixels.
Deprecated in HTML 4.01.
             </description>
             <property-name>border</property-name>
-            <property-class>java.lang.String</property-class>
+            <property-class>int</property-class>
+            <default-value>-2147483648</default-value>  <!-- Integer.MIN_VALUE
-->
             <property-extension>
                 <mfp:required>false</mfp:required>
             </property-extension>
         </property>
     </component>
-</faces-config>
\ No newline at end of file
+</faces-config>

Modified: myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRendererTest.java?view=diff&rev=481483&r1=481482&r2=481483
==============================================================================
--- myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRendererTest.java
(original)
+++ myfaces/core/branches/jsf12/impl/src/test/java/org/apache/myfaces/renderkit/html/HtmlCheckboxRendererTest.java
Fri Dec  1 17:25:59 2006
@@ -80,8 +80,6 @@
 
         String output = writer.getWriter().toString();
 
-      System.out.println(output);
-
         assertEquals("<table><tr>\t\t" +
                 "<td><input id=\"_id0:0\" type=\"checkbox\" name=\"_id0\" value=\"mars\"/><label
for=\"_id0:0\">&#160;mars</label></td>\t\t" +
                 "<td><input id=\"_id0:1\" type=\"checkbox\" name=\"_id0\" value=\"jupiter\"/><label
for=\"_id0:1\">&#160;jupiter</label></td>" +



Mime
View raw message