HELP!!!!!! Applet has messed up my JSC
During the test of integrating applet into JSF pages, my JSC IDE suddently got a problem with applet. Please help me out!!!
>My applet test project:
- Open a new project
- Drop a Label, a Button, and a StaticText into page
- Set button action as "label1.setText("click");"
- Uncheck "escape" property of StaticText and Set "Text" to <applet/>
>Compile and Run the project
- A square box with "x" is shown (this is right for the applet in the page)
- BUT CLICKING BUTTON GETS NO ACTION!
>If I remove <applet/> from StaticText, Everything is fine.
>Do the same thing using JSC on another computer:
- Everything works fine even though I integrate a real applet class.
>Uninstall my JSC2
>Delete folder /Program Files/Sun/Creator2, and /doc and settings/user/.Creator,
>Clean up Registry and restart computer
>Download JSC 2 update 1
>Install JSC 2 update 1
>Try the applet test project
- EVEN WORSE! THE BUTTON DOES NOT SHOW UP!!!
- It only works if I remove the <applet/> from staticText
Can anyone here help me out? Any help is really appreciated!
Thanks in advance,
[1247 byte] By [
field] at [2007-11-26 10:03:11]

# 2
I've tried in both and it looks like the IE submit somehow gets broken when there is a problem with the applet. You get the following exception in the Java Console.
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I was able to get an applet working with a Creator app in IE when the <applet> tag contained valid applet information. Please try continuing to build the web application with a VALID set of applet tags (that won't break).
Cheers!
-David
# 3
Thanks David,
I did test using a valid applet in Creator app such as Clock.class and other applet classes.
Although the applets work fine in IE, the buttons in JSF page do not work at all.
Following is another found.
I tried to set up a communication between applet and the JSF page where the applet is embeded in. I created applet as a JSP plug-in componnet. It works very well in FireFox. Clicking "get" button on JSF page will get the input in applet to the JSF page. And Clicking "send" button on JSF page will send the input on JSF page to the applet.
However, in IE, only "send" button works and "get" button does not.
Does anyone have any idea about how to solve this?
Thanks in advance,
field at 2007-7-7 1:36:37 >
