Calling css and js file in webcenter portal template

Hi All,
I stored all js and css file in wcc.I want to invoke css and js file in webcenter portal template .How can i invoke by direct link?
First question, to get the direct link for the css file in webcenter content

Copy Download URL of selected css file by Right click on the css file from Space => Documents and click on 'Get Links' in the popup menu. Copy the link for later use.
FYI, Assuming files are uploaded to WCC via WebCenter Portal -> Spaces/Portal -> Document Explorer taskflow.
In the similar lines, I wrote the following article titled "Using FusionCharts in Oracle WebCenter Portal" in which I upload the js files and swf files to WCC via Document Explorer taskflow. Later I made use of the direct link of js files to render charts using FusionCharts js files/swf files.
https://blogs.oracle.com/nandakishorkn/entry/using_fusioncharts_in_oracle_webcenter
Once you've direct link to css / js file(s), you can use af:resource tag like :
<af:resource type="css" source="url" />
<af:resource type="javascript" source="url" />
See also :
Creating and using Page Templates in Oracle Webcenter Portal Applications (Refer Slide#1-22)
http://www.oracle.com/technetwork/middleware/webcenter/portal/learnmore/pagetemplates-1438595.pdf
Run custom javascript when ADF page loads
http://www.ateam-oracle.com/run-custom-javascript-when-adf-page-loads/
I hope it helps!

Similar Messages

  • .css and .swf files are getting generated with Ibot email

    Hi Team,
    I have an Ibot which use to run on daily basis which contains graph and normal table views, .css and .swf files are getting generated and attached with Ibot email to the users. I'm facing this issue from last two days. Earlier there was no such attachments sent to the users.
    Could anybody let me know what might be the reason for that?

    any inputs?

  • Enable Gzip compression for .CSS and .JS files

    This may be posted on the wrong forum, but I did not know a better place. My excuses if it should have been posted elsewhere.
    Situation:
    Several webpages are slow to load. Well, they are pretty large. Google Webmaster Tools suggests to GZIP several .CSS and .JS files to save up to 164 KB per page and my guess is that will make the loading a lot faster. I looked around the hosting site for tools to enable GZIP compression, but did not find them.
    Question:
    How can I enable GZIP compression on my pages and how do I do that? Does it pay to extend GZIP to the .HTML pages as well or is that not possible?
    Reference: PPBM5 Benchmark and Holländische Poffertjes
    The hosting company is 1and1.com

    Barry, go to: http://ppbm5.com/Benchmark5.html and use one of the buttons for the performance charts.
    There are 5 HTML pages, each around 740 KB. Compressing them would make a huge difference I think, but also the 164 KB that Google mentions.
    These pages contain the same functionality, but different content.

  • How to Upload  and Download and run video in webcenter portal

    using java and oracle Database and windows media player

    While I'd like to first point out that your in the wrong forum for WebCenter portal (this is strictly for ALUI/Interaction), assuming you have the video files, you can upload them to a windows media server which will generate embed'able links which you can then use in your html.

  • How to deploy jsr168 war file into Webcenter Portal

    I want to intergated a jsr168 war file with Web Center Portal. I only install WebCenter Portal without JDeveloper and Content. So how should I deploy it?
    Thank you!
    Regards,
    Jugela

    You have the weblogic domain right ? Opent the enterprise manager in browser by hitting the below url -
    http://<Admin Server address>:<port>/em
    login with credentials.
    From deployments end,you can install the war file which will targeted to WC_Portlet server.
    After that register the portlet WSRP url with your application and use it.
    The above suggest is without the intervention of jdeveloper /webcenter.
    Regards,
    Hoque

  • Calling Oracle Ebusiness Forms from a Webcenter Portal application

    Hello All,
    Would there be any known/standard procedure of calling Oracle EBusiness Forms from a Custom WebCenter Portal Application. The issue we are facing currently is that we are successfully able to call an Oracle EBS Forms as a GO Link from the application. The problem is when there are multiple links to open different EBS Forms. Multiple instances of the Forms sessions are created. We would like to have only one. We are trying to mimic the Oracle EBusiness Home Page / Landing Page.
    Any pointers are much appreciated.
    Thanks,
    Nachi

    Hi.
    Are you using Portal or Framework Portal?.
    In case of <noscript> is generated by JAVA internal classes and the unique way to change the message is with a Non supported workaround overriding a CoreBundle class.
    About the af:skipLinkTarget usually is in the Page Template. The default templates has it in next snippet:
    <f:facet name="center">
        <af:skipLinkTarget>
        <af:facetref facetname="content">
        </af:facetref>
      </af:skipLinkTarget>
    </f:facet>
    If you're using default Templates then copy them and remove the af:skipLinkTarget tag from the copied one and assign it to the Portal.
    I hope it helps.
    Regards.

  • Upload and displaying document file and image file with oracle portal

    Dear All,
    Could anyone please tell me how to displaying document file and image file that I've stored to database (8.1.7) using oracle portal. (I use intermedia data type).
    I've tried to follow the instruction given by Oracle LiveDemo, but it came with failure. (the image or document won't show up).
    Thanks for support.
    Moza

    Please repost this question in the appropriate section of the Discussion Forum.
    This forum is for general suggestions and feedback about the OTN site. For technical question about an Oracle product,
    For customers with paid support (Metalink) please go to:
    http://www.oracle.com/support/metalink

  • Website calling *.swf and *flv files from C:\

    I am after information from someone who has achieved this. I
    have a website that has a swf embedded in it that is calling a
    swf/flv on my hardrive. Firstly is this possible or am I waisting
    my time even trying this. I do realise the security issues involved
    and I have read posts and tutorials about achieving this but I
    still have had no luck. CAN ANYONE HELP ME BEFORE I START PULLING
    MY HAIR OUT!!

    The reason why I want to access information from the hardrive
    is because the information is about 600mb in all but cut up into
    60mb parts or chapters. It is for an online learning system but
    Australian BroadBand speeds are still way to slow for this sort of
    system. I've tried to give these files permissions but I still get
    issues. I am considering using Adobe AIR Technology and making a
    desktop application that accesses small amounts of informaion from
    the server, so basically turning this project on it's head.
    If you do have some more information for me that would be
    great but I think I'll go the AIR track.

  • .css and .js file with dynamic content

    Hi all !
    I would need to move all my javascript and css code from the JSP to separate files and then just include them to the page.
    This is of course just standard html code so no probs. there. The little twist is though that both the stylesheet and javascript content should be a bit different depending on the request parameters from the user.
    For example the css contains a few images that would need to be used and the paths and names of these images are defined by a custom taglibrary.
    The questions would then be: What is the preferred strategy to handle this? Is there a way to actually change the content of those files dynamically or is it just better to leave the dynamic parts on the page.
    Of course I can always create a separate servlet that generates them on the fly but that is not the way I would like to go...

    if you include your css like
    <LINK HREF=\"/application/css.jsp\" REL=\"stylesheet\" TYPE=\"text/css\">");
    then make sure your jsp has <%@ page contentType="text/css" %> set and you can make that css.jsp be dynamic and give you the css you need.
    SAme applies to javascript with <%@ page contentType="application/x-javascript" %>

  • Calling query doc. (text file) from a web template with JavaScript

    Hi,
    I would like to have an explanation of the following:
    My goal is to develop a solution within a dynamic web template that supports calling of query documentation (description and purpose of the certain report). This query documentation will be provided from a textfile(e.g .csv) and presented under the information tab applying a text element web item. This will be done with query technical name acting as key with the following column structure:
    Technical name    Description    Purpose
    I really would appreciate if anyone could provide me with a more or less detailed solution proposal for this. Javascript etc.?
    Thanx in advance

    You can use the command line tool cURL instead of a GUI browser.
    set myFonts to do shell script "curl http://site.com/fonts.txt"

  • Oracle Webcenter Portal and UCM Problem

    hi, I'm using both applications but it seems UCM always ask authentication before viewing the checked in files to webcenter portal.
    How can I view the files checked in to UCM through webcenter without UCM authentication??????????I set the files security to public.
    Thanks

    Looks like the configuration of UCM (SSXA) is not completed in your system. Take a look at this manual http://docs.oracle.com/cd/E23943_01/doc.1111/e13650/toc.htm to understand the relationship between region definitions and placeholders. Note that Content Presenter is just a client here (it's a matter of WebCenter Content configuration).

  • Redirect DBMS_OUTPUT to calling application and to log file

    Hi,
    I have a procedure to insert a set of records into a table using Merge statement and capture the inserted record count.
    Currently i display the record count using DBMS_OUTPUT in Oracle SQL Developer tool using DBMS_OUTPUT.ENABLE.
    How do i redirect this output to both calling application and Log file on Unix server.
    I have more DBMS_OUTPUT statements in Exception handling to handle failed inserts. How do i redirect these statements to Calling Application and Log file on Unix.
    Can we send any email to a group from PL/SQL if at all program fails and Exception handle is triggered OR if the program complete successfully.
    I appreciate your responses.

    user10405899 wrote:
    Hi,
    I have a procedure to insert a set of records into a table using Merge statement and capture the inserted record count.
    Currently i display the record count using DBMS_OUTPUT in Oracle SQL Developer tool using DBMS_OUTPUT.ENABLE.
    How do i redirect this output to both calling application and Log file on Unix server.
    I have more DBMS_OUTPUT statements in Exception handling to handle failed inserts. How do i redirect these statements to Calling Application and Log file on Unix.
    Can we send any email to a group from PL/SQL if at all program fails and Exception handle is triggered OR if the program complete successfully.
    I appreciate your responses.DBMS_OUTPUT is not the correct tool to be using for outputting information. It writes data to a buffer on the server, and then it's up to the client tool to read the data out of that buffer using the DBMS_OUTPUT.GET_LINE call.
    You could try implementing something like that in your own application if you wanted, but in truth, if you're wanting to capture some trace of what's happening in your application then you are better logging those things to a table using an autonomous transaction procedure, and then have whataver application you want just query that table.

  • .HTML and .DWT files in folders have 0kb size

    Hey guys,
    I was just setting up a new client on the system and I have an issue with uploading HTML and DWT files through Dreamweaver.  The files end up on the server but each is a 0kb file.  Here are my steps:
    In Partner Portal I created a new site
    I chose to start with a blank slate/template
    I logged in via Dreamweaver CS5's BC Extension as I normally do and set the local directory of the project
    I was moving a static HTML site over to this site so the design and files were done already. So once the project was setup in DW I selected all the files in the project folder and uploaded them to the remote site via the Files panel in DW.
    The upload completed and did not note any errors or problems.
    I logged into the BC Admin and went to update some URLs of the pages and I noticed the first .html file in a folder had 0kb.
    I noticed that this problem only occurred in files that are uploaded to a folder. IE- I had a folder called "contact" and a file index.html inside.  I uploaded this folder and the rest via the Files panel in DW. I DID NOT create the folders through BC first.  The same thing happens with .DWT files too.  Although, in this case, since I had a "Templates" directory locally and I'm assuming one was created by BC on the remote host when I created the account it's probably not having to do with users creating folders through FTP/Files panel in DW.
    The .html files in the root of the site are fine. All my JS and CSS files in their folders are also fine.  It just seems to be .HTML and .DWT files in folders that have 0kb.
    Has anyone seen this? 
    I have to get this site live in a rush tomorrow so I'm either going to delete the folders via FTP and create all the pages/folder first in BC and copy and paste the code over from DW to BC Admin area manually.  I'm not excited about doing that as it will add hours onto this site when moving a static site over should be pretty quick.  Now I have to create all the pages and templates manually.

    I can now confirm that the problem is related to DW or the DW FTP login session. I used WinSCP to FTP my files up and they went up fine.

  • Problem with af:resource in Page Template of Custom WebCenter Portal

    According to the WebCenter Developers Guide in a bullet point just before section 11.2.4, I am supposed to be able to use a af:resource tag to include a custom css or js file within my page template. I am trying to do exactly that with a custom css and jquery js file that I have put into the shared folder of my custom portal implementation of JDeveloper. However, whenever I deploy my project and bring up a page using this page template, Firebug shows that it cannot find the file specified.
    I try going directly to the files and get a 404.
    I then check the security policy of the files and they are showing as having the default security policy, so I am not completely sure why this is not working.
    The user that I am logging in as is part of a custom role, but I didn't think that that would have anything to do with files that are stored in the shared folder.
    I did also make sure to Create Portal resources out of each file, but that didn't help either.
    Any thoughts?

    I created fair amount of portal with custom javascript and css and I didn't seem to find any of that...
    What WebCenter Portal version do you use?

  • Best Approach for Security in WebCenter Portal Application

    Hi,
    We are analyzing a right approach for webcenter portal security on an application . We found that we can do all Roles and Security in Page Hierarchy which in turn stores the security details in Jazn-data.xml . Is this the right approach for defining the roles and security for a webcenter portal application .
    What is the importance of Configuring WS_security in webcenter Portal Application and do we need to define this WS_Security even after defining them in page hierarchy. Could you please guide us on this .
    Thank you,
    Sashank P

    Hi Shashank,
    First sorry for late reply,
    WS_Security, can you please explain what do you mean by WS_Security, from the term i could not infer which part you are talking about.
    Let me tell you about the Webcenter security -
    This is the heirarchy , the Fusion middelware forms the base with webcenter at the top.\
    Webcenter Security
    |
    ADF Security
    |
    Fustion Midddleware Security (OPSS)
    Now you are goin to apply security to your Webcenter and ADF layers.
    Lets come back to the question .
    Any webcenter portal, you have to use the Jazn-Data.xml file to secure all the content whether its the navigation /pages /admin pages/taskflows etc.
    Its pretty much easy to use , let me know if you have any difficulty on that.
    Page hierarchy -> Yes you have an option to set your security for pages alone, here you have addition fine grain permisions (update/delete/personalise etc).
    If you need those fine grain permissions you can use this.
    To Conclude i would say use jazn-data for taskflows/components/admin page protection etc.
    Use Page heirarchy's fine grain permission to pages and navigation model's visible attribute to show/hide navigation based on user's roles.
    Let me know if this helps

Maybe you are looking for