You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Andrea Del Bene (JIRA)" <ji...@apache.org> on 2013/03/21 22:55:17 UTC

[jira] [Commented] (WICKET-5086) FormTester throws an exception when a Palette component is added to a Form associated with a compound property model

    [ https://issues.apache.org/jira/browse/WICKET-5086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13609551#comment-13609551 ] 

Andrea Del Bene commented on WICKET-5086:
-----------------------------------------

The error occurs when BaseWicketTester invokes getValue on the two AbstractOptions inside Palette component. AbstractOptions uses the default getValue defined inside FormComponent which tries to retrieve an inheritable model.
I think we should override getValue inside AbstractOptions, like we did with updateModel (see attached patch).
                
> FormTester throws an exception when a Palette component is added to a Form associated with a compound property model
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-5086
>                 URL: https://issues.apache.org/jira/browse/WICKET-5086
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.6.0
>         Environment: Windows 7, JDK 1.6_31
>            Reporter: Vincent MATHON
>         Attachments: wicket-palette-test.zip
>
>
> FormTester throws an exception when a Palette component is added to a Form associated with a compound property model:
> org.apache.wicket.WicketRuntimeException: No get method defined for class ... expression: choices
> It worked fine in Wicket 6.5.0, and works fine if the form is not associated with a compound property model.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira