-
1. Re: ELResolver invocation order
pmuir Jan 17, 2008 11:11 AM (in response to mail.micke)Read the Javadoc for ELResolvers:
http://java.sun.com/javaee/5/docs/api/javax/el/ELResolver.html#getValue(javax.el.ELContext,%20java.lang.Object,%20java.lang.Object)
Specifically, throw a PropertyNotFoundException to make it skip to the next resolver in the chain. -
2. Re: ELResolver invocation order
mail.micke Jan 18, 2008 12:13 PM (in response to mail.micke)Thanks,
I'll have look at it. -
3. Re: ELResolver invocation order
mail.micke Jan 18, 2008 12:21 PM (in response to mail.micke)Had a look.
I wasn't looking for info about how an elresolver works,
I was more interested in why my Custom one gets invoked for beans which are managed by JSF/Seam.
I was hoping that my resolver would be the last one in the chain, but it doesn't seem to be.
Quick off-topic question about the PropertyNotFound exception:
Currently i just don't set the property to be resolved, and simply return null.
In your experience is it better to throw the exception?
Cheers -
4. Re: ELResolver invocation order
pmuir Jan 19, 2008 5:27 PM (in response to mail.micke)I wasn't looking for info about how an elresolver works,
You can't write a custom resolver without understanding the API.Currently i just don't set the property to be resolved, and simply return null.
In your experience is it better to throw the exception?
This is spec breaking, which you would know if you bothered to read the link I posted for you. -
5. Re: ELResolver invocation order
mail.micke Jan 19, 2008 7:47 PM (in response to mail.micke)Fair enough.
-
6. Re: ELResolver invocation order
mail.micke Jan 20, 2008 5:11 AM (in response to mail.micke)FYI
Just had a look at the SeamELResolver and SpringELResolver and couldn't see any PropertyNotFound exceptions being thrown.