commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krystian Szczesny (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BEANUTILS-226) [beanutils] Instantiate property if null in form bean
Date Fri, 19 Jun 2009 12:13:08 GMT

    [ https://issues.apache.org/jira/browse/BEANUTILS-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721756#action_12721756
] 

Krystian Szczesny commented on BEANUTILS-226:
---------------------------------------------

Hi all,

it's been almost 7 years already ;)
Any chance this great feature will be included?

Regards

> [beanutils] Instantiate property if null in form bean
> -----------------------------------------------------
>
>                 Key: BEANUTILS-226
>                 URL: https://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
>             Fix For: LATER THAN 1.8.1
>
>         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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message