It works for you because you don't have a proxy in that situation, I guess. And
I had it as a Facelets function and then put it on the entity, it turns out
isInstance(Class) is useful in other situations - because of the proxy problem.
View the original post :
http://www.jboss.com/index.html?
Wait a minute ChristianThen why does it work for me?
| http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123904#4123904
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123904
___
jboss-user mailing
Ah damn it!
Too many caveats.
@Mykey: If you are using Facelets, which I hope you are. It'll probably be
better to make a facelet function instead of tie that to your entity, which
heavily violate the DRY principle.
https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-function
This doesn't work with entity proxies, they are runtime-generated subclasses.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123891#4123891
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123891
_
... which looks like the most beautiful way. I should try this as well. Thank
you.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123887#4123887
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123887
___
Heheh
I did it using:
| http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123880#4123880
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123880
___
jboss-user mailing list
jboss-user@lists.jboss.org
ht
I'm not sure whether I found exactly what you meant but I solved the problem by
implementing a method public boolean isInstance(String reference) into the
EntityBeans. Depending on the reference it returns true or false.
Thank you for your quick help.
View the original post :
http://www.jboss.c
The /examples/wiki code does this with an isInstance(String) method on the
entity. Check model.WikiNode and subclasses. I don't think there is a better
way.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123856#4123856
Reply to the post :
http://www.jboss.c