jump to navigation

@CreateIfNull bug in Struts 2.0.8 and Webwork 2.0.3 July 17, 2007

Posted by maxmil in : struts2 , trackback

This is a note to remind me that in the struts 2.0.8 release which uses webwork 2.0.3 the automatic object conversion that should be able to create collections of objects directly from html forms has a limitation. Due to a bug in this version of webwork the @CreateIfNull annotation is not being used properly and if the collection is not instantiated with elements prior to parsing the parameters the automatic conversion fails.

Here are the bug references:

https://issues.apache.org/struts/browse/WW-2000

http://jira.opensymphony.com/browse/XW-527

At the moment i have no work around other than waiting for a new version. This has been fixed in webwork 2.0.4 but it has not yet been released.

Comments»

no comments yet - be the first?