[ http://opensource.atlassian.com/projects/spring/browse/RCP-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter De Bruycker closed RCP-96.
--------------------------------
> Form reset problems with nested properties
> ------------------------------------------
>
> Key: RCP-96
> URL: http://opensource.atlassian.com/projects/spring/browse/RCP-96
> Project: Spring Framework Rich Client Project
> Issue Type: Bug
> Components: Binding System
> Reporter: Juan Gil
> Assignee: Oliver Hutchison
> Priority: Minor
> Fix For: 1.0.0
>
>
> class Product {
> String code;
> Price price;
> ....
> }
> class Price {
> Double base;
> Double tax;
> ...
> }
> class ProductForm extends AbstractForm {
> ...
> protected JComponent createFormControl() {
> TableFormBuilder formBuilder = new TableFormBuilder(this.getFormModel());
>
> formBuilder.row();
> formBuilder.add("code");
> formBuilder.row();
> formBuilder.add("price.base");
> formBuilder.row();
> formBuilder.add("price.tax");
> return formBuilder.getForm();
> }
> ------------------------------------
> Then I use this form in a View, that needs to refresh the product information based on other view. I do productForm.reset and it throws a exception :
> java.lang.IllegalArgumentException: Held bean value cannot be null!
> It's due to the nested properties on the form, because I works with a form without them.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|