You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Paul Bors (JIRA)" <ji...@apache.org> on 2013/05/14 22:13:16 UTC

[jira] [Comment Edited] (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=13657433#comment-13657433 ] 

Paul Bors edited comment on WICKET-5086 at 5/14/13 8:11 PM:
------------------------------------------------------------

As a work-around for 6.6.0 I got away with defining two String properties for my POJO used to mock the unit tests. The two properties are “choices” and “selection”.
This works because the crash happens when the FormTester is trying to get access to all of the form fields values and attempts to resolve those properties against the backing POJO for the PropertyModel.

Upgrading to 6.7.0 is not an option for us because of WICKET-5147 "WicketTester MockHttpRequest.getCookies very slow / OutOfMemory" which is fixed in 6.8.0 (scheduled for this Friday, May/17/2013).
                
      was (Author: paulbors):
    As a work-around for 6.6.0 I got away with defining two String properties for my POJO used to mock the unit tests. The two properties are “choices” and “selection”.

Upgrading to 6.7.0 is not an option for us because of WICKET-5147 "WicketTester MockHttpRequest.getCookies very slow / OutOfMemory" which is fixed in 6.8.0 (scheduled for this Friday the May/17/2013).
                  
> 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
>            Assignee: Sven Meier
>             Fix For: 6.7.0
>
>         Attachments: WICKET-5086.patch, 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