if statement - c:if condition not evaluating to true -
i have following code in xhtml app variable in primefaces datatable:
${app.paas.id_paas == var.design_app} <c:if test="${app.paas.id_paas == var.design_app}"> <script> console.log("inside!"); </script> </c:if> where page prints true console not print inside!. why isn't c:if entering condition?
it's because using jstl instead of facelets. your
c:if code executed during build time while primefaces variables processed @ render time. see here full explanation :jstl in jsf2 facelets... makes sense?
Comments
Post a Comment