You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Dries Schulten (JIRA)" <ji...@apache.org> on 2011/09/15 20:34:08 UTC

[jira] [Updated] (WICKET-4058) RadioGroup WicktTester with a AjaxSubmitLink fails

     [ https://issues.apache.org/jira/browse/WICKET-4058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dries Schulten updated WICKET-4058:
-----------------------------------

    Description: 
After migrating to Wicket 1.5.0 some of our WicketTester unit-tests fail, the involve a RadioGroup component with a Enum as model. The setup works correctly at runtime. The problem is as follows:

The enum (simplified enum, for demonstration purposes): public enum ValEnum { VAL_A, VAL_B; }

A form containing a RadioGroup, the individual Radio components are based on the Enum values. When submiting the form (using a AjaxSubmitLink) containing the RadioGroup in a WicktTester situation a WicketRuntimeException is thrown containing:
org.apache.wicket.WicketRuntimeException: submitted http post value [VAL_A] for RadioGroup component [1:form:group] is illegal because it does not contain relative path to a Radio component. 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.

The debugger shows te correct value being placed in the postparameters when using a formtester to set the value ("radio1" is the value being set).

  was:
After migrating to Wicket 1.5.0 some of our WicketTester unit-tests fail, the involve a RadioGroup component with a Enum as model. The setup works correctly at runtime. The problem is as follows:

The enum (simplified enum, for demonstration purposes): public enum ValEnum { VAL_A, VAL_B; }

A form containing a RadioGroup, the individual Radio components are based on the Enum values. When submiting the form containing the RadioGroup in a WicktTester situation a WicketRuntimeException is thrown containing:
org.apache.wicket.WicketRuntimeException: submitted http post value [VAL_A] for RadioGroup component [1:form:group] is illegal because it does not contain relative path to a Radio component. 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.



        Summary: RadioGroup WicktTester with a AjaxSubmitLink fails  (was: RadioGroup WicktTester failures)

> RadioGroup WicktTester with a AjaxSubmitLink fails
> --------------------------------------------------
>
>                 Key: WICKET-4058
>                 URL: https://issues.apache.org/jira/browse/WICKET-4058
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.0
>            Reporter: Dries Schulten
>            Priority: Minor
>         Attachments: quickstart.zip
>
>
> After migrating to Wicket 1.5.0 some of our WicketTester unit-tests fail, the involve a RadioGroup component with a Enum as model. The setup works correctly at runtime. The problem is as follows:
> The enum (simplified enum, for demonstration purposes): public enum ValEnum { VAL_A, VAL_B; }
> A form containing a RadioGroup, the individual Radio components are based on the Enum values. When submiting the form (using a AjaxSubmitLink) containing the RadioGroup in a WicktTester situation a WicketRuntimeException is thrown containing:
> org.apache.wicket.WicketRuntimeException: submitted http post value [VAL_A] for RadioGroup component [1:form:group] is illegal because it does not contain relative path to a Radio component. 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.
> The debugger shows te correct value being placed in the postparameters when using a formtester to set the value ("radio1" is the value being set).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira