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

inplaceSelect seems to ignore disabled property in SelectItem

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate Issue
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Sample code below populating a list of SelectItems for inplaceSelect widget:

      for( ShipFromInfo info : item.getShipFromList() ) {
      SelectItem select = new SelectItem(info.getShipFromLoc(), info.getShipFromLoc()+" - "+item.getShipFromInventory());
      if( info.isSpacer() )

      { select.setDisabled(true); // disable view-only, unselectable items }

      list.add(select);
      }

      Using the list of SelectItems generated by this code I would expect that when inplaceSelect's popup display rendered the disabled elements would be view-only, i.e. unselectable. This is the behavior you get when using a vanilla JSF input selectonemenu widget.

      Currently Richfaces is displaying all items, disabled or not, to render the same and be selectable.

      As a huge plus it would be great if there was also a inplaceSelect property that let me set the style class for the rendered disabled items. This would be a great way to create informative separators in the list.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ilya_shaikovsky Ilya Shaikovsky
                  Reporter:
                  gwzoller Greg Zoller
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: