Project Structure – Images from css not showing in subfolders....

Hi, I'm a newbe to JSF but really want to learn how to use it as Im currently doing a college project with Hibernate, and the JSF managed beans seems ideal for projects like this, anyways here's my prob...
Im using Netbeans 6.8 for a web-project with the normal folder structure, so in the Web Pages folder, i've an
index.xhtml – intro page
css – folder
js – folder
images – folder
pages – folder for rest of pages
and obviously to access the css in the index page i'd include:
<link href=”css/style.css” rel=”stylesheet” type=”text/css” />and then to access and add images to the index pages from the css, i the style.css file I have e.g.,
body{
     font-family:sans-serif, Ariel;
     font-size:12px;
     background: url(../images/bg.png) top left repeat-x;
  } and so on for all the js and ajax stuff which all works fine.
However in the pages subfolder say I've a page called solar.xhtml well then while it is possible for to access the css's by using ../ as in
    <link href=”../css/style.css” rel=”stylesheet” type=”text/css” />which adds the colour scheme and font types etc.so it's 100% getting this, however the images from the images folder are not being displayed, which I really can't understand as if I change the page to solar.jsp then it works fine also all the files inthe js folder are being accessed from the subfolder with ../ just not the images.
Would really appreciate any help or advice you could give me....
Many Regards
Pat Nevin

Hi - I've found the solution, so thanks anyway for anyway who was gona help!

Similar Messages

  • How to load images from css file in JavaFX 8

    I have this css file which loads images in JavaFX 8 application:
    #pill-left {
        -fx-padding: 5;
         -fx-border-image-source: url("/com/dx57dc/images/left-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
        -fx-border-image-repeat: stretch;
         -fx-background-color: null !important;
    #pill-left:selected { -fx-border-image-source: url("/com/dx57dc/images/left-btn-selected.png"); }
    #pill-left .label {
        -fx-text-fill: #d3d3d3;
        -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-left:selected .label {
        /* -fx-text-fill: black; */
        -fx-text-fill: white;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    #pill-center {
        -fx-padding: 5;
         -fx-border-image-source: url("/com/dx57dc/images/center-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
        -fx-border-image-repeat: stretch;
         -fx-background-color: null !important;
    #pill-center:selected { -fx-border-image-source: url("/com/dx57dc/images/center-btn-selected.png"); }
    #pill-center .label {
        -fx-text-fill: #d3d3d3;
         -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-center:selected .label {
        -fx-text-fill: black;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    #pill-right {
        -fx-padding: 5;
        -fx-border-image-source: url("/com/dx57dc/images/right-btn.png");
        -fx-border-image-slice: 4 4 4 4 fill;
        -fx-border-image-width: 4 4 4 4;
        -fx-border-image-insets: 0;
         -fx-border-image-repeat: stretch;
        -fx-background-color: null !important;
    #pill-right:selected { -fx-border-image-source: url("/com/dx57dc/images/right-btn-selected.png"); }
    #pill-right .label {
         -fx-text-fill: #d3d3d3;
        -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
    #pill-right:selected .label {
        -fx-text-fill: black;
        -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
    The images are located at the Java package com.dx57dc.images
    In Java 7_25 this code works as expected but in JavaFX 8 b99 I get this error:
    ava.lang.NullPointerException
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1129)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
    at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
    at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
    at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
    at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
    at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
    at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:99)
    at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:210)
    at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
    at java.lang.Thread.run(Thread.java:724)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
    20 total resources being managed
    4 permanent resources (20.0%)
    1 resources locked (5.0%)
    7 resources contain interesting data (35.0%)
    0 resources disappeared (0.0%)
    What is the proper way to load images from css in Java 8?
    Ref
    How to load images from css file in JavaFX 8 - Stack Overflow

    There is nothing special to do - you execute the statement from your program just like any other SQL statement.  The only thing to be aware of are the privilege/permission issues:
    When loading from a file on a client computer:
    READ CLIENT FILE privilege is also required for the database user.
    Read privileges are required on the directory being read from.
    The allow_read_client_file database option must be enabled.
    The read_client_file secure feature must be enabled.
    Revoking these privileges is also the only way you can prevent a user from executing the statement.

  • Contacts from 2010 not showing info in 2013

    I recently upgraded from 2010 to 2013.  When the contacts moved over i cannot find all of the information like anniversary date that was in the details tab of 2010.  Is there an icon or setting that i am missing to see all of this previous information?

    Hi
    As per the information and details provided by you, Contacts from 2010 not showing info in 2013, then please follow these steps: -
    After switch from Outlook 2010 to 2013, simply press
    CTRL+3 to see an overview of all your Contacts folders. If the folder is there and holds your contacts, then either the folder has not been set as an
    Outlook Address Book or Outlook Address Book Service is broken in your mail profile.
    If the contacts are not in the contact folder, then you either forgot to select the folder when creating an export, or didn’t select the folder when importing the
    PST-File. You can take a fresh copy of your backup or the pst-file that you imported from.
    Then connect to the pst-file in Outlook via:
    File > Open > Open Outlook Data File
    Now, check the contacts folder again. If you did not find your Contacts in that pst-file, you can select them all
    (CTRL+A) and move them (CTRL+SHIFT+V) or copy them
    (CTRL+SHIFT+Y) to your main contact folder.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G 

  • Importing songs from CDs - not showing up in my Library

    I am aving trouble importing songs from CDs.  I completed the process as instructed - using the "import this CD" button (I have done this many times successfully).
    The import process ran OK.  When the Import process completed, I looked in my music Library and the songs were not there.
    I repeated the process - same result.  Nothing in my music library.
    What should I do?

    Re: [iPod classic] - Re: Importing songs from CDs - not showing up in my Library
    Thu, Feb 09, 2012 08:01 PM
    When I load the CD, iTunes recognizes it and asks me if I want to Import the CD.
    When I click on "Import CD", the song titles are retreived and show up.  The iTunes bar at the top of the screen shows "Importing track 1" or "Importing  the song by title".  Each song is imported, and I can see each song being impotrted via the iTunes bar at the top of the screen.  iTunes shows that the CD has been imported, and the system dings when the import is done.
    This is exactly the same as every other time I've imported CDs.  The only difference is that the songs do not show up in the library.
    Thanks

  • Pages from template not showing DIV background images

    Hi;
    I have a template with several DIVs that each contain a background image. When I create a new page from that template, the the background images are missing. The code for the new page shows absolute paths to the images while the template show relative paths.
    template code for header:
    .twoColFixLtHdr #header {
        padding: 0 10px 0 20px;
        height: 215px;
        background-image: url(../images/10banner.jpg);
    template based page code for header:
    .twoColFixLtHdr #header {
        padding: 0 10px 0 20px;
        height: 215px;
        background-image: url(file:///C|/Documents and Settings/patrick/My Documents/web sites/The Marketing Guy/images/10banner.jpg);
    I don't know if the path codes are relevant in this case, but why don't the background images appear ?
    Thanks;
    Pat

    background-image: url(file:///C|/Documents and Settings/patrick/My Documents/web sites/The Marketing Guy/images/10banner.jpg);
    You've got a path pointing to files on your local computer instead of your local site.
    Did you save new page as "somefilename.html" or is still "untitled"?
    Did you properly define your DW local site folder?
    Creating  your first website in DW CS4 -
    http://www.adobe.com/devnet/dreamweaver/articles/first_cs4_website_pt1.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Why are my css not showing up on my website???

    I am new to Dreamweaver cs6 and using it for a school research project. I have made some css and know how to make them but for some reason they are not showing up when I load my website online. Please help!! Also I am not sure how to create links in my pages to connect to other pages on my site.
    http://www-personal.umich.edu/~borowjil/researchproject.html

    Well it had to get put on the server somehow otherwise your URL would not have worked.  How did you save/move the file so that it would be visible to us?  Do that for the CSS.  If you need to set this up, first ask your teacher because they should be able to help you put the files to the server.  This requires login credentials which no one here would have.  You can reference David's tutorial for where to go to set this up:
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html

  • My image files will NOT show up when I import them

    I CANNOT see my image files when I import them. This is the case regardless of whether I import them directly from my image files, or from my Flash library. They WILL NOT show up in the stage area, although the panel on the right shows the file! What can I do to correct this? I am using Flash CS4 which I need for my Digital Design classes through the Art Institute of Pittsburgh! I will FAIL this course if I can't get this program to work properly!!

    Here are a few things to check:
    Do you have anything else on Stage that might be covering them up? Is your target layer locked? Is the layer visibility turned off?
    Are you doing this in an existing document, or a brand new document?

  • Image from BLOB now showed when page cache set

    Hello,
    I have a page that display images from BLOB,
    After setting page cache to 1hour, page load faster but images not showed.
    Please help me on this.
    Thank you.

    Hi Halit,
    For me i dont thing, this problem occurred. As i checked by setting the page cache to 1 hour. After that images loaded normally as usual.
    I tried with my mozilla browser. In which browser you tried, may be your browser fault.
    Kindly check it.
    Brgds,
    Mini
    Mark Answers Promptly

  • JPG from Illustrator not showing properly

    Hi,
    I'm using Illustrator CS4 to make still images like backgrounds and other stuff for my videos. I export them as JPG using the "Use artboard" export option in Illustrator and select "All" so all the artboards export at once.
    I end up in this case two differents backgrounds named "image clip-01.jpg" and "image clip-02.jpg".
    When I import them into Premiere, I can see my two differents images in the Project and Source Panel, but if I drag them into my sequence, those two images become the same. I mean the image number 01 looks like the image number 02. So even if I have two different images with two differents names, the first one preview is not showing in the sequence. I'v double check , re-exporting etc, same thing. Rename the files. Same thing.
    The only way I can have my images to properly show is when I export them one by one in Illustrator. It's ok for two images, but when I have several of them, it's pretty annoying.
    Any ideas how to fix that?
    Thanks!

    What happens if you Open those JPEG's in Photoshop, then just Save them, and Import. Do they now show the proper Image?
    Are you using PrPro CS 5, or 5.5? There was a Bug in CS 5, where Still Images did not show correctly, and the little trip through Photoshop solved the issue. I believe that CS 5.5 fixed that.
    Good luck,
    Hunt

  • Airplay mirror imaging icon will not show up on my macbook pro even though i downloaded mountain lion. How do i get airplay icon to appear on my macbook pro?

    i have a macbook pro (almost positive that its a 2010 version) and i got mountain lion. The BIGGEST AND MAIN REASON i bought mountain lion was so that i can do airplay, allowing me to mirror image what is on my mac to my Apple TV. my whole computer is updated as far as the displays and newer features but the small airplay icon will not show up on the top of my screen. therefore, not allowing me to mirror image what is on my mac to my tv... it is connected to the same wifi as my apple tv. idk what to do. could it be because my macbook pro is a 2010? desprately looking for help...please help me with this issue
    thank you

    Welcome to Apple Support Communities
    Read > http://support.apple.com/kb/HT5404 AirPlay Mirroring requires an Early 2011 or newer MacBook Pro, so your MacBook Pro isn't supported.
    To mirror your MacBook Pro's display onto the Apple TV, you can use an application like Beamer or AirParrot even if AirPlay Mirroring isn't compatible

  • Music from iPod not showing up on new computer

    I recently purchased a MacBook after using iTunes with an HP laptop. Once I hooked my iPod up to my new Mac, many songs that I downloaded from sources other than iTunes and from CDs I had burned onto my iPod did not show up in my new iTunes.
    Also, any new music I purchase from iTunes, if I want to put them onto my iPod, iTunes tells me that I must erase all other files before adding my new purchases.
    Ideally I would like to keep all of the existing music from my old iPod and have it transfered to my new iTunes library.
    What do I do?!

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • DNG files exported from LR4 not showing changes made when opened in PSE10?

    I have LR4, and once I make some develop changes I've been exporting the files I want to use as DNG.  I then open them in PSE10 to make final edits.  It's been working fine, actually I had an older version of Adobe Raw in my PSE on my other computer.  So when I opened in PSE it would ask if I wanted to conver to compatible version to edit in camera raw.  I always said no b/c I didn't need to do anymore raw edits.  Now that I have installed PSE on my new computer, it has the new ACR version I guess.  When I open the DNGs to edit now I no longer get this error message, but it's showing my contrast, etc. as a standard raw setting instead of the changes I made in LR.  Some are showing....like vibrance, but "recovery" which I know is "highlights" in LR, and other things are not showing correctly.  I know that the options are different, but I don't want to use the ACR settings that it's using when I open the file, or have to go through them again.  I'm sure there's something I'm missing but can't figure it out.  Thanks for any help!

    I quite simply did not comment on the issue of "it is supposed to be better to keep DNG files as opposed to NEF files now, right?"
    The issue you raised in your original post, and the issue of choosing DNG versus NEF, are completely separate and independent.
    The issue of transferring photos to PSE would cause the exact same problems in your case whether or not you use DNG or NEF.
    On the issue of converting photos from NEF to DNG, there are advantages and disadvantages, some people do and some people don't. If you'd like to know more, I suggest you search this forum, there are plenty of discussions on this topic.

  • Error #2148 when loading image from ByteArray (not network or file)

    Hi!
    When I try to access bitmap data of Image loaded from ByteArray, I receive the following error:
    Error #2148: SWF file file:///C|/blablabla..../MyFlash.swf cannot access local resource file:///C|/blablabla..../MyFlash.swf/[[DYNAMIC]]/2. Only local-with-filesystem and trusted local SWF files may access local resources.
    I'm on Flash, not on AIR. And ByteArray contains PNG data which I prepare myself
    I tried to do it with Image.load and loader.loadBytes - the error is the same. I tried to use Flex SDK 3.4, 3.5 & 3.6 - nothing helps.
    When I add this image to my stage, it is displayed absolutely OK, but I still can't access bitmapData of this image - always got the same error.
    Flash Player 10
    Here are the samples of my code:
              public function onLoadComplete(event:Event):void
                var loader:LoaderInfo = event.target as LoaderInfo;
                var bmp:Bitmap = loader.loader.content as Bitmap; <-- here I received the error
                var bmpDat:BitmapData = bmp.bitmapData;
                this.bitmapData.copyPixels(bmpDat,new Rectangle(0,0,width,height), new Point(0,0));
                var loader:Loader = new Loader();
                loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
                loader.loadBytes(byteArray);
    And another try
           var image: Image = new Image()
           this.addChild(image);
           image.addEventListener(FlexEvent.UPDATE_COMPLETE, onCompleteLoad2 );
          image.load(byteArray);
          public function onCompleteLoad2 (e:flash.events.Event):void
                     var image:Image=e.target as Image;
                     var bitmapData:BitmapData;
                     bitmapData=new BitmapData(image.width,image.height,true,0);             
                     bitmapData.draw(image); <-- here I received the error, while image is correctly added to the stage and displayed
    What's wrong? It seems, the image loaded from byteArray is treated as local resource. How can I overcome it inside the code? Because this .swf is
    run on different computers and I can't just add a flash security exception on every of them....
    Please, help I spent, maybe 20 hours and still can't find the solution

    I had the same problem, except I was reading in the image from the local disk using FileReference.  Anyway, my issue was resolved by using the
    -use-network=false option on the command line of my compiler (I do all my development in the shell using 'vi' to edit and mxmlc to compile).
    Ttry "-use-network=false" and see if that helps...
    ...bob...

  • White Boxes from EPS Not Showing Up in INDD CS5

    this is kind of lame, but I'm still curious...
    I have an Illustrator eps file (CS4) that had black and white shapes, text, etc (very simple), however when I placed the eps file into InDesign (CS5), the white box did not show up. There is a black stroke around the box that appears, however the white does not appear. I went back and drew a new white box, resaved it and the new white box appeared. Any idea why the original file would not have come through properly?
    (PS...I'm using Windows)
    Thanks!

    White set to overprint?
    And stop using EPS...it's an archaic file format. Use native AI or PDF from Illustrator for best results.
    Bob

  • Preinstalled filters from CS5 not showing up in CS6 upgrade

    I just installed CS6 upgrade from CS5 but the Nik and Topaz software filters are not showing up.  How do I get CS6 to recognize them without having to reinstall all of them again.

    How do I get CS6 to recognize them without having to reinstall all of them again.
    You don't. The behavior is as it always has been - Adobe apps never migrate legacy plug-ins and content to avoid compatibility issues. and you will probably need updated vertsions for CS6, anyway.
    Mylenium

Maybe you are looking for