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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -