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=14800>. 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=14800 Fix initialization bug and add size parameter to form-property ------- Additional Comments From [EMAIL PROTECTED] 2002-12-05 06:29 ------- You are correct sir, you are confused :-) The code here can be a little confusing. As originally written, initial() checked to see if a cached copy of the object existed, would use that as the initial value all future copies of this field. If the field was an array of objects, it would clone the array (but not the objects that the array pointed to.) As a result, all arrays shared the same objects. For example, if I had an array initialized to an array of credit card numbers, the array would be clones but the credit card beans would be shared among all copies of the form, very bad. This new version causes ConvertUtils.convert to be called in all cases, never caching the value, meaning that each form gets fresh beans. Form properties are still initialized properly. The size= is very useful, since in many cases you don't need to initialize the beans (i.e., the bean's constructor can set it up to be initialized.) This saves you the trouble of having to write a custom converter to instantiate an array of beans. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>