Hi,
I have an
applet inside a
jsf page and I access its methods through javaScript.
when I try to call a method using a button inside the applet it works fine, but when I try to call the method through a javaScript it runs the code but reinitializes the applet, so I loose my data. The javascript method is wrapping the applet method scan() to be able to access the scanner.
How can I prevent the javascript from reinitilizing the applet?
public void javaScriptScan() {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
public Void run() {
scan();
return null;
}
});
}