[ http://issues.apache.org/jira/browse/BEANUTILS-226?page=all ]
Niall Pemberton updated BEANUTILS-226: -------------------------------------- Bugzilla Id: (was: 10319) Component/s: Bean / Property Utils > [beanutils] Instantiate property if null in form bean > ----------------------------------------------------- > > Key: BEANUTILS-226 > URL: http://issues.apache.org/jira/browse/BEANUTILS-226 > Project: Commons BeanUtils > Issue Type: Improvement > Components: Bean / Property Utils > Environment: Operating System: other > Platform: All > Reporter: Emmanuel Boudrant > Priority: Minor > Attachments: auto-instantiate-smart-converters.txt, > extensible-bean-utils.txt > > > Hello, > When nested property used inside a form bean, example : > a class Date composed by 3 String. > if the property is null, PropertyUtils.lookup return a null value. > Is it possible to change this comportement by returning, if property is null, > the property instanciated by default constructor, like the comportment of the > jsp tag <jsp:useBean ... > > Else I can't write/read the nested property date.day if date is null, Struts > throw a exception. > -Emmanuel -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]