Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

writer.writeAttribute("onError", "(this.src=variable)", "onError")

1004526Dec 27 2013 — edited Jan 2 2014

    Below line works perfectly

    writer.writeAttribute("onError", "(this.src='/path/image.png')", "onError");  //it assigns src attribut of html img tag with "/path/image.png" value if error occurs

    What i need

    String variable = "Something";

    writer.writeAttribute("onError", "(this.src=variable)", "onError");  //it want to use a variable

This post has been answered by Timo Hahn on Dec 27 2013
Jump to Answer

Comments

Answer

Let me start by saying that decompiling, reverse engineering, or altering software delivered by Oracle is a violation of the Terms of Use.  I recommend you take a few steps backward and consider what you are actually trying to accomplish.

Next, the URL you shared to "forms-demo.com" is configured for a form running in IE11 and not FSAL.  So it's no surprise you are getting an error.

Finally, if your goal is to package FSAL with a JRE, consider these options which would not cause you to violate any terms of use:

1.  Launch4J http://launch4j.sourceforge.net/

http://launch4j.sourceforge.net/

https://community.oracle.com/thread/4111118

2.  JLink  https://docs.oracle.com/en/java/javase/11/tools/jlink.html

Marked as Answer by Walid KHARRAT · Sep 27 2020
Walid KHARRAT

Michael,

Thanks for your response, i'm just curious about how things are done. But you have reason there are ways you shouldn't try.

The url is runing well with fsal.jar in command line.

Running forms in a panel of javaFX offer multiple advantages, and having webview panel surrounding forms panel in the scene is a good enhancement.

So can we expect this enhancement in the future releases.

Regards

Walid

You can easily do the reverse;  run JavaFX within a Forms app as a Java Bean.  Take a look at some of the work @"Friedhold Matz" has done with JFX within Forms apps.  He has posted many of his efforts on Twitter.  https://twitter.com/FriedholdMatz

For Oracle Forms, we have no plans to do any extensive work with JFX within Forms.  Because Oracle no longer controls JFX, its future is unclear.  Further, we do not want Forms to be fully dependent on third party technology.  We may offer limited features that use JFX (like audio support), but we would not likely do anything that would prevent the product from being usable without having a third party technology.

https://twitter.com/OracleFormsPM

Walid KHARRAT

I understand your point of view, but this can be another way to launch forms like (applet,webstart,jnpl,fsal...). And not the main one(fsal). just adding the needed class and code snipet to integrate in javaFX application. with the risk that the technology change or disapear(it's no longer shocking)

Mark Striekwold

Also embedded JavaFX to Forms a long time ago. My projects still can be found on github: https://github.com/mark-oradev/FormsPJC/tree/master/jfx

Walid KHARRAT

Thanks for your share Mark

1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details