Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-96

XMLUI Wing-Framework 'Radio' class doesn't support adding radio buttons which are unselected by default.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1

      Description

      By default all of the addOption() methods within the org.dspace.app.xmlui.wing.element.Radio class will set the newly added option as "selected". Despite these methods accepting a "selected" boolean parameter, they never check that parameter in order to determine whether the option should be marked as "selected".

      Essentially, they all have the following line:
      setOptionSelected(returnValue);

      Whereas, they should have the following:
      if (selected) setOptionSelected(returnValue);

      This will be fixed shortly in DSpace 1.5.x SVN...just wanted to officially log it as a bug before fixing it.

        Attachments

          Activity

            People

            • Assignee:
              tdonohue Tim Donohue
              Reporter:
              tdonohue Tim Donohue
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: