javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2635

itemDescription on selectItems being ignored in MenuRenderer.renderOption

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Works as designed
    • Affects Version/s: 2.2.0-m06
    • Fix Version/s: None
    • Component/s: renderkit
    • Labels:
      None

      Description

      The html renderkit seems to ignore the itemDescription on selectItems. More specifically the description is correctly fetched but nothing is then done with it.

      This looks to be a one line change in MenuRenderer.java, specifically adding the line:
      writer.writeAttribute("title", curItem.getDescription(), "description");
      into renderOption(...). This successfully adds a title attribute to the option element and causes the description to be displayed when the select item it hovered over (tested on IE and firefox).

      The full text of the changed routine is attached.

        Activity

        Hide
        Manfred Riem added a comment -

        This would be a spec change, please file this at the spec issue tracker.

        Show
        Manfred Riem added a comment - This would be a spec change, please file this at the spec issue tracker.
        Hide
        jontyl added a comment -

        OK, done. I hadn't realised that itemDescription is supposed to be for tools. Apologies.

        Show
        jontyl added a comment - OK, done. I hadn't realised that itemDescription is supposed to be for tools. Apologies.

          People

          • Assignee:
            Unassigned
            Reporter:
            jontyl
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified