[ http://jira.andromda.org/browse/BPM-215?page=history ]
Wouter Zoons updated BPM-215:
-----------------------------
Version: 3.1M1
Fix Version: 3.1
> Support JavaBeans in action form
> --------------------------------
>
> Key: BPM-215
> URL: http://jira.andromda.org/browse/BPM-215
> Project: Bpm4Struts Cartridge
> Type: Improvement
> Versions: 3.1M1
> Reporter: Roland Szabo
> Assignee: Wouter Zoons
> Priority: Minor
> Fix For: 3.1
>
> It would be nice if the cartridge could utilize the nested property feature
> of Struts. That would allow for the modeller to use JavaBeans as parameters
> for controller methods, instead of listing every single property. The
> controllers would have methods like:
> +loadCustomer(customer : Customer)
> This would mean that there is a Customer object in the generated form, called
> customer. This would also simplify the implementation of the controller, as
> most likely the Business Logic classes return a Customer object, or something
> like that anyway, there would be no need to copy the fields.
> Then the events could contain parameters like:
> customer.id : datatype::int
> customer.name : datatype::String
> These would correspond to the properties of the customer object in the
> session object. Similar to the generated Dummy classes for tables, it would
> be possible to create dummy classes here too.
> Struts supports populating the nested properties, however, the nested class
> must not be null when this occurs, otherwise an exception is thrown. This
> could be achieved by requiring a default constructor for the nested class (it
> should be a JavaBean anyway) and then initializing the nested fields like:
> TestBean nested = new TestBean()
> or writing special property getter with lazy initialization:
> TestBean getNested() {
> if (nested == null) nested = new TestBean();
> return nested;
> }
> This behaviour could be recursive, meaning customer.address.street would mean
> that there is a further JavaBean as the address property of the customer
> object, which has a street property. (Struts allows this)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel