Overblog
Suivre ce blog
Editer l'article Administration Créer mon blog
26 décembre 2006 2 26 /12 /décembre /2006 17:46

Purpose

Here is a Java bean that allows to have an enhanced Web Browser.
It is a full Web browser that can handle Javascript and display Flash animations.

The material comes from a sourceforge project:
http://sourceforge.net/project/showfiles.php?group_id=170904


Enhanced Web Browser

It can accept both http url and local machine html file names.

It needs, at least, a 1.4 JRE so the Sun Java plug-in, so that it won't run with the JInitiator.


The Java code

     EnhancedHTMLBrowser.java



The implementation class of the Bean Item

     oracle.forms.fd.EnhancedHTMLBrowser


The methods you can call



  • Get the Forms Window

Set_Custom_Property( 'BL.BEAN', 1, 'INFOBEAN', '' ) ;

This must be used to retrieve the Forms window that handles the webBrowser, then synchronize its position when the windows is moved. This must be the first property set (in the When-New-Form-Instance trigger).

 

 

 

 

 

  • Set the URL/File

Set_Custom_Property( 'BL.BEAN', 1, 'SET_URL', 'url | file_name' ) ;


e.g. :

Set_Custom_Property('BL.BEAN', 1, 'SET_URL', 'http://www.developpez.com/' ) ;         


Set_Custom_Property('BL.BEAN', 1, 'SET_URL', 'd:/mypage.htm' ) ;

  • Set the border of the bean

Set_Custom_Property( 'BL.BEAN', 1, 'SET_BORDER', 'true | false' ) ;


When you want to use this bean to display a Flash image (*.swf), you would probably prefer not to have any border bounding the image.
In this case, set the border to false.


  • Basic navigation

Set_Custom_Property( 'BL.BEAN', 1, 'SET_NAVIGATION', 'back | forward | refresh' ) ;



The sample dialog

     .
Download the eHTMLBrowser.zip file
     . Download the sourceforge project zip file

     . Unzip the files
     . copy the jdic.jar and eHTMLBrowser.jar files in the <ORACLE_HOME>/forms/java directory

     . Edit your /forms/server/formsweb.cfg file to add these 2 jar files
     . Add the 2 .dll files and IeEmbed.exe (from the javaflashbridge-v1.zip file) to your Windows/system32 directory
     . Open the EHTMLBROWSER.fmb module (Oracle Forms 9.0.2)
     . Compile all and run the module

     The .jar files must be signed
     The eHTMLBrowser.jar and jdic.jar files provided with the .zip file are already signed


 

Partager cet article

Published by Oracle Forms community - dans Bean - general
commenter cet article

commentaires

Samir 18/11/2016 09:54

Hello,

I followed all the mentioned steps and the form opens in the application, but the Browser is not displayed in the form.
Could anyone please suggest on this: what could be the reason(s).

Regards,
Samir

Samir 18/11/2016 11:24

We use 10g

Regards,
Samir

sindhu 14/03/2015 08:43

i did all the things mentioned in the steps,but when im running the form its not showing anything.. in the java console im getting the below errors
no jdic in java.library.path
The filename, directory name, or volume label syntax is incorrect

Elves 02/03/2011 16:42



Hi,


I use JInitiator 1.3.1.22, and I also have installed on my machine the java JRE 1.6.0, but was configured as formsweb.cfg orientation. but not open the page properly, or does not work, as I am
novice in java, I do not know how to load a jar out of JInitiator + Java, or a jar that is not configured into the JInitiator. Could you give me an example of a forms without JInitiator running
or active with a java class that is configured and outside Jnitiator.

Below the configuration of formsweb.cfg
[webutil]
WebUtilArchive=frmwebutil.jar,jacob.jar,ticker.jar,FormsGraph.jar,eHTMLBrowser.jar,jdic.jar,frmall.jar,JDICplus.jar,ehb.jar
#WebUtilArchive=frmwebutil.jar,jacob.jar,ticker.jar,FormsGraph.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
#envFile=formsdemo.env
envFile=default.env
#archive_jini=frmall_jinit.jar,ticker.jar,eHTMLBrowser.jar,jdic.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/FormsGraph.jar
archive_jini=frmall_jinit.jar,ticker.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/FormsGraph.jar
archive=/forms/java/frmall.jar,/forms/java/JDICplus.jar,/forms/java/ehb.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/FormsGraph.jar,/forms/java/eHTMLBrowser.jar,/forms/java/jdic.jar,/forms/java/frmall.jar,/forms/java/JDICplus.jar,/forms/java/ehb.jar
lookAndFeel=Generic
#otherParams=OUTPUT_REAL_DIR=C:DevSuiteHome_10formsdemostemp/ OUTPUT_VIRTUAL_DIR=/forms/formsdemo/temp/
#otherParams=OUTPUT_REAL_DIR=C:WINDOWSTemp/ OUTPUT_VIRTUAL_DIR=/forms/formsdemo/temp/


ERROR JINITIATOR
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
User home directory = C:Documents and SettingsUSUARIOProxy Configuration: Browser Proxy ConfigurationJAR cache enabled
     Location: C:Documents and SettingsUSUARIOOracle Jar Cache
     Maximum size: unlimited
     Compression level: 0----------------------------------------------------
RegisterWebUtil - Loading WebUtil Version 10.1.2.0Loading http://spe29963:8892/forms/java/eHTMLBrowser.jar from JAR cacheLoading http://spe29963:8892/forms/java/jdic.jar from JAR cacheLoading
http://spe29963:8892/forms/java/frmall.jar from JAR cacheLoading http://spe29963:8892/forms/java/JDICplus.jar from JAR cacheLoading http://spe29963:8892/forms/java/ehb.jar from JAR
cacheproxyHost=nullproxyPort=0connectMode=HTTP, native.Versão do Forms Applet é : 10.1.2.0


java.lang.VerifyError: (class: oracle/forms/ms/ehb$1, method: signature: (Loracle/forms/ms/ehb;)V) Expecting to find
object/array on stack    at oracle.forms.ms.ehb.$init$(ehb.java:118)    at oracle.forms.ms.ehb.(ehb.java:35)    at
java.lang.Class.newInstance0(Native Method)    at java.lang.Class.newInstance(Unknown Source)    at oracle.forms.ui.VBean.instantiateBean(Unknown Source)  
 at oracle.forms.ui.VBean.setProperty(Unknown Source)    at oracle.forms.handler.ComponentItem.setCustomProperty(Unknown Source)    at
oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)    at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)    at
oracle.forms.handler.UICommon.onUpdate(Unknown Source)    at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)    at
oracle.forms.engine.Runform.processMessage(Unknown Source)    at oracle.forms.engine.Runform.processSet(Unknown Source)    at
oracle.forms.engine.Runform.onMessageReal(Unknown Source)    at oracle.forms.engine.Runform.onMessage(Unknown Source)    at
oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)    at oracle.forms.engine.Runform.startRunform(Unknown Source)    at
oracle.forms.engine.Main.createRunform(Unknown Source)    at oracle.forms.engine.Main.start(Unknown Source)    at sun.applet.AppletPanel.run(Unknown
Source)    at java.lang.Thread.run(Unknown Source)


Thank you for your attention and patience.

Elves.



Oracle Forms community 03/03/2011 07:34



Here is a link that explains how to use the Sun plug-in instead of the JInitiator:


http://fdtool.free.fr/LAF/doc/implementation.htm


 



Mohamad Mualz 13/10/2010 09:18



How will dll files and IeEmbed.exe be copied to client machine?


Regards,



Oracle Forms community 13/10/2010 19:08



Most of the companies have scripts to downlod files/programs on the client machines at startup.



dany 28/01/2010 14:50


merci pour la reponse precedente
j'ai signe mes jars, maintenant l'application prend un temps enorme pour lancer et planque apres affichage de l'ecran
dans la console java j'obtient cette erreur


org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect


at org.jdesktop.jdic.init.JdicManager.initShareNative(Unknown Source)


at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)


at oracle.forms.fd.EnhancedHTMLBrowser.(EnhancedHTMLBrowser.java:56)


at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)


at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)


at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)


at java.lang.reflect.Constructor.newInstance(Unknown Source)


at java.lang.Class.newInstance0(Unknown Source)


at java.lang.Class.newInstance(Unknown Source)


at oracle.forms.handler.UICommon.instantiate(Unknown Source)


at oracle.forms.handler.UICommon.onCreate(Unknown Source)


at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)


at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)


at oracle.forms.engine.Runform.processMessage(Unknown Source)


at oracle.forms.engine.Runform.processSet(Unknown Source)


at oracle.forms.engine.Runform.onMessageReal(Unknown Source)


at oracle.forms.engine.Runform.onMessage(Unknown Source)


at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)


at oracle.forms.engine.Runform.startRunform(Unknown Source)


at oracle.forms.engine.Main.createRunform(Unknown Source)


at oracle.forms.engine.Main.start(Unknown Source)


at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)


at java.lang.Thread.run(Unknown Source)


Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect


at java.io.WinNTFileSystem.canonicalize0(Native Method)


at java.io.Win32FileSystem.canonicalize(Unknown Source)


at java.io.File.getCanonicalPath(Unknown Source)


... 23 more


------> ExtendedFrame title : Enhanced Web Browser


Set Border=false

merci d'avance