Embed silverlight object in OA page

Gurus,
I have a requirement to embed a Silverlight object in an OA page. When I use personalization to do this, the Silverlight area shows (if I rightclick there I get the Silverlight menu) but the silverlight application is not rendered. Any idea why?
I am using OAF version 11.5.10.6RUP.
When I embed a macromedia flashplayer, IT WORKS.
When I save the OA page source as a google page and open the google page, it renders the Silverlight object as well. Only when the page is opened from Oracle it doesn't render Silverlight object.
Steps to reproduce the issue:
1. Personalize any OA page to add a RawText item
2. Set the text of the item to:
<object data="data:application/x-silverlight," type="application/x-silverlight-2"
width="320"
height="320">
<param name="source" value="http://www.silverlight.net/content/samples/sl2/ruby-clock/app.xap" />
<param name="onerror" value="onSilverlightError" />
<param name="background" value="#00000000" />
<param name="initParams" value="reportErrors=errorLocation" />
<param name="windowless" value="true" />
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" />
</object>
3. Open the OA page, you'll see a blank area where if you right-click you can see a "Silverlight" menu (but the application, an anlog clock in this case, is not rendered)
If I use the following macromedia flashplayer object instead, it renders:
<object type="application/x-shockwave-flash"
data="http://www.macromedia.com/shockwave/download/triggerpages/flash.swf"
width="300"
height="120">
<param name="movie" value="http://www.macromedia.com/shockwave/download/triggerpages/flash.swf" />
</object>
Appreciate any help.
Thanks,
Binish

I was able fix this. Just in case someone come across a similar issue, here is the fix:
Cause:
Its completely a Silverlight issue, nothing to do with Oracle. Silverlight has lots of URL access restrictions in place which doesn't allow an HTTPS page to refer to HTTP page (cross-scheme reference) or sometimes even an object to refer to any other domain etc. They have policy files that need to be set properly to enable such accesses. Apparently even when such access is enabled, sometimes these settings are overridden for added security.
Solution 1:
Copy the .xap file over to Oracle (copy to $OA_HTML) and in the "source" of object tag refer to this file
eg:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="400" height="350">
     <param name="source" value="https://<ebizURL>/OA_HTML/PieCharts.xap"/>
     <param name="onerror" value="onSilverlightError" />
     <param name="background" value="white" />
     <param name="minRuntimeVersion" value="2.0.31005.0" />
     <param name="autoUpgrade" value="true" />
     <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
</object>
Make sure the source says "https", if you give the comeplete URL. Alternatively, since the file is in Oracle server itself, you can specify relative URI as follows:
<param name="source" value="/OA_HTML/PieCharts.xap"/>
Solution 2:
Another potential solution could be to find the correct settings for the policy files used by Silverlight. This has to be set where the .xap file is hosted. I haven't tested this option since I don't have access to the server where my silverlight application is tested and the people responsible haven't tried much on this.
Hope this helps someone.
Thanks,
Binish

