[richfaces-issues] [JBoss JIRA] (RF-13167) disabled dropDownMenu is missing styleClass

Christoph W. (JIRA) jira-events at lists.jboss.org
Wed Sep 4 02:53:03 EDT 2013


     [ https://issues.jboss.org/browse/RF-13167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christoph W. updated RF-13167:
------------------------------

    Description: 
We use rich:dropDownMenu with attributes disabled and styleClass. But when disabled is false then styleClass is not applied. Using classes for styling via CSS is a must, also for disabled components.
Comment from attribute styleClass: ??"Space-separated list of CSS style class(es) to be applied when this element is rendered."??
Also a disabled component may be rendered (otherwise styling wont matter).

It is easy to fix. How to:
DropDownMenuRenderer.doEncodeEnd(...) contains following line:
{{String value = "rf-ddm-lbl " + convertToString((isDisabled ? "rf-ddm-dis" : ("rf-ddm-unsel " + styleClass))) + " ";}}
If component is disabled styleClass must be added also.

  was:
We use rich:dropDownMenu with attributes disabled and styleClass. But when disabled is false then styleClass is not applied. Using classes for styling via CSS is a must, also for disabled components.
Comment from attribute styleClass: "Space-separated list of CSS style class(es) to be applied when this element is rendered."
Also a disabled component may be rendered (otherwise styling wont matter).

It is easy to fix. How to:
DropDownMenuRenderer.doEncodeEnd(...) contains following line:
String value = "rf-ddm-lbl " + convertToString((isDisabled ? "rf-ddm-dis" : ("rf-ddm-unsel " + styleClass))) + " ";
If component is disabled styleClass must be added also.


    
> disabled dropDownMenu is missing styleClass
> -------------------------------------------
>
>                 Key: RF-13167
>                 URL: https://issues.jboss.org/browse/RF-13167
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-menu
>    Affects Versions: 4.3.3
>            Reporter: Christoph W.
>   Original Estimate: 30 minutes
>  Remaining Estimate: 30 minutes
>
> We use rich:dropDownMenu with attributes disabled and styleClass. But when disabled is false then styleClass is not applied. Using classes for styling via CSS is a must, also for disabled components.
> Comment from attribute styleClass: ??"Space-separated list of CSS style class(es) to be applied when this element is rendered."??
> Also a disabled component may be rendered (otherwise styling wont matter).
> It is easy to fix. How to:
> DropDownMenuRenderer.doEncodeEnd(...) contains following line:
> {{String value = "rf-ddm-lbl " + convertToString((isDisabled ? "rf-ddm-dis" : ("rf-ddm-unsel " + styleClass))) + " ";}}
> If component is disabled styleClass must be added also.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list