You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/06/28 14:19:48 UTC

DO NOT REPLY [Bug 10319] New: - FEATURE REQUEST : Instanciate property if null in form bean

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=10319>.
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=10319

FEATURE REQUEST : Instanciate property if null in form bean

           Summary: FEATURE REQUEST : Instanciate property if null in form
                    bean
           Product: Struts
           Version: 1.0.2 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: b7st@yahoo.fr


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

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>