myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1099405 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextareaRenderer.java
Date Wed, 04 May 2011 10:49:24 GMT
Author: lofwyr
Date: Wed May  4 10:49:23 2011
New Revision: 1099405

URL: http://svn.apache.org/viewvc?rev=1099405&view=rev
Log:
TOBAGO-995: TextArea applies always style class tobago-TextArea-required, if length validator
is present
 - patch applied

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

Modified: myfaces/tobago/trunk/tobago-theme/tobago-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/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextareaRenderer.java?rev=1099405&r1=1099404&r2=1099405&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextareaRenderer.java
(original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TextareaRenderer.java
Wed May  4 10:49:23 2011
@@ -120,7 +120,7 @@ public class TextareaRenderer extends In
     boolean required = ComponentUtils.getBooleanAttribute(input, Attributes.REQUIRED);
     if (required || maxLength > 0) {
       final String[] cmds = {
-          "new Tobago.In(\"" + input.getClientId(facesContext) + "\", true ,\""
+          "new Tobago.In(\"" + input.getClientId(facesContext) + "\"," + required + ",\""
               + Classes.requiredWorkaround(input) + "\" " + (maxLength > -1 ? "," + maxLength
: "") + "  );"
       };
       HtmlRendererUtils.writeScriptLoader(facesContext, null, cmds);



Mime
View raw message