You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org> on 2011/05/02 14:01:03 UTC

[jira] [Commented] (TOBAGO-995) TextArea applies always style class tobago-TextArea-required

    [ https://issues.apache.org/jira/browse/TOBAGO-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027628#comment-13027628 ] 

Helmut Swaczinna commented on TOBAGO-995:
-----------------------------------------

The bug is in TextAreaRenderer encodeEnd(). This is the fix:

    if (required || maxLength > 0) {
      String rendererName = HtmlRendererUtil.getRendererName(facesContext, input);
      final String[] cmds = {
          "new Tobago.In(\"" + input.getClientId(facesContext) + "\"," + required + ",\""
                  + StyleClasses.PREFIX + rendererName + "\" " + (maxLength > -1? "," + maxLength: "")  + "  );"
      };
      HtmlRendererUtil.writeScriptLoader(facesContext, null, cmds);
    }


> TextArea applies always style class tobago-TextArea-required
> ------------------------------------------------------------
>
>                 Key: TOBAGO-995
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-995
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Themes
>         Environment: All
>            Reporter: Helmut Swaczinna
>            Priority: Minor
>
> After clicking in an empty tc:textarea the style class tobago-TextArea-required is applied to this component, but attribute required is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira