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

Radio uuid is calculated wrongly for heavy instalations.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.13
    • 1.4.14, 1.5-RC1
    • wicket
    • None

    Description

      On big page's autoIndex for Page is getting bigger. Autoindex is used for radio buttons to identify its value (return "radio" + uuid).
      Uuid is a short primitive type and when its bigger then 32767 it become negative. Its a problem for radio button getValue code which looks like this:

      public String getValue()
      {
      if (uuid < 0)

      { uuid = getPage().getAutoIndex(); }

      return "radio" + uuid;
      }

      In such case new uuid is set and we will get an error after submit this radio:

      "WicketMessage: submitted http post value [radio-32768] for RadioGroup component [0:form:radioGroup] is illegal because it does not contain relative path to a Radio componnet. Due to this the RadioGroup component cannot resolve the selected Radio component pointed to by the illegal value. A possible reason is that componment hierarchy changed between rendering and form submission."

      Problem can be solved by changing short primitive type to Short object and checking its not null instead of <0.

      Attachments

        1. radioproblem.tgz
          5 kB
          Michał Letyński
        2. WICKET-3175.patch
          0.5 kB
          Michał Letyński

        Activity

          People

            ivaynberg Igor Vaynberg
            mikel Michał Letyński
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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