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.

Similar Messages

  • How to embed Labview-style charts objects into html pages?

    Hello all,
    I am building a C# (.Net) application that publishes html web pages. Certain pages must contain graphs that I refresh dynamically using select statement that query data from SQL SERVER databases. I like the look-and-feel of the Labview graphs and would like to know in details by which means I could embed them in my C# application. I have looked on the NI web site but aside of certain old articles about Components Works (CW) in Labview 8, have not found any other information on the subject.
    Also are there alternate objects that you know on the market that would be more easily embeddable into html pages and still have the same functions as the Labview graphing objects?
    Thanks a lot
    Christophe

    Hello Crist0phe,
    Like tst mentioned it might be a good idea to have a look at Measurement Studio and evaluate it.
    You can just download the trial version over here:
    http://sine.ni.com/np/app/main/p/docid/nav-99/lang/nl/
    FYI: You can consider Measurement Studio as the newer set of tools that replaced Component Works.
    You could kind of consider it as a "next step" in evolution after Component Works.
    Most .NET developers that use Measurement Studio also really like the WPF UI Controls, so for sure have a look at them while evaluating Measurement Studio.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Embed photoshop galleries into web pages

    I generate photo galleries in Adobe Photoshop and I am
    looking to embed them into web pages, is this possible? Either the
    flash or non-flash galleries. Thanks!

    > Is it possible to embed a Web gallery that is in my
    remote files into a
    > template page so it will match my Web site?
    Yes. Let's see your page as it stands now. Can you upload it
    and post a
    link?
    The Object Not Found message means that there is a javascript
    object that
    has been left out of the page. A look at the code will tell
    which one that
    is.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "sumnerweb" <[email protected]> wrote in
    message
    news:g6l8h6$m2b$[email protected]..
    >I used CS3 to creat a Web gallery. We like all of our
    pages to use our
    >server
    > side includes. I tried copying the code from the Web
    gallery index page
    > into
    > one of my pages, but it didn't work. I get the gallery
    heading and info,
    > but no
    > pics. Where the thumbnails and images should be I have
    "Object not found!
    > The
    > requested URL was not found on this server. the link on
    the referring page
    > seems to be wrong or outdated. Please inform the author
    of that page about
    > the
    > error."
    >
    > Is it possible to embed a Web gallery that is in my
    remote files into a
    > template page so it will match my Web site?
    >

  • Loading of MIME objects into HTML pages

    Hi Everyone
    I am trying to load two logos as mime objects into an HTML page.
    I am using
    call method web_page->load_mime_object
    After that I use
    call method web_page->show_url
    Whenever I call this last method with parameter in_place as a space (to call an external browser) my logos are not displayed.
    If I call the method with in_place as 'X' the logos appear.
    The mime objects reside in the SAP web repository (trans smw0).
    Any ideas how to pull the logos into the external page?
    Regards
    Johan

    Hi Satya
    Thanks very much for your reply. I do not use ITS for my purposes but it is something to be remembered for next time.
    I have actually solved the problem but only with a "second price" solution.
    In the HTML form I have pointed the source of my two images to a shared folder somewhere on our dev server. For our purpose this will always work.
    What I am thinking is that if SAP allows an external browser to be used it should also give the means of loading the images. Maybe I just don't know how.
    Now that I think about it more - I should go and try your suggestion in any case and see if it works. 
    I thank you again and if anyone comes with more ideas they will be as welcome.
    Regards
    Johan

  • Embedding PDF files into jspx pages

    Hi,
    I'm trying to include a PDF into JSPX. I've got a servlet that produces the PDF. I use the following code:
    <f:verbatim>
    <iframe src="myservlet"
    width="100%"
    height="100%"
    scrolling="auto">
    </iframe>
    </f:verbatim>
    However, although I can see PDF content inside JSPX page, commandButtons doesn't work any longer. They seem to be dead.
    So, my question is: which is the "suitable" way to include PDF content into a JSPX page.
    Thanks in advance.
    Luis Serrano.

    Hi,
    actually this is the same experience I gathered when trying it this way. My assumption is that the PDF plugin causes the conflict. However, best integration I can imagineis to se a popup dialog and show the PDF file in there
    Frank

  • How to embed jnlp file into html page using object tag

    hi everyone,
    i have written one jnlp file like this.
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- JNLP file for Demo applicaion -->
    <jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
         <information>
              <title>Demo Application</title>
              <vendor> </vendor>
              <description>Sample Demo Application</description>
              <offline-allowed/>
         </information>
         <security/>
         <resources>
              <j2se version="1.3+" />
              <jar href="common.jar" main="true" download="eager" />
              <jar href="classes12.jar" download="eager" />
              <jar href="toplink.jar" download="eager"/>
              <package name="com.applet.*" part="applet" recursive="true"/>
         </resources>
         <applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
    </jnlp>
    i am trying embed that jnlp file using object tag like
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">     
    <PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
    </OBJECT>
    but i am not able to load the applet using Web Start.
    Can anyone please help me. This is very Urgent for me.
    Thanks & Regards,
    Shiva.

    thanks.
    i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
    <PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
         <PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
         <PARAM NAME="NAME" VALUE="grid" >
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME= "cache_option" VALUE ="no">
    </OBJECT>
    now what i need to do is
    i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
    for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
    Webstart always open a new application windows.
    I need to run an Applet embedded within a web page within a browser.
    Is there a way to still use Webstart?

  • Problem when inserting xml flow into jspx page

    When I drag and drop the xml into the jspx I should get a pop up menu where I would choose region (Im following a tutorial) but I get nothing. I drag and drop and It just opens it in the design editor.
    I would appreciate any help you guys could give

    OK, let cover the basics first:
    JDev version?
    I assume you are on 11.1.1.2.0 or 11.1.1.3.0:
    You created a new task flow (right click on the 'Web content'->new->'ADF Task FLow'
    the check box 'Createas Bounden Task flow was set and the check box for 'Create with Page Fragments' was set
    The filename was something like 'search-email-flow.xml'
    This should create a new bounden task flow with the name of search-email-flow (which creates a xml file with the same name).
    Then you put one view to the flow. After creating the page fragment (the file created should have the jsff file type) you saved all work.
    The you open up an existing jspx file and drag the new flow from the 'Page Flows' folder under 'Web content' onto the design view of the jspx file.
    after dropping the flow you should then see the 'Create' dialog. e careful, you can't drop the flow everywhere on the page. You should drop in into a panel group or some other container. If you drop it i.e. onto a table you see the effect you described: it's opening the flow!
    Timo

  • Trying to embed HTML Gallery into existing page

    I made a small collection in Lightroom and have exported it as an HTML Gallery. I already wrote my site in Dreamweaver, and want to embed this HTML Gallery right into the site -- but everything I have tried comes out wrong. (Results include _nothing_ or a grey box, or a zoomed-in version of the collection with no visible navigational controls.
    It's important that my pre-existing CSS and HTML stay intact. I can't imagine that Adobe is giving us these export capabilities, and then not allowing us to retrofit the HTML Gallery into our own sites. Has anyone succeeded in doing this?

    The standard LR html gallery is always crashing Dreamweaver CS3 on Mac. So no chance to edit there.
    I have no problem embedding using the SimpleViewer gallery using Dreamweaver. Here's a really rough draft of a website I'm building with SimpleViewer embedded:
    http://homepage.mac.com/johnvito/thom_website/simple_gallery.html
    Here's info to help with embedding into an existing html page:
    http://www.airtightinteractive.com/simpleviewer/faq.html
    I haven't had a chance to embed slideshowpro gallery...but their forums are very helpful. Here's a gallery not yet embedded:
    http://homepage.mac.com/johnvito/thom_website/slidepro_gallery/index.html

  • Embed blob object into HTML region

    Hi everyone!
    I am interested in embedding a .swf file into an HTML region in ApEx. It's real easy when the source is a file or http server. However, could this be done if the source was a blob stored in the database?
    Below is the code that works for me now in the HTML region, but I wonder if I could get the embed code to extract the source file from the database instead of a file server.
    <object width="1024" height="768">
    <param name="movie" value="http://webfiles.abc.com/level2/some_xcelsius_dashboard.swf">
    <embed src="http://webfiles.abc.com/level2/some_xcelsius_dashboard.swf" width="1024" height="768">
    </embed>
    </object>
    Thanks!!!
    -Rudy

    Hi
    Yes, that is easily done. See this doc on how to download a blob from a table:
    Link
    When you have created your download function, put a reference to it in the src= parameter.
    Luis

  • 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

  • How to embed Flash Player into HTML page

    Hello,
    I have a question for some gurus who know very well the
    Javascript.
    Namelly what i want is to add <object> tag to the
    current html page programatically with using JAVA SCRIPT.
    As IE is more forgiving it displays the object properly but,
    in Firefox it behaves a bit different. Actually it doesn't appear
    at all in Mozilla browser. Any good sample would be great help.
    I was wondering what i am doing wrong?
    Thanks :)

    thanks.
    i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
    <PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
         <PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
         <PARAM NAME="NAME" VALUE="grid" >
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME= "cache_option" VALUE ="no">
    </OBJECT>
    now what i need to do is
    i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
    for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
    Webstart always open a new application windows.
    I need to run an Applet embedded within a web page within a browser.
    Is there a way to still use Webstart?

  • Can I import an object into a pages document

    Am using pages for the first time and need a quick answer, can I import objects and use in a pages document
    KL

    http://help.apple.com/pages/ipad/1.6/#tan72488430

  • 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>

  • TEI class- want to instantiate a Bean into the page

    I have a TEI class which I am using to add an object to the page.
              I am able to address this object by using (psuedo code below)
              <%= object.getName() %>
              however, if I try to call the object with a usebean tag, like
              <jsp:getProperty name="object" property="Name"/>
              I get an error:
              /myfile.jsp(40): object is not defined as bean
              probably occurred due to an error in /myfile.jsp line 40:
              <jsp:getProperty name="object" property="Name"/>
              any ideas on how to instantiate an object into the page so that it is a
              bean?
              right now I am using the code from the API_taglib.html document:
              public VariableInfo[] getVariableInfo(TagData data) {
              return new VariableInfo[] {
              new VariableInfo("object",
              "fully.qualified.classfilename",
              true,
              VariableInfo.NESTED),
              

    Josh, I think you have to use "useBean". i.e. <jsp:useBean id="object"
              class="java.lang.Object" scope="page | request | session | application">
              before you can reference.
              -E
              Josh Lannin wrote:
              > I have a TEI class which I am using to add an object to the page.
              > I am able to address this object by using (psuedo code below)
              >
              > <%= object.getName() %>
              >
              > however, if I try to call the object with a usebean tag, like
              >
              > <jsp:getProperty name="object" property="Name"/>
              > I get an error:
              >
              > /myfile.jsp(40): object is not defined as bean
              > probably occurred due to an error in /myfile.jsp line 40:
              > <jsp:getProperty name="object" property="Name"/>
              >
              > any ideas on how to instantiate an object into the page so that it is a
              > bean?
              >
              > right now I am using the code from the API_taglib.html document:
              >
              > public VariableInfo[] getVariableInfo(TagData data) {
              > return new VariableInfo[] {
              > new VariableInfo("object",
              > "fully.qualified.classfilename",
              > true,
              > VariableInfo.NESTED),
              > };
              > }
              

  • Converting JavaFX object to its literal notation

    Hello,
    Is there an easy way to convert a JavaFX object into its equivalent object literal notation? I know I can do this using the reflection API, but I was wondering if there is some easier built-in way or some library available to do this. Thanks.
    Nagaraj

    No.
    toString() is the closest you get out of the box, but it is far from allowing round trip serialization...

Maybe you are looking for

  • How do you display an item value based on other items?

    Item C's value depends on item A and B. If both A&B are null then C should display null , if A is null but B is not null then display 'Ok', everthing else display ' problem'; 3 items on page 5 item A: name p5_A, display as text (saves state). source

  • I just updated my OS to Lion, I am no longer able to open all my "Word" documents, is there a way I can do this or change them all to Pages?

    I just updated my OS to Lion, I am no longer able to open all my "Word" documents, as the new system does not support this, can I get around this somehow?, or some way to change the documents all to "Pages"? Or, should I reinstall the Leopard OS, cha

  • Can't install OS 10.6 on my iMac Core 2 Duo

    I purchased a used Apple 20" iMac INtel Core 2 Duo 2.16GHx with 2 mgs of Ram Desktop #1207.  The computer has been wiped clean of all software and data.  I have not been able to install an operating system.  I have been trying to install OS 10.6.  Wh

  • Some question about SAP CRM consultant

    Dear all,       I'm a center-based consultant in china.Our company is among the first batch to run SAP CRM in china in 2006.Our version is CRM 5.0.From my two years' working experience,the status of using CRM in our company is not very good.Complex U

  • Column selection

    Hey ho! I have a JTable which has an x number of rows and columns. Each of the table's columns as a JComboBox as it's header, with multiple options. I need an option where the user can select all rows in the column when selecting a "select all" optio