-
1. Re: JSF2.0 ELResolver - Reflection with Javassist-Proxy
nickarls Dec 9, 2009 7:52 AM (in response to alexanderbell)Hmm, never wrote an EL resolver but could it have something to do with the proxy? Have you tried in Java SE if the proxy behaves the same way (don't know how proxies feel about field access, are they the
real
fields)? Tried @Dependent scoped beans which don't have proxies? -
2. Re: JSF2.0 ELResolver - Reflection with Javassist-Proxy
diegocoronel Dec 9, 2009 1:17 PM (in response to alexanderbell)Hi Alexander,
Can you share your EL extension? I think its really useful to build web interfaces without set/get. We always have so many gets/sets without business/logic values.
-
3. Re: JSF2.0 ELResolver - Reflection with Javassist-Proxy
diegocoronel Jan 18, 2010 10:37 PM (in response to alexanderbell)I got a really nice alternative Lombok using this framework isnt necessary to implement any extension inside your project.
I think Seam 3 should use some of these tricks.
-
4. Re: JSF2.0 ELResolver - Reflection with Javassist-Proxy
agori Jan 19, 2010 10:10 AM (in response to alexanderbell)
Theset
of the property works without any exceptions but if I enter the action (in my JSF Bean) the property isn't set.I have the same problem here. I can't read a field value using reflection. Instead I can get values from every method using reflection.
Is this a javassist limitation?
-
5. Re: JSF2.0 ELResolver - Reflection with Javassist-Proxy
alexanderbell Jan 19, 2010 3:13 PM (in response to alexanderbell)I restricted the reflection of my fields to JPA-entities. I haven't got many properties in my JSF Managed Beans so for my JSF Beans I wrote some getters and setters.
I'm gonna write a blog entry regarding that issue.