tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Lewis-Shell" <rlewissh...@mac.com>
Subject Re: OGNL
Date Thu, 07 Aug 2003 03:08:00 GMT
i'd expect the servlet to be a better place to initialise this than the
engine.  engines are session bound afterall (for statelful apps anyway)...

R

----- Original Message -----
From: "Vince Marco" <vmarco@mac.com>
To: "Tapestry development" <tapestry-dev@jakarta.apache.org>
Sent: Thursday, August 07, 2003 2:57 PM
Subject: Re: OGNL


> 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
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>



Mime
View raw message