[jboss-user] [JBoss Seam] - Re: Type Checking in Expression Language

2008-01-27 Thread [EMAIL PROTECTED]
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?

[jboss-user] [JBoss Seam] - Re: Type Checking in Expression Language

2008-01-27 Thread dhinojosa
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

[jboss-user] [JBoss Seam] - Re: Type Checking in Expression Language

2008-01-27 Thread dhinojosa
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

[jboss-user] [JBoss Seam] - Re: Type Checking in Expression Language

2008-01-27 Thread [EMAIL PROTECTED]
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 _

[jboss-user] [JBoss Seam] - Re: Type Checking in Expression Language

2008-01-27 Thread mykey
... 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 ___

[jboss-user] [JBoss Seam] - Re: Type Checking in Expression Language

2008-01-27 Thread dhinojosa
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

[jboss-user] [JBoss Seam] - Re: Type Checking in Expression Language

2008-01-27 Thread mykey
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

[jboss-user] [JBoss Seam] - Re: Type Checking in Expression Language

2008-01-27 Thread [EMAIL PROTECTED]
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