tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vince Marco <vma...@mac.com>
Subject Re: OGNL
Date Thu, 07 Aug 2003 02:57:48 GMT
Very cool, and easy to boot!!

So, now where is the best place to install this handler in Tapesry?  Is 
there an initialize method off the engine?

Vince

> You could set the NullHandler for Object.class and that would get 
> called when any object has a null evaluation:
>
>        OgnlRuntime.setNullHandler( Object.class,  new 
> MyObjectNullHandler());
>
> The default NullHander (ObjectNullHandler) gets installed this way and 
> simply allows null to filter through and cause NullPointerExceptions.  
> You could install one that interrogates the target object  for its 
> class and proceeds from there.
>
> - Drew
>



Mime
View raw message