Accessing CSS Stylesheets - facelets - different folders

Problem: facelets not located in the root folder are unable to reference the project css file.
I have a facelets template: layout.xhtml in my WEB-INF folder.
When I reference the template from a .xhtml page in the root directory the css file is found but when I reference the template from any other folder the css file is not found.
root (folder)
  + WEB-INF (folder)
     > layout.xhtml
  + css (folder)
     + browser (folder)
        > eLoadMaster.css
  + flight (folder)
     > testPage2.xhtml (does not find the css file)
  > testPage1.xhtml (does find the css file)The only reference to the css file is within the template: layout.xhtml.
What am I doing wrong?
Thanks in advance!
Below is the template file.
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
  <title><ui:insert name="title">Default title</ui:insert></title>
  <link rel="stylesheet" type="text/css" href="./css/browser/eLoadMaster.css"/>
</head>
<body>
<div id="header">
    <ui:insert name="header">
         <ui:include src="./../header.xhtml"/>
    </ui:insert>
</div>
<div id="menu">
  <ui:insert name="menu" />
</div>
<div id="content">
  <ui:insert name="content" />
</div>
</body>
</html>

Ohh if it were just that simple :)
I have tried this several different ways... I thought my post above showed the absolute URL... Here is an example with the absolute URL... I still have the same problem.. I have done this before with regular JSP... It is the facelets that seems to be causing the problem..
Any more ideas?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
  <title><ui:insert name="title">Default title</ui:insert></title>
  <link rel="stylesheet" type="text/css" href="/css/browser/eLoadMaster.css"/>
</head>
<body>
<div id="header">
    <ui:insert name="header">
         <ui:include src="./../header.xhtml"/>
    </ui:insert>
</div>
<div id="menu">
  <ui:insert name="menu" />
</div>
<div id="content">
  <ui:insert name="content" />
</div>
</body>
</html>

