Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.3.0-beta2
-
None
-
Windows XP SP2, Sun JDK 1.5, Jetty 6.1.3
Description
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[]
);
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)
Attachments
Attachments
Issue Links
- duplicates
-
WICKET-700 Palette, Recorder Issue - Compound Property Model does not work.
- Resolved