DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37057>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37057 Summary: reset() support for DynaActionForm Product: Struts Version: Unknown Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: Controller AssignedTo: dev@struts.apache.org ReportedBy: [EMAIL PROTECTED] Handling reset() for certain fields in dyna forms would help with the requirements of the <html:checkbox> tag. There are two approaches I've thought of so far. 1) Simply reset any boolean fields to false inside reset(). This could cause backward-compatibility issues if anyone out there is using boolean fields in action forms for anything other than checkboxes. 2) Allow the user to configure both an initial value and a reset flag. This could be something like: <form-bean name="MyForm" type="org.apache.struts.action.DynaActionForm"> <form-property name="firstName" type="java.lang.String" /> <form-property name="lastName" type="java.lang.String" /> <form-property name="someFlag" type="java.lang.String" initial="false" reset="true"/> </form-bean> Inside reset(), any property whose "reset" flag is set would be reset to its initial value. This would require both a DTD change, and a way for the DynaActionForm to know what form name it is configured for. For this, FormBeanConfig's createActionForm() can be modified to pass along the name onto the DynaActionForm it creates. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]