You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2007/07/05 18:18:04 UTC

[jira] Resolved: (WICKET-723) A 'recorder' subcomponent of Palette is used as property expression in the CompoundPropertyModel

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

Igor Vaynberg resolved WICKET-723.
----------------------------------

       Resolution: Duplicate
    Fix Version/s: 1.3.0-beta3

> A 'recorder' subcomponent of Palette is used as property expression in the CompoundPropertyModel
> ------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-723
>                 URL: https://issues.apache.org/jira/browse/WICKET-723
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket, wicket-extensions
>    Affects Versions: 1.3.0-beta2
>         Environment: Windows XP SP2, Sun JDK 1.5, Jetty 6.1.3
>            Reporter: Robert Novotny
>             Fix For: 1.3.0-beta3
>
>         Attachments: wicket-723-quickstart.zip
>
>
> When using a Palette component in the form and that form has a CompoundPropertyModel model, the palette's internal subcomponent which has an id 'recorder' is apparently used as the property expression. This usually causes an exception, since the form has neither getRecorder, nor setRecorder methods.
> Author author = new Author();
> author.setFirstName("John");
> author.setLastName("Milton");
> Form form = new Form("form", new CompoundPropertyModel(author));
> add(form);
> form.add(new Label("firstName"));
> form.add(new Label("lastName"));
> List names = Arrays.asList(new String[] {"Ferko", "Mirko", "Janko", "Zuzanka", "Miško"});
> IModel model = new PropertyModel(this, "selectedAuthors");
> form.add(new Palette("lstAuthors", model, new Model((Serializable) names), new ChoiceRenderer(), 5, false));
> Wicket 1.3.0 beta1 and previous did not throw the exception, however Wicket 1.3.0 beta2 starts doing that:
> WicketMessage: No get method defined for class: class wt.Author expression: recorder
> Root cause:
> org.apache.wicket.WicketRuntimeException: No get method defined for class: class wt.Author expression: recorder
>      at org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:391)
>      at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:266)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.