|
From: Jan H. (JIRA) <no...@sp...> - 2008-03-13 07:30:05
|
[ http://jira.springframework.org/browse/RCP-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Hoskens closed RCP-170.
---------------------------
Assignee: Jan Hoskens (was: Larry Streepy)
Resolution: Fixed
Added a default instance class that can be set on the formmodel. If not null, this will be used to instantiate an object when null is set, if null the old way will still apply.
Fixed in:
http://spring-rich-c.svn.sourceforge.net/spring-rich-c/?rev=2011&view=rev
(wasn't explicitly mentioned in commit message but it is there)
> AbstractFormModel.reset() needs default constructor on current FormObject
> -------------------------------------------------------------------------
>
> Key: RCP-170
> URL: http://jira.springframework.org/browse/RCP-170
> Project: Spring Framework Rich Client Project
> Issue Type: Bug
> Components: Binding System
> Reporter: Jan Hoskens
> Assignee: Jan Hoskens
> Fix For: 1.0.0
>
> Attachments: patch-RCP-170-fix.txt, patch-RCP-170-test.txt
>
>
> When FormModel is constructed, any Object that has the same properties can be set as FormObject. This object does not need to have a defaultcontructor. Resetting the formModel triggers the creation of a new instance of the current FormObject's class, that may not have a default constructor.
> eg:
> - create form with object Person (has default constructor)
> - set formobject Administrator (has no default constructor, hey no easy way of creating an admin! ;-) )
> - set formobject null or reset -> last formobject Administrator is used to create new instance, but no default constructor is found -> exception
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|