Re: Navigate in the object graph in tapestry!!!

2006-04-28 Thread Eduardo Valentim
Andy, I have the same issue, but a have found a solution (I think). I made a little modification in this class http://fisheye5.cenqua.com/viewrep/xwork/src/java/com/opensymphony/xwork/util/InstantiatingNullHandler.java from WebWork to work for me and override the method readCompile

Re: Navigate in the object graph in tapestry!!!

2006-04-24 Thread andyhot
I remember last year, someone wanted to do the same thing... and he succeeded by patching ognl. Looking at the link you provided, it seems that one can simply do a OgnlRuntime.setNullHandler. Have you tried that? However, an additional configuration point for this ognl setting would be nice... A

Re: Navigate in the object graph in tapestry!!!

2006-04-24 Thread Angelo Luis
In webwork if the property is null the ww construct the object, and i think that's use OGNL to do this, http://www.opensymphony.com/ognl/html/DeveloperGuide/nullHandler.html ... This is the part of WW in Action (Manning) that talk about that... Maybe, Tapestry implement htis some day (as soon as

Re: Navigate in the object graph in tapestry!!!

2006-04-24 Thread Geoff Longman
The ognl expression translates into java calls. So client.address.street would translate into getClient().getAddress().getStreet() if getClient() or getAddress() return null, boom you get an NPE. I doubt that if webwork is using OGNL that the behaviour there is any different from what I have de

Navigate in the object graph in tapestry!!!

2006-04-24 Thread Angelo Luis
I have a Client that have a Adrress and i want to navigate in the object graph in that way : client.address.street, without have a null pointer exception... how can i do that... I kwon that i can do that with webwork. is that a way to do in tapestry??? Both (tapestry and ww) uses OGNL, so P