This content has been marked as final.
Show 4 replies
-
1. Re: EL question (testing if a object belongs to a class)
ben_utzer Feb 22, 2010 1:13 PM (in response to mobwerner)Hi Werner,
you might also be able to use
#{object.class.simpleName eq 'classname'}
Regards,
Ben
-
2. Re: EL question (testing if a object belongs to a class)
ranophoenix Feb 22, 2010 1:19 PM (in response to mobwerner) -
3. Re: EL question (testing if a object belongs to a class)
mobwerner Feb 22, 2010 3:55 PM (in response to mobwerner)Thank you Robert.
It looks like a nice OO way of doing things without calling instanceof.
I will try to implement it like this.
-
4. Re: EL question (testing if a object belongs to a class)
mobwerner Feb 22, 2010 3:59 PM (in response to mobwerner)Ben,
Nice suggestion but I tend to implement the solution Robert proposed.
I wonder if your solution would work with hibernate proxies.
Thanks anyway,
Werner