Add javascript to the page template to use in all the pages resource...

ADF:11.1.2.1.0
WebLogic: 10.3.5

In the code source temlate I want to add:

"" < af:resource type = 'javascript' source = '... / resources/scp.js "/ >

SCP.js is the javascript library that have functions that we like to use on many web pages like letters, validations, etc etc.

<? XML version = "1.0" encoding = "UTF - 8"? >
< jsp:root xmlns:jsp = "http://java.sun.com/JSP/Page" version = "2.1".
xmlns:f = "http://java.sun.com/jsf/core".
xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
xmlns:trh = "http://myfaces.apache.org/trinidad/html".
xmlns:tr = "http://myfaces.apache.org/trinidad" >

< jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >
"" < af:resource type = 'javascript' source = '... / resources/scp.js "/ >
< var af:pageTemplateDef = "uploading" >
........
< / af:pageTemplateDef >
< / jsp:root >

This is possible, or is not appropriate to add af:resource on model?

Yes, this should work and should NOT have problems.
We have a similar approach in our current project and it works as expected.

Thank you
Nini

Tags: Java

Similar Questions

  • Add Javascript to the content of the interactive report

    Hello

    I need to add some Javscript to an interactive report so that this event fires whenever the content of the report is reloaded. I found how this is done for a standard report, but not for the interactive report. JavaScript placed in the header of the region or the footer only runs on the loading of the page and not when the region of the report is updated, such as after a search, or when you apply a filter. Does anyone have an idea on how this is done? What is the function Javascript is called is charging?

    Thank you

    Rick Fanning

    Hello

    This might help you
    http://Apex.Oracle.com/pls/OTN/f?p=24382:38:

    You can find out how to see the source code here
    Implement jQuery modal form

    BR, Jari

  • How to add "commitments" to the dashboard resource use?

    CommitmentsOnUtilizationDashboard.png

    Thank you. Let me be more precise. Does anyone know how to add "CM" and "CM/CP" (same RQ & TD) to the dashboard?

    (instead of CP & PL and AC)

  • Automatic use at the request of resource blocks using not all solutions available resource locking

    Hello

    I'm trying to use TestStand with batch process model. I run lots of 8 EHR. Most of my tests have dedicated hardware, some use shared resources. As far as I can tell (and according to support NEITHER) the fastest way to run my test is to configure all tests in blocks using Auto demand for resources and just create enough resource Lock Alternatives for EHR 8 to use resources dedicated at the same time.

    If I create a single block of resources at the request of self employment with Alternatives to resource lock 8, it works perfectly. All EHR 8 run the test at the same time. However, if I add a second block of resources at the request of self employment with 8 Lock Alternatives resource (the same as in the first block, or with new unique names named) TestStand uses 4 of 8 Resource Lock Alternatives and my test takes twice as long as it should.

    Is it possible that I miss a setting, or configuration things wrong? I have attached a simple sequence that illustrates what I'm trying to do and a capture screen how TestStand runs it. TestStand 2014.

    Thank you very much for the help!

    Will be

    I can't reproduce your behavior.  I have a quad core with all discussions on "logical".  So a total of 8 wires.  I modified your movie file to do 16 DUT to see if she could slow down.  I see about 7 seconds per report.

    We know that this is not the sequence file, because I run your movie file.  My guess is that there is another setting somewhere.  TestStand or in your operating system that is the cause.

    You have changed the model of batch processing?  I use out of the box one.  What version of TestStand?  I have 2014.  In Options of Station > preferences what is your processor affinity set?  Mine is - 1.

    Kind regards

  • Variable Javascript in the Dreamweaver template Pages

    Hi, I created a Dreamweaver template and I want some different Javascript on each page I create based on the said model. Dreamweaver editable regions do not seem to support Javascript, however. How can I make this work? Thank you!

    In your template file, you should have the following comment tags in thesection for you to have items specific to the page (as head

  • Use of javascript within the page fragment

    Im trying to use javascript code within a fragment of a page with the tag

    AF:resource

    But the second time the page reloads I got this error: "ReferenceError: works is undefined"

    <af:resource type="javascript">
          function funciona() {
              alert(123);
          }
    </af:resource>
    

    IM using JDeveloper 12 c

    Check the 'witch hunt during the use of JavaScript in the regions of the ADF' in this document http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2012-otn-harvest-1571998.pdf

    Timo

  • Add address of the sender to the address book using filtaquilla?

    When the sender is not in the address book, I want to give the user an option to add it. Is this possible with filtaquilla?

    There is a filter action, provided by FiltaQuilla, to "Add sender to the address list", and among all the proposed locations, your address books are included.

    But I see no way easy to offer the user a dialog to allow him to choose or not to do. Perhaps a javascript maven could do something here.

    Any sender can easily be added to the address book by clicking on its name/address in the header of the received message. Maybe you can use a filter just to highlight the messages from unknown senders in order to prompt the user to consider adding to their address book. Or you can create a saved search to collect such messages. Then, their mere presence in this saved search folder would indicate their status is unknown.

  • How to store the layout when you add objects at the top of the page?

    Hello

    I'm working on my company Web site and my main page uses a model of 'a page '.

    I do changes several changes in the model, save a new version every change & I want to add something in the middle of the page without everything be messed up as all objects below right out their alignment.

    Can what resources I use to get around that?

    Possible by manipulation in CSS.

    First of all, to get the ID of the master DIV containing elements

    1. Preview your page in Google Chrome (or Firefox Developer Edition) (file > Preview in browser Page)
    2. Open the developer tools (view > developer > Developer tools)
    3. Click on the "Magnifying glass lens" tool down.
    4. Click on the item in menu of your page.
    5. Get the 'id' of the
      element
      .

    Later, in Muse, open the property page and apply max-height in the previous div element. More: max-height - CSS | DND

  • I've just updated Adobe Professional, but I'm not able to add, to delete the pages more. Before the update, it wasn't a problem. I missed something?

    I've just updated Adobe Professional, but I'm not able to add, to delete the pages more. Before the update, it wasn't a problem. I missed something?

    Are you sure that you're not open your files with the free player instead of using Acrobat? And please do not post the same question multiple times. Also, try to be more specific. "I am not able" can mean many different things.

  • Hi I need to hide a pdf file hosted on a site of glasses, I would normally add &lt; name meta = "robots" content = "nofollow" / &gt; tag meta on a html page, can I add this to the pdf format? I can't seem to find where to add this code, or is there a bett

    Hi I need to hide a pdf file hosted on a site of glasses, I would normally add

    tag Meta on a html page, can I add this to the pdf format? I can't seem to find where to add this code, or is there a better way?

    You cannot add these metadata in PDF format. You can use the robots.txt file.

  • Using JavaScript to insert Pages

    First of all, thanks to you all for helping me try to get out.

    Please be patient with me as I am new to the script and a complete Newbie which includes only the basics.

    OK, so I'm working on a side project to where I work. The goal is to develop a script that will allow users to run and automatically add 4 pages at a time. These pages will be in spread (facing pages).

    We (society) print books of a sort, and due to printing in printers spreads, this is how all our models are configured. Is not necessarily how it should be done, or how I would setup models, but that is how it is and I have to work with what I have.

    For this reason, I can't use the building in functionality that is already in InDesign for Smart Text Reflow, but that's essentially what I have set out to achieve.

    I was looking around the Internet for some time and found a few different scripts that are already out there that work to a certain degree, but not exactly how I need to make them work.

    Below, I'll show what I want to achieve:

    Here's an example of how we have our model in place.

    Screen shot 2014-05-13 at 15.02.27.pngScreen shot 2014-05-13 at 15.02.35.png

    All scripts, I found and tried to adapt to what I seem to do the following:

    Screen shot 2014-05-13 at 15.02.55.png

    All they'll do is add a page at a time and in the wrong place (this should be on the left, NOT the right).

    Screen shot 2014-05-13 at 15.03.20.pngScreen shot 2014-05-13 at 15.03.24.png

    When adding the second page (via the interface of the menu or change any script I think) the second page is added as follows:

    Screen shot 2014-05-13 at 15.03.36.pngScreen shot 2014-05-13 at 15.03.39.png

    Now, I already know that it is because of how we have our configuration of models, but I can't change that!

    However, if the following functions is used via the menu of the interface, then the results work perfectly:

    Screen shot 2014-05-13 at 15.03.52.png

    Screen shot 2014-05-13 at 15.04.09.png

    Screen shot 2014-05-13 at 15.04.28.pngScreen shot 2014-05-13 at 15.04.18.png

    It is this feature that I would like to reproduce but shaped script:

    Layout > insert > Pages...

    4 pages

    At the end of the Document.

    If someone could help to shed light on this, it would be extremely beneficial.

    Scripts I did experiment with current examples are:

    myDocument = app.activeDocument
    myDocument.spreads.item(1).allowPageShuffle = true;
    var page=myDocument.spreads.item(1).pages.item(1);
    var pages= myDocument.pages.add(LocationOptions.atEnd);
    var pages= myDocument.pages.add(LocationOptions.atEnd);
    myDocument.spreads.item(1).allowPageShuffle = false;
    
    

    Once again, thank you in advance.

    Sam

    Typical, shortly after this announcement I really understand it.

    For those interested, this seems to work correctly:

    myDocument = app.activeDocument
    
    var page=myDocument.spreads.item(0).pages.item(0);
    var pages= myDocument.spreads.add(LocationOptions.atEnd);
    

    Sam

  • Reports: Javascript in the area on foot of page with links in cells

    Hi all!
    I need to put hyperlinks in my APEX (4.0) report and I read there is no direct option for IT... that's how I thought to do, so...


    My reports contains two columns:
    DEVICE and HEALTH.
    The first contains a string with the name of the device and the second is a number that is expected as in percent.

    I need channels in the DEVICE columns are also links to another APEX page where I have to generate a graph of "dynamic".


    That is: we can intend to a report that the DEVICE is '000 x 0' and line '30 HEALTH.
    APEX generate HTML code like this:

    < headers td = 'DEVICE' class = 'data' > 000 x 0 < table > < headers td = 'HEALTH' class = 'data' > < table > 30

    But I also need '000 x 0' to be a link to: "f?" p = 104:4:2205607043123699:THE_DEVICE:000 x 0 "."
    To say: the fourth page of my site of APEX, where "THE_DEVICE" is an APPLICATION_ITEM and contains the name of the device clicked.


    First thing I tried is to re - write pl/sql query to automatically returns the HTML for the link, such as:

    Select
    ''|| DEVICE of |'' as a PERIPHERAL,
    trunc (HEALTH, 2) than HEALTH
    of [...]

    But the APEX convert special characters to the & x; values:
    & amp; Lt; a href = & amp; quot; f? p = 104:4:2205607043123699:THE_DEVICE:000 & amp; quot; target = & amp; quot; _self & amp; quot; & amp; quot; & amp; GT; 000 & amp; Lt; /a & amp; GT;


    Second thing, I thought is to give a Unique ID to the region of the report ("ALARM_DEVICES_REG") and try to change this text dynamically by adding JavaScript to the footer area.

    I checked and found in this forum a JavaScript suggested to someone who has had a similar problem to mine, then I tried to adapt to my situation.
    The fact is that my JavaScript in the footer area does not seem to work at all! Or a simple document.write ("bye!"); COMAND!
    How possible?

    The JavaScript code, I tried to create could also contains errors, and it is the following:


    < script type = "text/javascript" >
    var y = document.getElementById('report_ALARM_DEVICES_REG')
    var x = y.getElementsByTagName ('TD');
    var s;
    If (x)
    {
    for (var i = 0; i < x.length; i ++)
    {
    s = x.item (i);
    If (s.GetAttribute ('headers') == 'DEVICE')
    {
    s.Data = replaceHtmlEntites (s.data);
    }
    }
    }
    < /script >

    I noticed the innerTable for reports a "report_ALARM_DEVICES_REG" id area (while the outside has "ALARM_DEVICES_REG") so I used to be more selective.

    replaceHtmlEntites is a function which should bring the special character of "& x; ' values and it is the following (I put it in"Function and Variable overall statement"field of the APEX of the State page):

    var replaceHtmlEntites =)
    function() {}
    var translate_re = "/ & (nbsp |)» amp | quot | Lt | GT); / g » ;
    definition of var = {}
    "nbsp": "",
    'amp': '& ',.
    "quot ': ' \ ',"
    "lt": ".."
    'gt': ' > '.
    };
    function (s) {}
    Return (SS. Replace (translate_re, {function (match, entity)
    back translation [entity];
    }) );
    }
    })();


    Shouldn't this work? And if not, why?
    Thanks to you all!

    You should be able to edit the column in the developer and scroll up to 'Column link' and use it. Tried not to who? Or he does not satisfy your needs?

  • How to add inline JavaScript to a Page 11

    I followed the Web User Interface Developer Guide to add a javascript to a page, but it does'nt work...

    Thank you. If I have correctly answered your question, please select 'OK' in the thread.

  • Simple Question: Can I add data to the target home page?

    I have a daemon process that I followed and I want to put the vendor, version, start time, path, etc. on the homepage of target. How can I do this?

    As far as I understand it, I can add graphics to the home page of the target and create reports, but I have not found how to do this.

    I use GC 10.2.0.5.

    That is right. The new version of the Guide extensibility should be somewhere online now, or should be available soon. That describes the feature that allows you to put the cards on the home page. Unfortunately, it won't really focus on what you want to do. All that is allowed through this feature is pie charts, histograms and graphs for time series.

    The best solution is probably to create a report with the information that you want, save appears in the homepage of the target instance reports sub-tab.

  • I'm trying to learn how to use the "Add spamming" and the "list of Manage spammer" but can not find any reference material?

    I need to learn to use correctly the spammer 'Add' and 'Manage the spammer list' functions and can find no documentation/explanation of these functions. Sites I list with the function "Add spamming" keep coming in my mail box.

    Thank you for your help

    Use the built-in junk e-mail filter Thunderbird.

    http://KB.mozillazine.org/Junk_Mail_Controls

Maybe you are looking for