Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4048

label's wicket:for does not work completely for Radios

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC7
    • 1.5.1
    • wicket
    • None

    Description

      The new functionality with <label wicket:for="..."> (See WICKET-1469) does not work completely for radio buttons, probably because the referenced Radio instance is no FormComponent but just a LabeledWebmarkupContainer.
      The problem is in AutoLabelResolver, line 181:
      if (component instanceof FormComponent)

      {...}

      There should be a special case for Radios to get its associated RadioGroup first and use that as component to derive the CSS class from

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            tapter Matthias Keller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: