I'm sorry for this recurring mail but I cant understand why it doesnt stop to be delivered to the mailing list. Maybe the OGNL curse ?? :-)
-----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Fred Lamuette Envoye : dimanche 19 octobre 2003 15:14 A : [EMAIL PROTECTED] Objet : RE: [OS-webwork] [OGNL] strange (?) behavior It could be a nice idea, but could be dangerous, it should be optionnal. I'm looking foward to getting the ognl version that adds a NullHandler. OGNL 2.6.4 ? Cheers. Richard HALLIER Chef de projet [EMAIL PROTECTED] 01.40.12.41.52 www.uniclick.org UNICLICK -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Patrick Lightbody Envoye : vendredi 17 octobre 2003 05:42 A : [EMAIL PROTECTED] Objet : RE: [OS-webwork] [OGNL] strange (?) behavior Actually, this is something I want to add to XWork "some day": a way to make Ognl automatically create objects for you if they are null. Drew Davidson (Ognl dude) has already added a NullHandler at my request, we just haven't implemented it in XWork yet. Eventually, the idea is to be able to do this: Foo foo = new Foo(); assertNull(foo.getBar()); stack.setValue("foo.bar.name", "Shazam, bar is created"); System.out.println(foo.getBar().getName()); Output: Shazam, bar is created Basically, you wouldn't have to initialize the dependant resources if there is no-arg constructor. -Pat -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fred Lamuette Sent: Thursday, October 16, 2003 10:13 AM To: [EMAIL PROTECTED] Subject: [OS-webwork] [OGNL] strange (?) behavior I know this problem is not obviously in the scope of this mailing list, but I'd like to know if I'm dreaming. public class Bar { private String name; ... } public class Foo { private Bar bar; ... } Executing Ognl.getValue("bar.name",foo) generates an exception when bar is null. It was not the expected result ... I expected to a null value. Maybe I am accustomed too much to BeanUtils from the Jakarta Project ... Cheers. Richard. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork