How to apply external CSS file with MyFaces Trinidad?

In my original JSF page, I used to have
<head>
    <link href="css/app.css" rel="stylesheet" type="text/css" />
</head>However, after I switched to MyFaces Trinidad and used <tr:document> tag, the external stylesheet could not be applied.
<tr:document inlineStyle="css/app.css">I wonder the external stylesheet is not applied in this way with the inlineStyle attribute. So what is the correct way of applying an external stylesheet for the whole page? Thanks.

...and which kind of files can be included under
resources: [] ??
I have a .json file that I need to be included in a template (and also included in projects created from that template).
The only way I found to do this is to add it as a script. The problem then is that all included "scripts" will be evaluated when the page is loaded, which will fail since it's a json file. External dependencies makes it impossible for me to change the format of the json file...

Similar Messages

  • How to add external css file from _edge.js file

    I have tried to add in html page, but when I save edge project it removes it.
    I am able to add external js file in scripts:[] in _edge.js file
    What we can add inside resources:[] ?
    And is there any way to add external css in edge files except in html page and through javascript?

    ...and which kind of files can be included under
    resources: [] ??
    I have a .json file that I need to be included in a template (and also included in projects created from that template).
    The only way I found to do this is to add it as a script. The problem then is that all included "scripts" will be evaluated when the page is loaded, which will fail since it's a json file. External dependencies makes it impossible for me to change the format of the json file...

  • How to merge external RAW-files with iPhoto library?

    Hi,
    I have several (Aperture-) modified photos in iPhoto. When I click on any one of those photos in iPhoto (9.5.1) and then click on File -> Reveal in Finder -> Modified File – it reveals the location of a jpg-file inside my iPhoto Library. So far, so good.
    However, when I choose File -> Reveal in Finder -> Original File it takes me to an external folder (located in my Home Picture library) and reveals the original RAW-file. I don't know why they are in a folder outside the iPhoto library but I suppose it has something to do with me editing them outside of iPhoto. And this is not a library but just a regular folder containing RAW-files.
    How can I merge all my RAW-files so that they are, neat and tidy, all inside my iPhoto library?

    I am glad you found the answer useful
    What probably happened, was that you imported your original files as referenced. This feature is not recommended in iPhoto, since iPhoto does not support it well - or not at all. I did not want to point that out in the iPhoto forum. In Aperture it is very useful, however, if your library is so large, that it will not fit on one drive. Then you can store the originals on a different drive. Aperture handles referenced images very well.
    For some background reading you may want to have a look at this manual page, just in case you may want to use this feature one day:
    Aperture 3 User Manual: Working with Referenced Images
    -- Léonie

  • How to use external .tld files with uix

    Hey,
    I have a set of custom .tld files and that i was to use in my UIX pages. I got them to work correctly if I am using jsp files but for some reason it doesn't recognize the tags when they are in uix pages
    I far as I can tell, UIX actually requires xml schema definition of the tags and the just the .tld file is not sufficient.
    My question is, is this the correct conclusion?
    if so is there a easy way to either convert my tld file or create this xml schema file so that my tags will be visible to uix.
    or am I totally off the mark here...

    there is one utility in j2se jar and check the option also
    put that jar file in lib folder of yr application folder
    [email protected]

  • How To Run An External .exe File With Command Line Arguments

    Hiya, could anyone tell me how I can run an external .exe file with command line arguments in Java, and if possible catch any printouts the external .exe file prints to the command line.
    Thanks.

    Using the Runtime.exec() command. And read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How setting contentStyle in a external CSS File

    Hello,
    I want setting any contentStyle properties in an external css file.
    Something like:
    <af:selectOneChoice id="gotoPg"
    contentStyle="width:60px;"
    I tried this, but doesn't work:
    <af:selectOneChoice id="gotoPg"
    styleClass="classCss"
    Inside the external css:
    .classCss{
    width: 60 px;
    How can i setting the contentStyle properties in an external css file ?
    Thanks,
    Victor Jabur

    Hi Victor,
    On the ADF web page (jspx) you have to include the css stylesheet
    <link rel="stylesheet" href="./css/untitled1.css" type="text/css"/>
    You can create a new CSS file from JDeveloper by right-clicking on the ViewController project, select "New..", once the "New Gallery" window is displayed go to Web tier -> HTML and you will have the "CSS File" option.
    What you put inside your css looks good:
    .classCss{
    width: 60 px;
    Note that the width property will affect the whole af:selectOneChoice component, including the label and the different choice values.
    -Cris

  • How To Use a css File To Watermark A Report

    Hello.
    I am using Apex 4.0.1 and have a need to place a watermark (that is, a background image) over a report, both a "classic" type and Interactive Report.
    I have two questions about this.
    1) I've searched this Forum and found several good questions/responses about this subject. What I think is the most maintainable solution is to create a .css file and reference this file within the Template section of a copy of, say, the "Reports Region" template used by my application theme. And so, I made a copy of the "Reports Region" template and called it "Watermark Reports Region". I then created a very simple .css file called "bgimg.css" defined as:
    #REGION_STATIC_ID# {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    Note: For those that may not know, the "!important" clause is, in fact, a css defined clause used to tell the browser that it should give the associated option the highest precedence. This prevents my desired css option from being overridden by another css file. Frankly, I myself did not know this until after I saw it being used in several of the responses on this Forum and then read up about it.
    I uploaded this css file via the Apex "Shared Components -> Cascading Style Sheets" option. I also made sure that menu_bug.png is, in fact, among my workspace images.
    I also made sure that my "Watermark Reports Region" template contains the substitution variable "REGION_STATIC_ID" and that my actual report region has a value in the Region Static Id field.
    Within my "Watermark Reports Region" template, I tried to reference my .css file. This is where I think my problem is.
    I placed
    <link rel="stylesheet" type="text/css" href="#WORKSPACE_IMAGES#bgimg.css" />
    at the very top of the Template section in my "Watermark Reports Region" template.
    I then assigned my template to my Apex report. When I run my report, I see nothing.
    So, how does one reference this css file within the template?
    =================================================
    2) I tried using my css tags as an internal style by placing it within the "HTML Header" section of my application page. I used:
    <style type="text/css">
    #empreport {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    </style>
    I assigned a div tag to my report region header and footer that looks like:
    In Header: <div id="empreport">
    In Footer: </div>
    When I run the report, I do get the image. But it is surrounding the report. It looks like my report is "floating" in a sea of bug images.
    So, how can I get these images to actually appear within the report itself. In other words, I want the report itself to be "transparent" so as to allow these images to be seen within the report body itself.
    Thank you all for any help/advice/code example.
    Elie

    Elie
    Thanks for taking the time to post sufficient information to understand the problem. In future if you're going to such efforts you might want to use them to reproduce the problem on apex.oracle.com, which means you can share actual working (or more likely not working!) code. Please also always wrap code posted on the forum in tags<tt>\...\</tt> tags to preserve formatting and special characters.
    >
    I placed
    <link rel="stylesheet" type="text/css" href="#WORKSPACE_IMAGES#bgimg.css" />
    at the very top of the Template section in my "Watermark Reports Region" template.
    >
    According to the relevant HTML 4.01 and XHTML 1.x standards, <tt>style</tt> and <tt>link rel="stylesheet"</tt> elements should only appear within the <tt>head</tt> element of a document.
    This changes in HTML5. The new <tt>scoped</tt> attribute allows <tt>style</tt> to be used in a prescribed way elsewhere in the document, with the effect that the styling rules specified are only to be applied to the other descendant elements of that <tt>style</tt> element's parent (in the way you're trying to do here). I'd expect <tt>link</tt> with a <tt>rel="stylesheet"</tt> to remain restricted to <tt>head</tt> content in HTML5: off the top of my head I can't see a use case for referencing external stylesheets in a non-metadata context.
    That said, current browsers apply CSS regardless of where in the document it appears, and future HTML5-compliant ones will continue to continue to do so for backwards compatibility. For myself, when using XHTML 1.0 I'll continue to follow the only put <tt>style</tt> and <tt>link</tt> elements in the page <tt>head</tt>. When I get round to using HTML5 for real I'll follow the standards for that as well.
    I strongly recommend that you follow the standards and only put <tt>link rel="stylesheet"</tt> elements in the page <tt>head</tt>.
    >
    Note: For those that may not know, the "!important" clause is, in fact, a css defined clause used to tell the browser that it should give the associated option the highest precedence. This prevents my desired css option from being overridden by another css file. Frankly, I myself did not know this until after I saw it being used in several of the responses on this Forum and then read up about it.
    >
    Use <tt>!important</tt> only where it's actually needed. It's over-represented in this forum because Oracle changed the order of style sheet inclusion in APEX 4.0 and made it more difficult to override theme styles using CSS in the page HTML Header without modifying page templates.
    Try your styles initially without using <tt>!important</tt>, and also consider using the cascade to provide any necessary overrides by including your CSS after other style sheets.
    >
    I then created a very simple .css file called "bgimg.css" defined as:
    #REGION_STATIC_ID# {
    background-image: url(#WORKSPACE_IMAGES#menu_bug.png) !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    I then assigned my template to my Apex report. When I run my report, I see nothing.
    >
    Because <tt>#WORKSPACE_IMAGES#</tt> is not substituted in external CSS files: +{thread:id=986329}+
    If possible it's much better to locate image, CSS and JavaScript files externally on the file system. Otherwise you'll have to use the workaround suggested in that thread and include a <tt>style</tt> element in the page templates to specify the background image.
    When I run the report, I do get the image. But it is surrounding the report. It looks like my report is "floating" in a sea of bug images.Reports are descendants of their region containers and may be subject to additional built-in or theme styles that overrides that specified for the region. Your CSS selector has to specify the report element, not the entire region.
    So, how can I get these images to actually appear within the report itself. In other words, I want the report itself to be "transparent" so as to allow these images to be seen within the report body itself.I'd use a <tt>class</tt> attribute in the region template: this removes the need to use the <tt>#REGION_STATIC_ID#</tt> selector, and allows the CSS to go in the page <tt>head</tt> where it belongs. Add <tt>watermark-report-region</tt> in addition to any existing <tt>class</tt> values in the region template:
    <div class="borderless-region watermark-report-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="bl-body">#BODY#</div>
    </div>You may have to inspect the page source (use a web inspector like that found in Safari, or the Firefox+Firebug combo) to figure out what has to be overridden in the theme/templates you're using. This worked for an Interactive Report using theme 17:
    .watermark-report-region .apexir_WORKSHEET_DATA {
      background: #fff url(/i/menu/blank_app_32.gif);
    .watermark-report-region .apexir_WORKSHEET_DATA tr.even td,
    .watermark-report-region .apexir_WORKSHEET_DATA tr.odd td {
      background-color: transparent;
    }For a standard report you'll need to identify the selector required for the actual report element (equivalent to the <tt>apexir_WORKSHEET_DATA</tt> table) using the web inspector or from the report template. It would be a good idea to create standard report template(s) incorporating a <tt>watermark-report</tt> class on the report table to provide a simple selector for such reports.

  • External CSS file?

    Do I have to write a CSS rule for every symbol and element in a presentation or can I just specify a general rule for the whole thing?
    For example, how can I specify that all images should have a red border, or all links should change color on hover?
    Shouldn't I be able to create a separate CSS file as in Dreamweaver and just attach it?
    Thanks

    Can i get you to elaborate on this statement? This sounds like something that will work for me.
    I have a text box in my edge composition with a scroll overflow. I have added a class to that text box equivalent to that established in an external css file. In that css i have items to change the look of the scroll bar, text color, and background color.
    I need a little guidance how to fit all these pieces together.

  • How to load unicode data files with fixed records lengths?

    Hi!
    To load unicode data files with fixed records lengths (in terms of charachters and not of bytes!) using SQL*Loader manually, I found two ways:
    Alternative 1: one record per row
    SQL*Loader control file example (without POSITION, since POSITION always refers to bytes!)<br>
    LOAD DATA
    CHARACTERSET UTF8
    LENGTH SEMANTICS CHAR
    INFILE unicode.dat
    INTO TABLE STG_UNICODE
    TRUNCATE
    A CHAR(2) ,
    B CHAR(6) ,
    C CHAR(2) ,
    D CHAR(1) ,
    E CHAR(4)
    ) Datafile:
    001111112234444
    01NormalDExZWEI
    02ÄÜÖßêÊûÛxöööö
    03ÄÜÖßêÊûÛxöööö
    04üüüüüüÖÄxµôÔµ Alternative2: variable length records
    LOAD DATA
    CHARACTERSET UTF8
    LENGTH SEMANTICS CHAR
    INFILE unicode_var.dat "VAR 4"
    INTO TABLE STG_UNICODE
    TRUNCATE
    A CHAR(2) ,
    B CHAR(6) ,
    C CHAR(2) ,
    D CHAR(1) ,
    E CHAR(4)
    ) Datafile:
    001501NormalDExZWEI002702ÄÜÖßêÊûÛxöööö002604üuüüüüÖÄxµôÔµ Problems
    Implementing these two alternatives in OWB, I encounter the following problems:
    * How to specify LENGTH SEMANTICS CHAR?
    * How to suppress the POSITION definition?
    * How to define a flat file with variable length and how to specify the number of bytes containing the length definition?
    Or is there another way that can be implemented using OWB?
    Any help is appreciated!
    Thanks,
    Carsten.

    Hi Carsten
    If you need to support the LENGTH SEMANTICS CHAR clause in an external table then one option is to use the unbound external table and capture the access parameters manually. To create an unbound external table you can skip the selection of a base file in the external table wizard. Then when the external table is edited you will get an Access Parameters tab where you can define the parameters. In 11gR2 the File to Oracle external table can also add this clause via an option.
    Cheers
    David

  • How to execute one .exe file with as3 in air ?

    Hi
    How to execute one .exe file with as3 in air?
    I want do this work without fscommand .
    plize help me .

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • Unable to embed External CSS file, dropdown list,filter panel and dimension filter are not working in SAP Design Studio Tool

    Hello Everyone,
    I am new to SAP Design Studio. I am working on creating dashboards and I am using Design Studio 1.2 version. Please suggest some solutions for the following issues. Thanks in Advance.
    1. External CSS file which is embeded using custom CSS option under "application component properties" is not working.
        * I kept the external CSS file inside repository-> my application folder.
    2. During runtime, getting javascript error while selecting '-' option from filter panel.
    3. Unable to select or type dimension name under "dimension filer component" properties.
    4. Getting runtime error for dropdown list, and I have inserted the following code under "onStartup" option of Application component properties.
    "DROPDOWN_1.setItems(DS_1.getMemberList("PRODUCTREF", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 20));
    and dimension values are not populated in auto suggest."

    There should be an Error Log under View > Error Log that gives you more details of these errors.  Could you add that?  There is also a View > Script Problems log that provides more details as well.

  • How can I print a file with mixed page orientation in windows 8.1?

    I have a win 7 and a win 8.1 computer.  I have a file which contains both landscape and portrait pages.  The file prints correctly with the mixed orientation from the win 7 pc, but will only print with either landscape or portrait on the win 8.1 pc. 
    I am using Adobe reader XI on the win 7 pc and adobe touch on the win 8.1 pc

    ส่งจาก จดหมายของ Windows
    จาก: Pat Willener
    ส่งเมื่อ: จ. 5 มกราคม 2558 6:15
    ถึง: thang dinhvan
    How can I print a file with mixed page orientation in windows 8.1?
    reply from Pat Willener in Adobe Reader Touch for Windows 8 - View the full discussion 
    I have a win 7 and a win 8.1 computer.  I have a file which contains both landscape and portrait pages.  The file prints correctly with the mixed orientation from the win 7 pc, but will only print with either landscape or portrait on the win 8.1 pc. 
    I am using Adobe reader XI on the win 7 pc and adobe touch on the win 8.1 pc
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7064031#7064031 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7064031#7064031
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Reader Touch for Windows 8 by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • There is no 'Save as' under the file menu.  How do I save a file with another name?

    Numbers help refers to the 'Save As' function in the File menu.  My version (latest) does not have a 'Save As' function.  How do I save a file with another name?

    Ross Millard wrote:
    Badunit. You have an original file and an edited file. Now you duplicate the edited file and save it with a different name. Now do you have to go and delete the changed file from which the duplicate had been made? And.... is the original still unchaned... still original?
    Ross,
    For the situation you describe, Apple has provided Duplicate and Revert. Use File > Duplicate to reach this menu:
    Regards,
    Jerry

  • How to create a pdf file with CS5

    Hello, I'm new to PhotoShop CS5 and haven't figured out yet (despite two hours of trying) how to create a pdf file with pictures and texts.  Can someone please help me with this ?  The "help" button in CS5 doesn't seem to cover this question.  Nor do the FAQs.
    Thank you very much.

    Save As... Photoshop PDF.

  • How to fix the .pdf file with error "invalid annotation object"

    how to fix the .pdf file with error "invalid annotation object"

    As long as the PDF opens, then just try saving it to a new file name. There may be a preflight script that would help troubleshoot the issue.

Maybe you are looking for

  • Store downloading to wrong drive

    Back in the day, I used to use an external hard-drive for all of my media because it took up so much space. My Mac mini simply didn't have enough room for my gargantuan collection of music. Then I bought my MacBook Pro and decided that the external h

  • Improvements and Changes in ECC 6.0 with 4.6/4.7 Version

    Hi All, Can any body tell me what are the Improvements and Changes made in ECC 6.0 with 4.6/4.7 Version, in Configuration, Master data, Transactions and other new functionalities. Please let me know the above details with reference to MM Module persp

  • App 523 error/reset

    Can somebody please help me with this! How do I get this off my phone? My service provider says that I have to buy another phone is this true?

  • TS1369 My ipod has a red " x " with a circle around it.What can I do ?

    Question :  My ipod is not recognised by my computer anymore when I plug it into itunes.The ipod has a red " X " with a circle around it. Is there anything I can do to get past this problem and start using my ipod again ?        

  • Help on Database

    Hi, I am developing a ticketing system. I would like to ask how do i develop a database that records 3 days in advance for the different timings? For instance, 14/12/2007 _1915_ _2130_ 15/12/2007 _1140_ _1415_ 16/12/2007 _1430_ _1830_ Thanks a lot