2 Replies Latest reply on Dec 17, 2007 6:17 PM by Norman Richards

    Seam PDF documents and conditional content

    Troy Tarrrant Newbie

      Hi,

      How does one do conditional content in seam pdf files. It seems there is no rendered attribute equivalent on all the <p:> tags and I couldn't get either <s:fragment> tags to work or <c:if> tags to work.

      Has anyone done this before?

      Troy

        • 1. Re: Seam PDF documents and conditional content
          Damian Harvey Master

          p:text has a rendered attribute.

          • 2. Re: Seam PDF documents and conditional content
            Norman Richards Master

            Here are a few ways that work for me:

             <p:paragraph> -------------- </p:paragraph>
            
             <p:paragraph rendered="false">This is a not rendered paragraph</p:paragraph>
             <p:paragraph rendered="true">This is a rendered paragraph</p:paragraph>
            
             <p:paragraph> -------------- </p:paragraph>
             <s:fragment rendered="false">
             <p:paragraph>This is a (not rendred) fragment</p:paragraph>
             </s:fragment>
            
             <s:fragment rendered="true">
             <p:paragraph>This is a (rendered) fragment</p:paragraph>
             </s:fragment>
            
            
             <p:paragraph> -------------- </p:paragraph>
            
             <ui:fragment rendered="true">
             <p:paragraph>ui:fragment rendered</p:paragraph>
             </ui:fragment>
            
             <ui:fragment rendered="false">
             <p:paragraph>ui:fragment not rendered</p:paragraph>
             </ui:fragment>