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
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
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
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
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