This content has been marked as final.
Show 3 replies
-
1. Re: Conditional templating with the EL
pmuir Jan 25, 2007 12:07 PM (in response to christian.bauer)If your using facelets, why not use a custom function
rendered="#{my:instanceOf(object, 'java.lang.String')}"
public static boolean instanceOf(Object object, String clazz) { return Class.forName(clazz).isAssignableFrom(object.getClass()); }
-
2. Re: Conditional templating with the EL
gavin.king Jan 25, 2007 12:57 PM (in response to christian.bauer)Can you do #{foo.class='MyClassName'} ?
-
3. Re: Conditional templating with the EL
christian.bauer Jan 26, 2007 3:39 AM (in response to christian.bauer)Doh, #{node.class.simpleName} works great.