[jboss-user] [JBoss Seam] - Re: Conditional templating with the EL

petemuir do-not-reply at jboss.com
Thu Jan 25 12:07:33 EST 2007

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());
  | }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006439#4006439

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006439

More information about the jboss-user mailing list