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 13:59:06 UTC
[jira] [Created] (TOBAGO-995) TextArea applies always style class
tobago-TextArea-required
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
[jira] [Updated] (TOBAGO-995) TextArea applies always style class
tobago-TextArea-required
Posted by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Helmut Swaczinna updated TOBAGO-995:
------------------------------------
Status: Patch Available (was: Open)
> 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
[jira] [Commented] (TOBAGO-995) TextArea applies always style class
tobago-TextArea-required
Posted by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org>.
[ 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
[jira] [Updated] (TOBAGO-995) TextArea applies always style class
tobago-TextArea-required, if length validator is present
Posted by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Udo Schnurpfeil updated TOBAGO-995:
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0-alpha-3
1.0.36
Status: Resolved (was: Patch Available)
> TextArea applies always style class tobago-TextArea-required, if length validator is present
> --------------------------------------------------------------------------------------------
>
> Key: TOBAGO-995
> URL: https://issues.apache.org/jira/browse/TOBAGO-995
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Themes
> Affects Versions: 1.0.33, 1.5.0-alpha-2
> Environment: All
> Reporter: Helmut Swaczinna
> Assignee: Udo Schnurpfeil
> Priority: Minor
> Fix For: 1.0.36, 1.5.0-alpha-3
>
>
> 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