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

problems with stateless forms and radiogroups/checkgroups

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.3.3
    • None
    • wicket
    • None

    Description

      I'm trying to use radiogroup/checkgroup with stateless form, and it is not possible at the moment. I get the following exception:

      submitted http post value [radio4] for RadioGroup component [0:form:whatever] 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 component hierarchy changed between rendering and form submission.

      I think the problem lies inside Check & Radio components, which use Page.getAutoIndex() and that value is different before and after page submission for Check/Radio components.

      Now, it is not possible to override getValue() on Check/Radio components, so I'm kind of stuck now...

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              sluramod Alexei Sokolov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: