Is there a way to perform an instanceof
check in EL?
E.g.
<h:link rendered="#{model instanceof ClassA}">
#{errorMessage1}
</h:link>
<h:link rendered="#{model instanceof ClassB}">
#{errorMessage2}
</h:link>
Is there a way to perform an instanceof
check in EL?
E.g.
<h:link rendered="#{model instanceof ClassA}">
#{errorMessage1}
</h:link>
<h:link rendered="#{model instanceof ClassB}">
#{errorMessage2}
</h:link>
Not very elegant as it mixes JSP EL and the earlier expression syntax, but doesn't require any extra Java code: