4 Replies Latest reply on Oct 7, 2010 12:30 AM by sathishavunoori

    Create a water mark in my seam application

    sathishavunoori

      Hi to all,
      i searched for a solution for my newly raised problem in google and some blogs, that is , how can i create a watermark in my seam application? that applies for every page.
      But i didn't get any solution yet.


      Can any one help me in this?
      any help will be appreciated greatly


      thanks


      sathish

        • 1. Re: Create a water mark in my seam application
          cash1981

          What exactly do you want to watermark? Your images/pictures?


          I can't really see what else you can watermark.

          • 2. Re: Create a water mark in my seam application
            rvaneperen

            Are you using a template page?  If not you can see an example in a seam example app.  I believe that if you add something like below to your template, then every page that uses the template with have the watermark image.




            <style>
             <!--
             body {
             background-image: url(image.gif);
             background-repeat: no-repeat;
             background-attachment: fixed;
             }
             //-->
             </style>



            Not sure if you need the comments in there though.

            • 3. Re: Create a water mark in my seam application
              sathishavunoori

              Hi Shervin Asgari,


              I want to use image as water mark.
              Can you send me if you have any sample code on this or any hints?


              thanks
              sathish


                   

              • 4. Re: Create a water mark in my seam application
                sathishavunoori

                Hi Ray Van ,


                Yes i am using template page in my seam application.
                i tried your sample code but it is not working for our seam application because the background image of body covered  by all other rich-faces components like  rich:data table or rich:panel which are defined in all pages.that means when i open a page which consisting some rich:data table or rich:panel the background image will be disappeared.


                Can we have any other solution for making our watermark image in foreground ,then it may appear in front for every page?


                thanks
                sathish