myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r743742 - /myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextAreaRenderer.java
Date Thu, 12 Feb 2009 13:58:25 GMT
Author: bommel
Date: Thu Feb 12 13:58:24 2009
New Revision: 743742

URL: http://svn.apache.org/viewvc?rev=743742&view=rev
Log:
(TOBAGO-626) Input length restriction for tc:textarea

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextAreaRenderer.java

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextAreaRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextAreaRenderer.java?rev=743742&r1=743741&r2=743742&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextAreaRenderer.java
(original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextAreaRenderer.java
Thu Feb 12 13:58:24 2009
@@ -120,7 +120,7 @@
       }
     }
     boolean required = ComponentUtil.getBooleanAttribute(input, Attributes.REQUIRED);
-    if (required || maxLength > -1) {
+    if (required || maxLength > 0) {
       String rendererName = HtmlRendererUtil.getRendererName(facesContext, input);
       final String[] cmds = {
           "new Tobago.In(\"" + input.getClientId(facesContext) + "\", true ,\""



Mime
View raw message