Go Back   Java Programming Forums > Java EE (Enterprise Edition) > JavaServer Pages: JSP & JSTL


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 15-05-2009, 11:16 AM
Junior Member
 

Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
megha is on a distinguished road
Default dynamically add jmol applet in jsf

Hi all,

I am trying to add jmol applet in jsf. This applet is used to retrieve the structure of a molecule.
I am able to get this functionality by using script tag as follows:
Java Code
<html>
	<head>
	<title>testing applet</title>
	      <script src="myjmol/Jmol.js"></script><!-- REQUIRED -->
	</head>
	<body>
             <rich:panel>
                 <script type="text/javascript">
                 jmolInitialize("myjmol","JmolApplet.jar");
                 jmolApplet(300, 'load "temppdb.pdb"');
            </script>
           </rich:panel>
       </body>
</html>


Downloaded "jmol-11.6.21-binary.zip" from SourceForge.net: Jmol: Files
and extracted all the files into folder named "myjmol". This contains the js files to use jmolInitialize() and jmolApplet(0 functions.

Another method found is using the applet tag as follows:
Java Code
.....
<body>
<rich:panel>
	<applet name="jmol" code="JmolApplet" archive="JmolApplet.jar" codebase="myjmol" width="300" height="300" mayscript="true">
		<param name="progressbar" value="true" />
		<param name="load" value="temppdb.pdb" />
	</applet>
</rich:panel>
</body>
............
But I am unable to add this functionality dynamically to the jsf panel from the java code.
Any help would be much appreciated.

Thanks in advance.



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
servlet applet communication prashanthi_asn Java Servlet 0 21-05-2009 05:50 AM
RLC Circuit Java Applet syxxpac316 Java Applets 6 13-05-2009 09:26 PM
[SOLVED] Java Applet Switching To Different Windows? channi3 Java Applets 1 11-03-2009 08:41 PM
Calculator-applet AnithaBabu1 Java Applets 0 16-08-2008 04:42 AM


100 most searched terms
Search Cloud
action listener in java actionlistener actionlistener in java addactionlistener addactionlister arraylist value into hash buffered read two integer value in java create an abstract class called shape with abstract methods+java double to integer in java double to integer java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread main java.lang.outofmemoryerror java heap space in eclipse format double java get files from folder java by threads get mouse position java how to convert list to map in java how to format doubles in java how to make a calculator in jframe using jcreator http://www.javaprogrammingforums.com/collections-generics/2688-grade-array-trouble.html http://www.javaprogrammingforums.com/object-oriented-programming/3713-limiting-decimal-places-double.html iphone java java actionlistener java coding - user entered input java deallocate java double format java double to int java font attributes java format double java forum java forums java get mouse position java jbutton java nextline() java program to find dimensions of a room java programming codes using astirisks java programming forum java programming forums java.lang.outofmemoryerror: java heap space java.lang.reflect.invocationtargetexception jbutton actionlistener jtable questions in java jtext bold jxl.read.biff.biffexception: unable to recognize ole stream mean value decimal double java oops java assignments programmer forum smack api messagelistener transaction using gui and 2 dimensional array code in java two dimensional arraylist in java

All times are GMT. The time now is 09:30 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.