Hi!
I am using facelet and JSF2.
I define a parameter in a page:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui"
template="../templates/ui.xhtml">
<ui:param name="title" value="OnAir WebDemo"/>
...
</ui:composition>
in the ui.xhtml I have:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:c="http://java.sun.com/jstl/core"
>
<c:if test="#{!empty title}">
<h1>#{title}</h1>
</c:if>
</html>
but test is always being invoked as if there is no logical condition there!
How can I change the code so c:if
will be invoked only if title parameter exists?