body background="watermark.gif" not working!!!

hi,
i am new to JSF.i have a code(Login)
but when i put <body> tag with a bg image, i am not able to view that picture. Y?
here is my code.
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="bundle.Messages" var="Message"/>
<HTML>
<HEAD> <title>Input Name Page</title> </HEAD>
<body background="watermark.gif" bgproperties="fixed">
<f:view>
    <h:form id="helloForm">
        <h:messages style="color: blue"/>
        <%@include file="head.jsp"%>
         <center>
            <h3><h:outputText value="#{Message.login_header}"/></h3>
        </center>
        <table bgcolor="orange" align="center">
        <tr>
        <td>
        <table align="center">
        <tr>
        <td>
        <table align="center">
        <tr>
        <td>
        <h:outputText value="#{Message.ask_uname}"/>
        </td>
        <td>
        <h:inputText id="userName" value="#{PersonBean.userName}" required="true">
            <f:validateLength minimum="2" maximum="10"/>
        </h:inputText>
        </td>
        <tr>
        <td>
        <h:outputText value="#{Message.ask_pword}"/>
        </td>
        <td>
        <h:inputText id="password" value="#{PersonBean.password}" required="true"/>
        </td>
        </tr>
        </table>
        </td></tr>
        <tr align="right">
        <td>
        <h:commandButton id="submit" action="sayhello" value="Say Hello" /> 
        </td>
        </tr>
        <tr>
        <td>
        Forgot Password?     <a href="http://sipl58:8080/web2/forget.jsp">Click Here to retrieve</a>
        </td>
        </tr>
        </table>
        </td>
        </tr>
        </table>
    </h:form>
</f:view>
</body>
</HTML>Pls... help.
Ganesh

Have you tried by using the style attribute like that:
<body style="background-image:url(watermark.gif);background-attachment : fixed;
background-position : center;)">
If it does not work, have you seen some errors in the log file of the applciation server?