Similar Messages

  • Accessing CSS stylesheet in jdev(JSP)

    Hi,
    I am new to web development and jdeveloper. I have a style sheet (CSS) and I am trying to use it in my JDEV(JSP) project.
    I have a dir called test1--&gt;project1
    under project1 i have one more directory called public_html and my jsp is in this directory.I have made these directories but just accepted the defaults while creating the workspace and project.Now i have a stylesheet webappstyle.css....and i want to use it in this project.Where do i put this stylesheet and how do i access it in my JSP.
    I have tried creating a includes directory(and added my styleshet here) and tried accessing the stylesheet with this command &lt;link rel="stylesheet" type="text/css" href="includes/webappStyle.css" /&gt; but its not working.
    I would appreciate any help on this.
    Thanks
    Rashmi

    Rashmi,
    which Jdeveloper release are you on ? If you are running JDeveloper 10g, then simply drag and drop teh css file onto the JSP page.
    Frank

  • CSS problem using different folders for different files

    So I am trying to organize my files into different sections
    so that updating will be easier in the future. However right now,
    when I create a file in a new folder, my drop downs quit working on
    the files inside the folder and some of my css (mainly the css in
    my IE conditional statements). My drop downs do work if I put a
    copy of the css that controls the drop downs into that folder. The
    thing is, if I ever want to update the css, I want to update it in
    only one spot rather than in ever folder that I had to copy it
    into. How do I get my folder files to work from the css files that
    I created inside my local root folder?

    I managed to slove this by creating symbolic link to the new location on filesystem.
    I was hoping there was some more elegant solution for moving backup sets.
    Thanks,
    -- dragisa
    Ok I understood you. You have to restore your backup
    sets in the same location where RMAN backuped them
    because that information is stored in the catalog.
    In fact, if you remove the backup sets from the disk
    , they get "Expired Status" and if you restore them
    to disk the status is going to be "Available". Test
    it!!!
    To carry out this you have to use crosscheck
    command.
    Joel Pérez

  • What is the best way to move files to different folders in a plug-in?

    I am writing a plug-in that needs to move files on the hard drive.  I am using LrFileUtils.move(from, to) and everything is fine except that the catalog is not updated when the file is moved.  After the plug-in runs I can use Library > Synchronize Folder to get the catalog back in sync with the new locations of the photos on the drive, but this manual step is less than ideal. 
    I am unable to find a way to move the files within the plug in that also updates the catalog (like dragging photos to a new location within the LR Navigator pane).  Lacking an API for this, I looked for a way to programmatic execute the Synchronize Folder menu item, but was not able to find this either..
    Can anyone recommend a better way to move photos to different folders within a plug-in that also updates the catalog?

    Hi Andy,
    There are 3 main file formats that you can consider writing your data out to in LabVIEW:
    ASCII
    Binary
    Datalog
    ASCII
    ASCII files are useful because every operating system and almost every application can read/write ASCII format files. Use ASCII files when:
    Other users or applications will need to access the data file.
    You will not need to perform random access file I/O
    File I/O speed is not crucial
    Disk space is not crucial
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write to Text File.vi and Read from Text File.vi
    Binary
    Binary byte stream files are more specific to data storage and retrieval. Use b
    inary files when:
    File I/O will remain in LabVIEW only -- no other applications will be needing to write/read that file. There is no standard formatting for binary files and thus other applications or operating systems may be unable to read the file.
    Files are smaller than ASCII files
    Easier and faster random access to data
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write Binary File.vi and Read Binary File.vi
    Datalog
    When to use datalog:
    If you need to record data with a mixture of types, it can be cumbersome to convert everything to ASCII or to keep track of the binary formatting.
    Datalog format is binary and internal to LabVIEW, so again only use this format if no other applications or operating systems will be needing to perform file I/O on the file.
    Examples within LabVIEW Example Finder: Fundamentals >> File Input and Output >> Write Datalog File
    Example.vi and Read Datalog File Example.vi
    Good luck!
    Kileen C.
    Applications Engineer
    National Instruments

  • Can I apply one .css stylesheet to all of my linked word documents inside my RoboHelp8 HTML project?

    Hello all,
    I am on my fourthRoboHelp8 HTML project, after the other three crashed. I am a technical writer constructing my companies Policy and Procedures Guide. I am only 142 (word documents) and 9 (RoboHelp topics) into my project and there will be plenty more to come. I recently took Kevin Siegel's RoboHelp8 class where I determined that it would be best if I link all of my word documents inside of the Project Manager becuase I will be constantly updating these documents. I've searched around the Adobe Forums, talked to Kevin, and talked to my IT Department, but I cannot seem to find an answer for my problem.
    I have linked all of 142 word documents inside of the Project Manager, and all 142 word documents have their own .css stylesheet. I have assigned the default.css stylesheet (which I have assigned all of the proper formatting to headings 1-4 to match headings 1-4 inside of my Microsoft Word 2007 documents) under Project Settings under the Import tab. I also assigned this default.css stylesheet under WebHelp Pro. My understanding with applying the default.css stylesheet to these two places is that all of my word documents and topics should have this stylesheet applied to them.
    However, when I look at each individual linked word document the default stylesheet has not been assigned and the word document is still being dictated by its own stylesheet i.e. Credit.css. On my third project, before it crashed, I manually went through all 142 word documents in the Project Manager and assigned the default.css stylesheet to them. I did this by right clicking on the topic, under Appearance, I changed the stylesheet i.e. Credit.css to default.css and clicked apply. I was immediately prompted with the two options: "Preserve modifications to this file" or "Don't show me this message again." I tried both options. The first applied the default.css stylesheet and removed the Credit.css stylesheet, but when I made a change inside of my word document and updated it inside of the Project Manager none of my changes appeared. The second did not apply the default.css stylesheet and kept my Credit.css stylesheet applied to my word document. When I made a change inside of my word document and updated it inside of the Project Manager the change appeared.
    I talked about this to Kevin and he said that the individual stylesheet applied to each linked word document did not mean anything, essentially that by making the default.css stylesheet the dominant stylesheet under Project Settings under Import that the stylesheet would be applied to all of my linked word documents/topics. He also suggested that I make a change to the stylesheet like change the color of Heading 1 and link a new word document to see if it applied the changes. I tried doing this inside of my third project, but nothing changed.
    I would like to know if I can assign one stylesheet to all of my linked word documents before I get too far into the fourth project and have that project crash on me too. One of RoboHelp's appealing features is to apply one stylesheet to multiple topics, or in my case 142 word documents and 9 topics. I hope that I can apply one stylesheet to all of these linked word documents because having 142 individual stylesheets is unmanageable.
    Any help or suggestions would be greatly appreciated.
    Thank you,
    Roxxanne

    When a word document is imported into RoboHelp project, RoboHelp generates a separate stylesheet for each word document as each word document may have its own formatting styles. In a generic scenario, word documents may be brought from different sources and may have different styling. Hence, RoboHelp allows users to preserve different styling through sepearate stylesheets.
    However, for a different scenario like yours, RoboHelp allows users to override all the CSS and apply a single CSS to all the topics at the generation of output. As you have already mentioned that you have applied default.css in the WebHelp Pro SSL dialog, that should suffice and should meet your requirement of applying a single CSS to all the topics. You can verify the same at your end by linking few word files and generating the output with a single CSS applied in the SSL settings.
    Mayank

  • Why can't lightroom across different folders like Photoshop Elements can?

    I have access to Lightroom through CC and I'd like to use it more, but it cannot do a very basic thing that Photoshop Elements, a consumer-oriented product, has been doing for years. That is, stack across different folders. I keep my large RAW files on an external hard drive but keep the edited .jpg files on my computer's main drive. In the Elements library I stack those photos and any other versions such as .psd files. Very useful and I don't understand why this has never been possible in Lightroom.
    An additional wish is that I could import my Elements library into Lightroom, complete with stacking, keywords, etc. That would be fantastic.

    This blog will explain how to install Elements as an external editor in lightroom.  The main thing to remember it to point Lightroom to the EDITOR and not the Elements Startup screen where you can choose Organizer or Editor.  If you don't point to the EDITOR the photo will not show up in Elements
    Lightroom & Photoshop Elements – “Edit In” Issues

  • UNABLE TO USE  COMPILED CLASSES STORED IN DIFFERENT FOLDERS

    Can you help me out
    i have a problem i have been creating various modules and the compiled classes files are stored in different folders and i want the module to access the compiles classes file from the respective folders can any one give me some idea how to get it working.
    thankyou

    You need to make the folders into packages. Say you have 2 folders, one with your core classes named "core", and one with your GUI classes named "gui". These folders are in a folder called "myprogram". You then put a statement at the top of each file in the "core" folder like this: package myprogram.core; Do the same with all the java files in the "gui" folder as well, but replace .core with .gui. Then, you import your own package the same way you do normal java packages: import myprogram.core.*;
    I hope that makes sense, for more info here is the Java tutorial: http://java.sun.com/docs/books/tutorial/java/interpack/packages.html

  • Update CSS stylesheet for ITS Mobile solution

    Dear all,
    for a mobile bar code scanner solution i generated the HTML templates for the LM transactions and published a new ITSMOBILE service. So far everything is working finde.
    To fix some smaller style issues on the mobile device i added the parameter ~ITSMOBILECSSINCLUDE and uploaded the corresponding stylesheet in SE80 as a MIME object for the service.
    The stylesheet now gets triggered. But I want to do some fine tuning, therefore i changed the stylesheet, saved it and published it and the complete service.
    But know the changes visible on the screen. They are visible in SE80 but when i access the stylesheet directly (/sap/public/bc/its/mimes/barcodeservice/99/mystylesheet.css) I only see the version I have uploaded initially.
    Is this a bug? Do i have to do anything else after I have published the change file? Any ideas for an workaround?
    Thx in advance
    Florian

    I thx for your reply. I solved my problem by deleting the cache in SMICM.
    Best regards
    Florian

  • Looking for file " accessibility.css "

    When one looks at the following page : http://www.apple.com/accessibility/vision/ about half way down is a section labeled "Safari Cascading Stylesheets (CSS)" and within that section is a hint and an image of Safari using a custom, supposedly available .css file called accessibility.css . Anyone know where and how to get a copy of that file to work with?
    TIA / z

    It's marketing. They're giving you a screenshot of what's possible. Nobody at Apple has any idea what your particular handicap is or what you would want in your CSS file. A color blind person isn't going to benefit from jumbo 96pt type nor is a person with macular degeneration going to benefit from a subtle hue change.

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

  • How can I move my Verizon e-mail accessed from my iPAD to folders?

    How can I move my Verizon e-mail accessed from my iPAD to folders?

    If your Verizon account is an IMAP account you can create folders on the iPad via the Edit button when you are in the account. If you see an edit button in the window where your inbox, draft folder, sent folder and trash folder appear in that account - tap on it and an Add Mailbox button will pop up at the bottom of the window. If there is no Edit button there - your account is not an IMAP account and you cannot create folders on the iPad in the mail app.

  • HOW CAN I TRANSFER PHOTOS FROM MY IPOD TOUCH TO MY PC BUT THESE PHOTOS ARE NOT IN THE SAVED POTHOS FOLDER. THEY ARE IN SEPARATE AND DIFFERENT FOLDERS THAT MY DAUGTHER SAVED FROM HER PC. IS THERE ANY FREE WAY TO DO IT. PLEASE REPLY TO JUMACAVA07@HOTMAIL.

    HOW CAN I TRANSFER PHOTOS FROM MY IPOD TOUCH TO MY PC BUT THESE PHOTOS ARE NOT IN THE SAVED POTHOS FOLDER. THEY ARE IN SEPARATE AND DIFFERENT FOLDERS THAT MY DAUGTHER SAVED FROM HER PC. IS THERE ANY FREE WAY TO DO IT. PLEASE REPLY TO JUMACAVA07@HOTMAIL.
    THANKS

    If you need to Transfer photos from iPod to PC,I have a method for your reference,I suggest you use iStonsoft iPod to Mac Transfer software to copy photos from iPod to Mac,a professional software,Not only can you quickly Copy pictures from iPod to Computer,but also can save a lot of trouble and time
    [B]Follow these steps to Transfer photos from iPod to Mac[/B]
    Step 1. Download and run the iStonsoft iPod to Mac Transfer software on your Mac computer
    Step 2. Connect iPhone with Mac
    Step 3. Hit "Photos" to scan photos from iPod to Mac
    Step 4. Click "Photos" button to transfer photos from iPod to Mac
    Step 5. Wait a while,you will success Transfer these photos from iPod to Mac
    How to Transfer/Copy Photos/Pictures from iPod to Mac computer

  • How to create a Contact Sheet with Adobe Photoshop CS5 from a disc with images in different folders

    I got a disc with images files (mainly ai and psd files) in different folders and subfolders, how can I create a contact sheet including all the image files in different folders. (It seems that Adobe Bridge can only create a contact sheet by clicking the image files directly but not a folder including the images files)
    thx!

    Use the optional Contact Sheet II plugin which is found in Adobe's Downloads:
    1) search for contact sheet in PS CS5 help
    2) choose the first result and read carefully about the Photoshop Optional Plug-In Picture Packager
    3) follow the instructions to download the zip file and note the location that you download it to.
    4) follow the instructions to install the files.
    I'm not sure how PS CS5 will handle ai vector image files or if you have to batch convert them to raster images first before using Contact Sheet II.  Contact Sheet II allows you to choose a folder and Include All SubFolders as an option so you could create a Contact Sheet folder and copy all of your desired folders into that folder which will become subfolders of the main folder you choose for your contact sheet.

  • Batch combine/merge different folders into 1 image?

    I have a large set of images I need to batch process from 2 different folders, I want to combine 2 of the images into 1 psd, add a curve between the 2 layers, then save.
    These images will ultimatly be imported into Premier for a video so the sequence is large. I have to do it this way because all of the models used are not compatible with the same set of lights.
    Adding the custom curve action with Batch is easy, but photoshop does not seem to grasp the locations, sequences and outputs of the files. Is there a way to do this?
    Open Folder1/BottomLayer001.png,
    add saved custom curve,
    Open Folder2/topImage001.png,
    save to Folder3/Batch001.psd.
    I'm thinking Imay have to use a script to do so, but I have no clue howabout doing that. I am in no way a coder.
    Thank you

    Only you know the logical order of you assets, how you want to combine  pairs and the output files you want.  There is no magic built into Photoshop.  You right that Photoshop can be scripted and a script could most likely be written to do what you want to do.  However you do not know Photoshop Scripting and likely you not a programmer.   Which will require the least amount of time.  You doing it all manually.  Or you teaching yourself a support Photoshop scripting language that works on your platform. If you use windows and Mac platforms that would requite the language to be Javascript for a common solution.  After you learn Javascript you need to learn  Adobe Photoshop DOM for scripting Photoshop its limits and learn to use Adobe Photoshop Plug-in scriptlistener to get around the limits of Adobe Photoshop DOM. Design a Batch Process then Program  and debug the process. Then run the batch process with your assets..
    An other approach is to search the Web for a Photoshop script designed to do something similar to what you want. Download that script. If that script was not saved in binary you may be able to hack it to do what you want. 
    If you need the output by some date that is not far off.  I would suggest that you start doing it manually or hire a Photoshop Script programmer you will help them learn what you want done so they can design and code a Photoshop Script the will meat your needs.
    There is a Photoshop Scripting forum here and process similar to your have been discussed in threads. There may be some script there that may be helpful and users over there that can help you.  I hack at Photoshop Scripting for I do have a very old programming background. I do participate in that forum however I'm not a Photoshop scripting expert I just get by. 

  • I recently deleted many duplicate files. In the midst of it my Itunes songs are not in Itunes. They are in two different folders. One under 'Music' in my ID. And two under a MyMusic file in Documents. How do I know which one to import?

    I recently deleted many duplicate files. In the midst of it my Itunes songs are not in Itunes. They are in two different folders. One under 'Music' in my ID. And two under a MyMusic file in Documents. How do I know which one to import?

    Thanks, this is not an ideal answer but probably the most sensible one in my case.
    I will try it unless someone has a better suggestion, but I'll wait a bit as it will take me a few days anyway (I had actually tried to create a new smaller playlist or download by album, but at this stage the music app is not letting me queue a list of songs for download - I think I will have to disable and re-enable iTunes match which will probably delete all the songs).
    I have to say I am not very impressed with Apple here - having an online backup of all your data and beeing able to restore it to a new device easily was a strong selling point of iCloud. For music, they are Definitly not delivering at the stage.

Maybe you are looking for