4 Replies Latest reply on Dec 13, 2007 2:45 PM by marinew

    Print page using RichFaces components : CSS media=print

    marinew

      Hello,

      I'm using RichFaces components, such as rich:dataTable, for example.
      I would like to allow users to print generated pages. So I have to include CSS stylesheets with media="print" property.

      But as RichFaces CSS files are automatically added to header page, I can't add this "media" property. Is there a way to do this ?
      If not, could you tell me what is the best issue ?

      Thanks for help.
      Marine

        • 1. Re: Print page using RichFaces components : CSS media=print

          Why you cannot? RichFaces adds its css file references to the header, but does not delete yours.

          Could you overview the problem in more details please.

          • 2. Re: Print page using RichFaces components : CSS media=print
            marinew

            Thanks for your response... and you're right !

            So, I understand that I will have to manually add links to RichFaces css files with media=print property in HTML header.
            Is there a way to know CSS files name provided by RichFaces ? I found some CSS files name by looking at HTML generated code, but names are odd.
            For example :
            /faces/a4j_3_1_2.GAcss/panel.xcss/DATB/eAGTWzQ.BgAD.AG8
            /faces/a4j_3_1_2.GAcss/table.xcss/DATB/eAGTWzQ.BgAD.AG8

            Can I use these names ?

            PS : Could you also tell me whether I can tell in JBoss forum that I want to watch for a topic, and receive mail when someone add a post ? Thanks !

            • 3. Re: Print page using RichFaces components : CSS media=print

              you can use whatever you want names for you own css files.
              you do not have to add links to RichFaces css files (I even have no idea what does it mean). You need to add reference to your css file from the < head > section of the page.

              To watch the forum, you need to be logged in, first. Then, you can click the "Watch this topic for replies" link at the bottom of the page close to the "new topic" and "post reply" buttons.

              • 4. Re: Print page using RichFaces components : CSS media=print
                marinew

                 

                you can use whatever you want names for you own css files.
                you do not have to add links to RichFaces css files (I even have no idea what does it mean). You need to add reference to your css file from the < head > section of the page.

                OK, I could indeed use my own CSS files. But I would like to use RichFaces skins CSS as a basis.

                Then, you can click the "Watch this topic for replies" link at the bottom of the page close to the "new topic" and "post reply" buttons.

                Thanks !! I didn't see it, despite I searched for a moment !