Similar Messages

  • Embed JavaFX object into JSPX page

    Hi guys,
    I developed a RIA using javaFX and now want to embed this object into a JSPX page. In the page I wrote following sentences,
    <?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:afh="http://xmlns.oracle.com/adf/faces/html">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
            <f:view>
                <af:group>
                    <afh:script source="http://dl.javafx.com/1.2/dtfx.js"/>
                    <afh:script>
                        javafx(
                            archive: "myJavaFX.jar",
                            draggable: true,
                            width: 1080,
                            height: 540,
                            code: "path.Main",
                            name: "myJavaFX"
                    </afh:script>
                </af:group>
            </f:view>
    </jsp:root>I used Oracle Jdeveloper as my IDE and weblogic server as application server. I put the .jar files of myJavaFX application into same folder as the .jspx page.
    To my surprise, when the web page was generated, the application was not displayed but showing the following sentence,
    javafx( { archive: "firstJavaFX.jar", draggable: true, width: 1080, height: 540, code: "path.Main", name: "firstJavaFX" } );Obviously, the logic of my script was not recognized. Instead, it's printed out directly.
    So what could I do with this? Any helpful comments would be greatly appreciated.
    Regards from Isaac.

    This forum is devoted to JSF, JavaServer Faces, which is unrelated to the technologies you are using. You might get a better response in a forum devoted to JavaFX or JSP.

  • APPLET   vs. EMBED or OBJECT tag in JDeveloper

    HI Gentlemen,
    Recently I learned from ADF Code Corner, Item 71, how to set up a client/server communication applet for an ADF application. The solution uses the JavaScript framework on the client. However, it is also stated that "Note that the APPLET tag is used instead of the EMBED or OBJECT tag that would be needed to explicitly invoke Java run by the Java PlugIn." This suggests that I can write a Java program independent of my ADF application which could control a local smartcard reader (this already works fine with German KVK and eGK). Now I would like to trigger this external Java program in my .jspx page to read the contents of a card and communicate it to the page. If this were possible, I could avoid JavaScript at all. It must be installed on the client to access a local smartcard reader. Please drop a few lines where can I find guidance or a working example if any.
    Thanks, kind regards
    Miklos HERBOLY

    Hi,
    if you want to talk to ADF Faces pages on the client side then this through JavaScript. The other alternative is to allow the Applet to perform a server side update (object or database) and then have the ADF Faces app checking for it (af:poll or Active Data Services).
    Frank

  • Calling a method in BPM Object from jsf page

    Hi All,
    How do I call a method in BPM object from JSF page? Is it possible to invoke it in a manner similar to invoking a method from managed bean in JSF application?
    Please help.
    Thanks and Regards,
    Veronica

    You can use f:invoke (or f:invokea to with parameters)
    For ajax calls, you can use f:invokeUrl to get the URL to a particular method within your BPM object, although make sure the Server-Side Method property is set to Yes.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html

  • How do you embed ePub3 in a web page using 'embed code'?

    I have an epub3 that i desperately need to embed onto my web page.
    I am using Weebly who allow for embed code on the web page, and also have a code editor where you can upload files.
    Is it easy enough to somehow upload the mp3's that are in my epub, and then explode the epub and simply copy and paste this html code into the embed code function from weebly?
    This is what I have found so far, but I am no code expert!
    http://stackoverflow.com/questions/7419205/how-do-you-embed-an-epub-in-a-web-page

    That is an interesting question. Since epub3 is based on everything that a web page is made of and is often called a web page in a box, I doubt that current browsers can show the document. Browsers are only now catching up with showing an SVG image. I suppose that, if an epub3 reader is available on the client, it should theoretically be possible. Think of a Word or a PDF document.
    IMHO, the best way out is to convert the book into a PDF format.

  • Anchored Objects Disappear When Page Moved

    I'm working in InDesign CS2 in XP environment. I duplicated a page that contains anchored objects. It was page one; the duplicate page is now page 5. I modified the duplicate page 5. Now I want the altered page 5 moved into page 1 position.
    When I move the pages either by dragging or by right clicking on the page icon and using the Move Page command, all anchored objects on the page disappear. I also cannot release the anchored objects because the release command is disabled when I select an object with the selection tool.
    Any suggestions?

    I got your file, and after looking at it, it's probably better not to post it publicly. For the lurkers, it's a draft government document, not yet ready for release.
    Anyway, I took a look at the file, first in CS2 where it was created, and then in CS3 to see if it would behave differently.
    First, the anchored objects aren't really gone, just temporarily invisible. if you select the objects and move the page, you can still see the selection outline. It's some sort of screen display bug/glitch, I think, in CS2. Exporting to .inx didn't fix it, so I think it's not corruption, and it doesn't happen at all in CS3.
    The bad news is I have no way to explain what the problem is, or how to prevent it from happening. The good news is I found a way to make them reappear! Select the text frame with the selection tool, and change its stacking order. I tried Ctrl + Shift + [ to send to the back, and Ctrl + ] to bring forward, and both seemed to work, though it may make a difference where in the order they start out. If one attempt doesn't work, try again, or send all the way back or forward.
    For what it's worth, this is only a display problem. Even when the anchored objects are not visible on the screen they show in both printed and exported PDF.
    Peter

  • Can i embed a file in my pages document

    Hi there,
    I'm providing links to my work in a pages doc. For work that has no website, I wanted to embed a pdf file within Pages. So that you'd click on an "internal" link and the pdf would open. If not pdf, I can always use a jpg. Is this doable? If so, can anyone share the steps?
    Thanks.

    Closest you'd get is to put it on a webpage and link to the URL, or to drag the .pdf of the page into a page in Pages.
    Pages is not a presentation package with interactivity, for that look to Keynote or make the entire document into a .pdf and make all the effects and links in that.
    Peter

  • How can I get the "pageContext" object in jsp page?

    Hi everyone:
    I want to get struts's DataSource object in jsp page.So I should get the PageContext object in jsp page.My code is:
    ///////////////////datatest.jsp///////////////////////////////////
         DataSource ds=(DataSource)pageContext.getAttribute(Action.DATA_SOURCE_KEY);
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    Is right?But I get the "NullPointerException" error in Tomcat.The connection pool in struts-config.xml is:
    <data-sources>
    <data-source key="mydatasource">
    <set-property property="autoCommit"
    value="false"/>
    <set-property property="description"
    value="MyWebSite Data Source Configuration"/>
    <set-property property="driverClass"
    value="org.gjt.mm.mysql.Driver"/>
    <set-property property="maxCount"
    value="4"/>
    <set-property property="minCount"
    value="2"/>
    <set-property property="password"
    value="qijiashe"/>
    <set-property property="url"
    value="jdbc:mysql://localhost:3306/myweb"/>
    <set-property property="user"
    value="lyo"/>
    </data-source>
    </data-sources>
    I can query the database in servlet.
    I think the method that I get the context is not right.Had someone get the pagecontext in jsp page?help :(

    Sorry I forgot that I had change the code:
    DataSource ds=(DataSource)pageContext.getAttribute(Action.DATA_SOURCE_KEY);
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    to the code:
    DataSource ds=(DataSource)pageContext.getAttribute("mydatasource");
         conn=ds.getConnection();
              stm=conn.createStatement();
              rs=stm.executeQuery(insertsql);
    mydatasource is the struts datasource in "struts-config.xml". I couldn't work

  • Embed gallery to existing web page?

    I am creating a html gallery with lightroom 1.4.1, and succesfully uploaded the gallery to my webite with it's own page index.html
    But I would like to embed it in a existing web page.
    Is there a simpleway to do this.
    Thx
    Brad

    I embed the slideshow into another page by using an iframe.  Crude sample code follows where index.html would be the slideshow.
    <html>
    <head>
    <title>2009 Florida Vacation</title>
    </head>
    <body>
    <div align="center">
    <iframe frameborder="0" src="index.html">This web page uses floating frames and your web browser does not support them. Maybe you should consider updating your browser to a newer one.</iframe>
    <p><a href="../index.html">Home Page</a></p>
    </div>
    </body>
    </html>

  • Positioning Objects on the Page.

    Hi, Expert:
    How can I position two objects on the page relatively? Say, I have two data tables, or one data table and after the table, some other object (button?, etc). B/c I don't know how many rows will return from the database, if I placed two tables too close, the first table will overlay the second one below. Is there a way to place them relatively so the second one will be always at the end of the first one?
    Thanks
    Jimmy

    Yes, and it's pretty easy :)
    Drag and drop a GroupPanel component to the page and put both tables into it.
    Or you can try changing the layout of the page to Flow Layout, but I use the GroupPanel.

  • Auto Force Framed Objects to Next Page

    How do I auto force a placed object to the next page? As you can see in the picture, I have two objects almost on top of each other. The bottom object is being forced up because there isn't enough room at the bottom of the page. I know I can force it to the next page using a hard line break, but I want the content to flow on its own as I make changes. I did try playing with the keep options, but to no avail.

    Well, I was hoping to look at the same portion of text in both images, but your first image shows VAC 4, House Plans and the Story Editor shows VAC 4 Wise Builders, which I imagine is a different part of the document. Either way, I don't know of a way to move an anchored object to another page without moving the anchor itself. I assume you are using a custom anchor, as opposed to Inline or Above Line, correct?
    By looking at your Story Editor image, I can see you separate your paragraphs with double paragraph returns, you have a double-tab in the paragraph after the anchor, and a whole string of paragraph returns, possibly as a way to allow space below your last visible paragraph, or to advance to the next page. This isn't what you are asking about, but that isn't the most efficient typesetting technique. You would be better off separating your paragraphs with the "Space After" paragraph attribute, using only one tab (and setting the tab position so you don't need two), and instead of lots of paragraph returns, you can either use a "Next Frame" character, or set the Keep Options of the following paragraph to begin on a new page/frame/column (which ever you have next).
    Personally, I would anchor an object with the text that describes or referrs to the object, so it wouldn't really be a benefit to move the anchored graphic to the next page if the text is going to stay where it is. I would probably move the text and the anchor along with it to the next page (by either replacing the paragraph return that preceeds that paragraph with a "next frame" character, or setting the keep options as described earlier.
    On the other hand, maybe I'm not understanding what you have or what you want. If you think that's true, maybe try describing it in a different way.

  • Why Is The Menu On The Master Page BELOW The Objects In Other Pages?

    I added a menu on the master page using the Composition widget called featured news and it stays behind the other objects on normal pages.
    How do I fix this? Here are the pictures of the menu when it's closed and when it's open.

    Make a new layer, which is by default placed above all other layers.
    Go to your master page and drag the menu onto this layer.

  • Object appearing on pages applied with master page

    I'm doing a multi-page brochure and I've got all my master pages set up. on the odd pages applied with master page 'A,' a colored rectangle appears when I print that is not on screen on my master page 'A,' nor is it an object on those pages. it also appeared on a pdf that i sent out.
    I can't get rid of it! I've tried to delete the master page 'A' and create a new one (made a copy of a master that didn't have issues), then applied that to the odd pages. no luck.

    Thanks Al, you've been a busy ID user over the years. Me, I've only been using it for a couple years and I always seem to learn something new every day. Thanks for your help, and I'll continue to read further into the threads. There's always more than one way to skin a cat, we all know that, so there are multiple ways to fix the problem at hand. Some of my spreads hold large photos that actually go right through the spine of the spread, and yet the two pages of the spread can actually have 2 different master pages applied. So, I've got to figure out which way is best..whether its moving the master page items away from the spine or if splitting up the pages is better (not exactly sure how that will work yet with large spread photos). I'll look into it more later, when I have more time. Right now I'm on deadline (monthly magazine), and for a quick and easy fix, I can switch master pages off and just copy the master items over to each page spread where I need them.
    and thanks for the tip on Indesignsecrets.com. I didn't know they existed....and now I do, thanks! (too many websites...too little time!

  • Embedding SWF without embed or object tag?

    Does anyone know a way of embedding a .swf file without using
    the embed or object tag? Thanks.

    Alright, I see what you're saying.
    I just want to have my MySpace redirect to my website when
    you go to it.
    <script> and <meta> tags get replaces with
    <..> for security reasons. So I do a redirect through AS.
    Object tag doesn't work. If embed tag is posted then the
    allowScriptAccess="never" script is added automaticaly.

  • How to embed 3D models in web page using JAVA?

    Hello
    I'm doing a project at University to create a virtual tour of a village. I am creating the buildings in MAYA using polygon planes and cubes and then exporting to VRML.
    I plan to embed each individual model into a separate web page. Then when the user clicks on a location in a 2D map they will be taken to the web page containing that building.
    However, I can't work out how to embed these 3D models into web pages using JAVA. Can anyone help me with this, please?
    Also, I've been told to use JAVA 3D to interact with the project but am unclear as to how JAVA 3D would be used in this project - aqny ideas/suggestions welcome!
    M.

    If you use Java-plugin, you can embed Java3D in a web page.
    Here is the URL(http://www.geovista.psu.edu/products/demos/LorenzAttractor3D/index.html) which used Java3D.
    I hope this helps.
    Masa

Maybe you are looking for

  • Guided Selling in B2C Webshop

    Hi All, We are implementing Guided Selling in B2C Webshop.Request you all to share knowledge/documents regarding the same. People who have worked on the same are requsted to share  some scenarios/config docs. Thank you in advance. Regards Sanjib Paul

  • Keynote 6.1 Printing Presenter Notes (Font Size)

    I am a professor and I use extensive presenter notes in my presentations. I have tried printing the slides with the presenter notes but I cannot figure out how to change the font size and other aspects of the printout. I have adjusted the font size o

  • Problem in installaing NI/CVI lab windows version 5.5 in Windows 7 ultimate (64 bit)

    hey, I am trying to install NI/CVI lab windows version 5.5 in Windows 7 ultimate (64 bit) buts its showing error in installation. Is this version is not compatible with higher version of windows?? please give me suggestions. Solved! Go to Solution.

  • Is 5S accelerometer issue going to be fixed?

    I was about to upgrade my iPhone 4S to the 5S until I discovered the Accelerometer bug here: http://gizmodo.com/heres-why-the-iphone-5s-accelerometer-is-so-screwed-up-144596 6306 .  As I understand it, Apple switched to a Bosch unit that is 4X less a

  • How do I keep more than 2 sites open simultaniously?

    With my older version of Firefox, whenever I minimized a site and went to another, the first site was gone. With this version, I can go to a second and keep the first, but I assumed I could continue to a third or fourth site.