[
https://issues.apache.org/jira/browse/TAPESTRY-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship reassigned TAPESTRY-1359:
----------------------------------------------
Assignee: Howard M. Lewis Ship
> The BeanEditForm component should attempt to create its object parameter if
> it is null
> --------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1359
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1359
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0
> Reporter: Howard M. Lewis Ship
> Assigned To: Howard M. Lewis Ship
>
> You have to write a bit of minor scaffolding:
> private MyObject _object;
> void onPrepare() {
> if (_object == null)
> _object = new MyObject();
> }
> Seems like the BeanEditForm could do this on its own: check for null, create
> a new instance, update the parameter at the end of the render or form
> submission.
> Obviously, this is predicated on the type being a JavaBean with a no-args
> constructor, and not an interface or abstract class, or anything else more
> complicated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]