Similar Messages

  • Header background color does not work

    Hi,
    I would like to change the background color of the header element, but it does not work as I imagined
    First of all, here is the HTML:
    <body>
    <div id="wraper">
      <header>
        <h1><span>Pacific</span> Coastal Highway</h1>
        <nav>
          <ul>
            <li>Home</li>
            <li>Big Sur</li>
            <li>Pfeiffer Beach</li>
            <li>Elephant Seals</li>
            <li>Morro Bay</li>
          </ul>
        </nav>
      </header>
      // ... some other HTML elements & content ...
    </body>
    So, within <header> element we have <h1> and <nav> elements, and within that <nav> element there is a list that is actually menu.
    Here it CSS code that refers to these elements:
    #wraper {
        width: 1200px;
        background-color: #FFFFFF;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0px;
        border-right: 1px solid #000000;
        border-left: 1px solid #000000;
    body {
        margin: 0;
        background-color: #CBD2FB;
        font-family: "OpenSans Regular", "Gill Sans MT", Arial, "Times New Roman", sans-serif;
        color: #202020;
        background-image: -webkit-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: -moz-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: -o-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
        background-image: linear-gradient(180deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 11.91%,rgba(232,238,245,1.00) 25.91%,rgba(202,212,220,1.00) 100%,rgba(0,0,0,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(138,169,207,1.00) 100%,rgba(135,167,207,1.00) 100%,rgba(202,212,220,1.00) 100%);
    h1 {
        margin-top: 0px;
        font-size: 48px;
        text-shadow: 1px 1px 2px #969696;
        padding-top: 32px;
    h1, h2, h3 {
        font-family: "Prociono Regular", "OpenSans Regular", "Gill Sans MT", "Times New Roman", Arial;
        color: #507AAD;
        text-align: center;
    h1 span {
        position: relative;
        top: -37px;
        left: 35px;
        font-family: GoodDog, Arial, "Times New Roman", "Gill Sans MT", sans-serif;
        font-size: 47px;
    header nav ul {
        margin-right: auto;
        margin-left: auto;
        list-style-type: none;
        padding-left: 0px;
        width: 705px;
        /* [disabled]margin-bottom: 10px; */
    nav ul li {
        float: left;
        padding: 10px;
        display: block;
        width: 110px;
        text-align: center;
        background-color: #A9A3FF;
        border-right: 1px solid #FFFFFF;
        border-radius: 23px;
        background-image: -webkit-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
        background-image: -moz-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
    background-image: -o-linear-gradient(270deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
        background-image: linear-gradient(180deg,rgba(135,167,207,1.00) 0%,rgba(204,217,234,1.00) 60.11%);
        margin: 18px 5px;
    And, finally, here's how it looks:
    Now, I'd like to change the background color of the <header> element (to chage that white behind that <h1> and menu into some other color), so I just added the background color of the <header> element in CSS:
    header {
        background-color: #FF2D31;
    But, here is how it looks now:
    As you can see, although <nav> element with list (menu) is IN <header> element - the background color of <header> is just behind <h1> element.
    Do you know why it's happening, and what would be the best way to solve this problem?
    Thank you in advance.

    Ben Pleysier wrote:
    The problem is caused when floated children do not force the parent element to clear the floats.
    Nancy O. wrote:
    It may seem counter-intuitive but overflow:hidden prevents margin collapse on parent elements containing floats:
    The magic of “overflow: hidden” — Articles — Colin Aarts, freelance web developer
    I'm trying to figure out what happened (and why) in my example, where the problem occurred, but...
    I tried with inspecting elements with Firebug - to see what's what in case when there isn't overflow:hidden property that is related to <header> element in this example from the first post:
    As you can see in the picture - <header> element is only that blue area containing <h1> element, and although <nav> element (with the <ul> element inside) is IN <header> element - it is not shown within the blue area, as it is not within <header> element.
    As for the <h1> element which is inside of the <header> element, when I select it - it looks like this:
    Now, purple area indicates the padding-top of <h1> element, and I guess that yellow area which indicates the margin is actually browser's default margin of the <h1> element.
    Next, confusing is when I select <nav> element:
    Although <nav> element is selected - there is no that blue area indicating where is that element on the web-page... ?
    Next, when I select <ul> element, there is only yellow area indicating margin -  I guess that yellow area which indicates the margin is actually browser's default margin of the <ul> element.
    When I select <li> element - it's the same case as with <nav> element there is no that blue area indicating where is that element on the web-page... ?
    Finally, when I select <a> element - it looks like this:
    All in all - inspecting all <header> element and the elements within it didn't help me to see what and why this is happening (with the background color of the header element). I think the problem is in me, I'll wait a few days and maybe then things become clearer in my mind
    Sorry for my bad English.
    Again, thank you all!

  • Why does animated .gif not work with windows?

    I have created an animated .gif to place in a powerpoint presentation, but when I sent it to my client who used a windows computer, it does not work. When I try to open the .gif in my windows 98 virtual machine, it says it has errors.
    I created it in photoshop CC using the timeline and saving it with "save for web".

    AAAAAAAGGGGGGHHH!  Stupid Powerpoint corrupted the files when it "packaged" them
    Thank you for pointing me in the right direction.
    It is very difficult to figure out what my client is doing on his end.
    It won't let me mark you both as correct.

  • .gif not working with gallery

    .GIF animation image works on internet browser but when saving it and view it in gallery it does not play. On Samsung galaxy tab 10.1, .GIF animation pictures works in gallery so how come it does not work on my Sony tablet s when its using the same android software and gallery viewer. Please update this minor problem. Thanks.
    Solved!
    Go to Solution.

    Hello Cypher,
    Thank you for your post.
    I downloaded an animated GIF Player from the Android Market and it displayed my picture with animation.
    The Gallery will view your .GIF or .JPG but will not animate the picture.

  • My autoscale for my watermark is not working in Aperture 3

    I've been using the Aperture 3 program for the past few months without any problem. I set my own export preset with the watermark I made and it has been autoscaling my watermark perfectly every time. But, suddenly I went to export a batch of new pictures and my auto scale stopped working. I'm pretty sure I haven't changed the process I have been using, and I'm at a loss as to what to do.
    If it makes any difference, I originally put the pictures on a PC to do initial editing then I use a thumb drive to transfer the pictures on to my Mac.
    Thank you

    If you have been told to restore the phone with iTunes, then why don't you do this? It is irrelevant whether you have data that needs to be backed up or not.
    You need to restore the phone as new with iTunes in order to complete the unlock. You should get a message after the restore informing you that the phone has been unlocked. If the SIM does not work after that, then Sprint has NOT unlocked the phone, and you would have to go back to them. Apple does not unlock phones; only the carriers do.

  • Photoshop CC 2014 Background Eraser Tool Not Working

    I downloaded the CC 2014 update last week for all of my Adobe products. I've had no trouble with them except for the background eraser tool in Photoshop.
    I open a photo and try and erase the background (all of the same settings as I used before) and it's really laggy. You can't drag the eraser, only erase in single points. I have found that by using the standard eraser first, then the background eraser, it will work for about 40 minutes, before stopping again. I then have to restart my computer to get it to work again.
    As you can imagine, this is really frustrating. I can't figure out why it's doing this, and neither can my company's IT department. It's not maxing out the RAM or peaking the CPU, so they're pretty sure it's an issue with PS.
    I have tried uninstalling, running the CC Cleaner tool, and then re-installing, but that hasn't fixed it.
    Is anyone else having this problem? How did you fix it?
    Emily

    Adobe finally admits that this issue is a known issue. They tried to blame it on an outdated graphics card driver (see above), but mine was current. After I headed off all of their illogical excuses, one by one, they finally sent me an email stating the issue is definitely on their end and they were able to replicate it on their end - contrary to a previous email in which they attempted to shift blame on my end. I have to say Adobe gave all appearances that they are dismissive and in denial about it - until today. Once again, they escalated the issue (Level 2 - whatever that means). I'm not holding my breath. Thoroughly frustrated with how Adobe refused to take ownership of this until I had them corralled. And yes - I did let them know I was not pleased. Very disappointed with Adobe support. I invested a lot of time in previous support sessions, and the issue is still not resolved.

  • Background app refresh not working mail app

    I have an Iphone 4 with the latest IOS7. Background app refresh is on but it's not working, at least for Mail and Mailbox app. I already tried reseting all settings and restarting.
    This is what I do to test if it's working.
    1) I send myself a test email
    2) I wait to see if I get the badge count update (I get it in mailbox but I dont get it in Mail app)
    3) I put the phone in airplane mode
    4) I open the apps to see If the test email was download while I was on wifi and it's not there.
    Also it's very strange that my mail app badge count doesn't get updated...

    So here is what I ended up doing.
    I did a fresh restore and logged into my icloud. I waited for all my calendars, contacts, reminders, ect. to sync and turned off icloud but selected the option to keep that data on my phone. Then I created a new icloud account and waited for the new data to sync to my new icloud. After that I performed another fresh restore but this time I logged into my new icloud. I downloaded "Newsify" again and waited for it to do the background app refresh and it did :). It turns out that it stopped doing it and it was the app the whole time of just buggy ios 7 so I restored from the backup I did before all of this and end of sotrie.

  • Document.body.style.overflow = 'hidden' not working. page continues to scroll

    <html>
    <head>
    <style>
    body { overflow: hidden; width: 600px; height: 6000px; }
    </style>
    </head>
    <body>
    any text
    </body>
    </html>
    on this page disabled scrolling, but in firefox for android its not working.

    Hi Christian,
    I have changed it to px. But now I am getting the following error.
    java.lang.NullPointerException
    at com.sun.deploy.security.CPCallbackHandler.isAuthenticated(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler.access$1300(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.sap.xmii.applet.common.BaseApplet.stop(BaseApplet.java:1408)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Also my loading image is not appearing?
    Regards
    R.Prakash

  • Aperture 3.1 to Flickr Watermark does not work

    Good afternoon to you all
    I am using Aperture 3.1 and I have defined a preset for export with Watermark and it works perfectly well. When I do it as Web Export, defined exactly the same, and I upload photos to flickr by dragging them to the set copy that you can see in Aperture the photo actually uploads but its not watermarked.
    Any ideas or thoughts on this?
    Help will be welcomed
    Regards from Barcelona, Spain
    Albert

    Hi
    I have investigated a little bit in the net and it seems that this USB 1.1 to RS232 converter creates a virtual serial port (possibly the com 3)
    As far as I know the built in modem uses the same port.
    Possibly there could be compatibility problems.
    However, this is not a Toshiba product and therefore I would recommend contacting the Prolific support.
    I was on the website and its online.

  • JProgressBar background color does not work in XP with JRE 1.4.2

    Hi,
    I am setting the background color of JProgressBar. While it used to work in 1.4.1, the background color does not show in 1.4.2 on XP. It looks like it has something to do with the XP L&F in 1.4.2. I am setting the L&F to systemlookand feel. Is anyone aware of anyworkaround for this? Setting the opaque property does not help either. I don't want to say swing.xp=false. We need the xp look and feel.
    Any help will be appreciated.
    Thanks.
    Sujatha.

    Actually I draw a blank looking into it a bit deeper. The Windows UI paintXPBackground method is private and the XPStyle class can not be accessed outside the package. I guess the reason for this is to protect the XP LAF from having the backgrounds changed etc.
    If it is important to you the source is available for you to replicate your own MyXPStyle class and then you would have to recreate the whole paintDeterminate methods in your MyProgressBarUI class. It would not be very future proof though.

  • Animated GIF - not working properly

    Hi,
    I'm trying to get an animated GIF working in my swing program. I am drawing on a JPanel using paintComponent.
    Here's the thing: It will animate, (faster then it should) and then pause animation for 5 seconds, then animate again. I am trying to achieve constant animation, at the framerate in which is set inside of the GIF file. Is there a better method to use then what I am using? It's not a repaint problem, as I am repainting constantly. Here's what I got:
    String filename = "myimage.gif";
    Image img = Toolkit.getDefaultToolkit().getImage(filename);
    g.drawImage(img, x + 28, y + 79, this);A code snippet would be helpful as I am only two weeks into Java and have difficultly reading the Sun documentation.
    Thanks for reading,
    Nate

    Does that entire code snippet appear in the paintComponent method? It should be more like this,
    String filename = "myimage.gif"
    Image img = Toolkit.getDefaultToolkit().getImage(filename);
    public void paintComponent(Graphics g) {
         g.drawImage(img,x+28,y+79,this);
    }You shouldn't try to get the image from the toolkit everytime. Just get it once, and everytime you paint the image, the next frame will be painted.
    To introduce a constant delay you can use javax.swing.Timer to simply repaint the panel whenever you want to. Here's sort of a basic example
    import javax.swing.ImageIcon;
    import javax.swing.JPanel;
    import javax.swing.Timer;
    import java.awt.Image;
    public class GifAnimation extends JPanel
            implements java.awt.event.ActionListener {
        private Image img;
        private Timer timer;
        private int delay;
        public GifAnimation(String fileName) {
            java.awt.Toolkit toolkit = java.awt.Toolkit.getDefaultToolkit();
            //The image icon will load the image
            img = new ImageIcon(toolkit.getImage(fileName)).getImage();
            if (img.getWidth(null) == -1 && img.getHeight(null) == -1) {
                System.err.println("Unable to load image: " + fileName);
            }else {
                setPreferredSize(new java.awt.Dimension(img.getWidth(null),
                                                       img.getHeight(null)));
            //in milliseconds
            this.delay = 100;
        public int getDelay() {
            return delay;
        public void setDelay(int delay) {
            this.delay = delay;
            if (timer != null) {
                timer.setDelay(delay);
        //This method is called when a component is connected to a native
        //resource.  It is an indication that we can now start painting.
        public void addNotify() {
            super.addNotify();
            if (img.getWidth(null) != -1) {
                timer = new javax.swing.Timer(delay, this);
                timer.start();
        public void removeNotify() {
            super.removeNotify();
            if(timer != null) {
                timer.stop();
                timer = null;
        public void actionPerformed(java.awt.event.ActionEvent e) {
            //you can alternatively use paintImmediately(), but there are
            //going to be certain consequences to using that.
            repaint();
        public void paintComponent(java.awt.Graphics g) {
            //Clears the background before drawing the next frame
            super.paintComponent(g);
            if(img.getWidth(null) != -1) {
                int x = (getWidth() - img.getWidth(null))/2;
                int y = (getHeight() - img.getHeight(null))/2;
                g.drawImage(img,x,y,this);
    }In a GIF file each frame has a duration specified in hundreds of a second. And each frame also has an offset position (not all the frames need to have the same width or height). I can show you how to load this information from the file, but I'm not sure if it would bring major confusion. It requires the use of javax.imageio.ImageIO and javax.imageio.metadata.IIOMetadata . It also requires a recursive method to search the image's metadata for the needed information (a bit overwhelming for a person two weeks into java).

  • Tile background in html not working

    I've been editing my html using dreamweaver to tile the background of my webpage.
    <style type="text/css" media="screen">
                html, body  { height:100%; }
                body {
                          margin: 0px;
                                            padding: 0px;
                                            background-image: url(http://paengrolluqui.com/Ecobin/bg.jpg);
                                            background-repeat: repeat-x;
                object:focus { outline:none; }
                #flashContent { display:none; }
            </style>
    Saved changes, republish, but still it doesn't work. When I run the website, It only shows the artboard I made in flash catalyst, no backgrounds.
    Any ideas? I really need some help. Thanks!

    Acutally, what is happening is the Flash content is filling up the browser, thus not showing your tiled image. Change this
    swfobject.embedSWF(
                    "Main.swf", "flashContent",
                    "100%", "100%", ...
    to
    swfobject.embedSWF(
                    "Main.swf", "flashContent",
                    "1024", "768",...
    and the two <object> references
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="Main"
    to
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1024" height="768" id="Main"
    and
    <object type="application/x-shockwave-flash" data="Main.swf" width="100%" height="100%">
    to
    <object type="application/x-shockwave-flash" data="Main.swf" width="1024" height="768">
    That should do the trick.
    Chris

  • Animated gifs not working

    I have created several animated gifs (using photos on a continuous loop) in photoshop on my mac, but they aren't working when we upload the gifs to our website. I've been creating these short animations for ages and all of the old ones are still working online. However I'm not doing anything differently, and am being careful to create them properly. The animations also play properly when I drop them into any old web browser. It's only when we upload them to a website that they stop working and display only the first frame.
    Since a) I haven't changed the way I make these animated gifs, b) they work when dropped into a web browser, and c) the previously created animations are working online, does anyone have any idea why these recently created ones aren't working? Is it likely to be a photoshop problem?
    Any ideas appreciated!

    Can you share a sample web page?
    Which browsers are you using to test the live web pages? Some browsers may have optionally disabled animated GIFs (although this would be unlikely if one GIF plays and another does not). ...and Safari has had a history of quirks with animated GIF play.

  • LinkListExplorer iview BackGround Image path not working

    HI All ,
    As i am using Layout set LinkListExplorer for few external links , when i am giving image name for eg growth.jpg in  background image path,  which is placed at /etc/public/mimes/images it is not showing anything , the same is working for NewsBrowser Layout set  . I have tried many thing all possiblities but no success .
    Pls help me in this regard.
    Shwetang saxena

    Hi Vedant,
    APEX only replaces the #WORKSPACE_IMAGES# variable within APEX itself. This is quite logical, because what you see in the APEX developer space is generated by PL/SQL from the database, so APEX can change what it wants. APEX can't access the files however, that's logical to because APEX would need premissions on the server and an Oracle directoryto start doing changes to files.
    So if you want to point to the image directory in the CSS file you need to provide the full path.
    Regards,
    Joni

  • Background program is not working properly,when i am using job_open ,submit

    hai ,
    i am using job_open ,submit and job_close for scheduling one program background and use submit to another program ,all are working properly but it is working as a forground program not as abackground program. i want to work it as a background program.
    plz give a solution.

    Hi,
    Please find a sample program format for executing a submit program in background.
    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Thanks & Regards,
    Harish

Maybe you are looking for