You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/09/15 21:00:10 UTC
[jira] [Commented] (WICKET-4058) RadioGroup WicktTester with a
AjaxSubmitLink fails
[ https://issues.apache.org/jira/browse/WICKET-4058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105603#comment-13105603 ]
Martin Grigorov commented on WICKET-4058:
-----------------------------------------
Please attach a test case. Thanks!
> 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, they 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.
> It works correctly when submitting the form using a normal SubmitLink.
> Debugging the select function of the FormTester shows te correct value being placed in the PostParameters ("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