Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-268 Here is an overview of the issue: --------------------------------------------------------------------- Key: WW-268 Summary: ParametersInterceptor doesn't set action parameters on ModelDriven action Type: Improvement Status: Assigned Priority: Major Project: WebWork Components: Interceptors Versions: 2.0-beta1 Assignee: Patrick Lightbody Reporter: Marco Papini Created: Tue, 26 Aug 2003 3:12 AM Updated: Tue, 26 Aug 2003 3:12 AM Environment: Orion 2.0.1 Description: Consider this use case: public class Model { String field = null; public String getField() { return this.field; } public void setField(String field) { this.field = field; } } public class ModelDrivenAction extends ActionSupport implements ModelDriven { String actionField = null; public String getActionField() { return this.actionField; } public void setActionField(String actionField) { this.actionField = actionField; } Model model = new Model(); public Object getModel() { return this.model; } } The actionField action property is never set, because the ParametersInterceptor just set the model properties if an action is a ModelDriven. Is this the supposed behaviour ? I think that's much better to make the ParametersInterceptor work directly on the value stack, so it can set the model properties and, if a property isn't found, go down the stack looking for a suitable property in the action. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.opensymphony.com/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork