You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Robert Novotny (JIRA)" <ji...@apache.org> on 2007/07/05 17:58:04 UTC
[jira] Created: (WICKET-723) A 'recorder' subcomponent of Palette
is used as property expression in the CompoundPropertyModel
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
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.
[jira] Updated: (WICKET-723) A 'recorder' subcomponent of Palette
is used as property expression in the CompoundPropertyModel
Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Demay updated WICKET-723:
---------------------------------
Attachment: WICKET-723.patch.txt
I quickly fixed if with the attach patch. It is just a workaround waiting for bug fixed
> 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, WICKET-723.patch.txt
>
>
> 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.
[jira] Resolved: (WICKET-723) A 'recorder' subcomponent of Palette
is used as property expression in the CompoundPropertyModel
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (WICKET-723) A 'recorder' subcomponent of Palette
is used as property expression in the CompoundPropertyModel
Posted by "Robert Novotny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Novotny updated WICKET-723:
----------------------------------
Attachment: wicket-723-quickstart.zip
Testcase which uses Wicket 1.3.0beta2
> 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
> 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.
[jira] Commented: (WICKET-723) A 'recorder' subcomponent of Palette
is used as property expression in the CompoundPropertyModel
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511202 ]
Igor Vaynberg commented on WICKET-723:
--------------------------------------
its already fixed, or havent you noticed
public Recorder(String id, Palette palette)
{
- super(id);
+ super(id, new Model());
this.palette = palette;
setModel(new Model()); <==================
setOutputMarkupId(true);
> 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, WICKET-723.patch.txt
>
>
> 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.
[jira] Commented: (WICKET-723) A 'recorder' subcomponent of Palette
is used as property expression in the CompoundPropertyModel
Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511224 ]
Vincent Demay commented on WICKET-723:
--------------------------------------
Yes Igor, sorry, I did a bad patch, it is on trunk... so the bug is fixed on trunk
but in beta2 release branch we have :
public Recorder(String id, Palette palette)
{
super(id);
this.palette = palette;
setOutputMarkupId(true);
}
> 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, WICKET-723.patch.txt
>
>
> 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.