2 Replies Latest reply on Dec 8, 2010 7:41 AM by Rajib Sharma

    PDF generation and conditions

    Nicola Di Clemente Newbie

      Hi,


      I have the following code that doesn't work (look at the c:if...)




      <p:document xmlns:ui="http://java.sun.com/jsf/facelets"
           xmlns:f="http://java.sun.com/jsf/core"
           xmlns:s="http://jboss.com/products/seam/taglib"
           xmlns:c="http://java.sun.com/jstl/core"
           xmlns:p="http://jboss.com/products/seam/pdf" disposition="attachment">
      
         <c:if test="#{myObject.myValue == 1}">
             <!-- generate pdf content -->
         </c:if>
      </p:document>





      Instead the condition


         <c:if test="#{1 == 1}">
             <!-- generate pdf content -->
         </c:if>




      works fine!


      Any ideas?


      Thanks, Nico.