[
https://issues.jboss.org/browse/RF-13167?page=com.atlassian.jira.plugin.s...
]
Christoph W. commented on RF-13167:
-----------------------------------
Sorry, JBoss has to much requirements for a contributor. Especially for contributor of one
single line of code.
I can give it here:
{{String value = "rf-ddm-lbl " + (isDisabled ? "rf-ddm-dis " :
"rf-ddm-unsel ") + convertToString(styleClass);}}
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.
Fix For: 5-Tracking
Original Estimate: 30 minutes
Remaining Estimate: 30 minutes
We use rich:dropDownMenu with attributes disabled and styleClass. But when disabled is
true 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