Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13167

disabled contextMenu/dropDownMenu/menuGroup/menuItem is missing styleClass

    XMLWordPrintable

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                christoph_w Christoph W.
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified