[
https://issues.jboss.org/browse/RF-13167?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-13167:
-------------------------------
Fix Version/s: 5-Tracking
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
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