struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10979] - DynaActionForm in session losts datas.
Date Sat, 27 Jul 2002 18:59:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10979>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10979

DynaActionForm in session losts datas.

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From craig.mcclanahan@sun.com  2002-07-27 18:59 -------
Fixed in nightly build 20020728.  Your analysis of how
RequestUtils.createActionForm() was checking for whether an existing instance
can be recycled is correct -- it was incorrectly accepting *any* DynaActionForm
instance stored under the same session attribute key, instead of just one for
the particular form bean being requested.

However, it is unlikely that anyone would have actually run into this bug,
unless they were using the "attribute" attribute on an <action> to cause the
form beans for different forms to be stored under the same key.

The contract for form beans is that the reset() method should reset all
properties to their initial state.  In particular, this is required to make sure
that boolean properties corresponding to checkboxes are set correctly.  If you
need your reset() method to have different behavior, you will need to subclass
DynaActionFormBean and implement a custom reset() method.

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message