You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2007/03/15 18:43:09 UTC
[jira] Created: (TAPESTRY-1359) The BeanEditForm component should
attempt to create its object parameter if it is null
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
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Closed: (TAPESTRY-1359) The BeanEditForm component should
attempt to create its object parameter if it is null
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-1359.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.5
> 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
> Fix For: 5.0.5
>
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Assigned: (TAPESTRY-1359) The BeanEditForm component should
attempt to create its object parameter if it is null
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org