1
I am working on a JSF system and need to send data to the serial port of the client (printer).
The only way is even using Applets?
1
I am working on a JSF system and need to send data to the serial port of the client (printer).
The only way is even using Applets?
1
If you need low-level access (i.e., do more than enable the browser print window with Javascript) you will need something in the client yes, but I wouldn’t recommend an Applet. After so many years the future of Applets is somewhat uncertain. Chrome’s people are discontinuing support for NPAPI; other browsers are also little by little hindering the execution of Applets. As far as I know Oracle has not yet ruled on the subject (besides recommend users looking for other browsers).
Today I don’t see many alternatives in the world of Java. You can distribute an Application desktop for your customers (e.g., sharing a jar
, or even make use of Java Web Start - as long as it is still supported).
But this is clearly on a separate layer of your JSF application. To access it you would need some integration engine (e.g., Web Services or a local control page).
I even thought about creating a desktop app for this, but the problem is that the request should start from the web application to the desktop application, and this (I think) can not do. Or gives?
Gives. You can, for example, raise an http server embedded in your "desktop" application and expose some web-services, or even a local page. Your main website would call these local web services or post to that local page.
Browser other questions tagged java jsf serial
You are not signed in. Login or sign up in order to post.
Check this out: https://www.java.com/en/download/faq/java_webstart.xml I’ve seen distributed apps work really well. A page of your web system would make a Java desktop system available through a link, and this Java system would be the party. Works well with the main browsers and with IE is transparent, you click and the application comes out running - it is logical that at first time and also at each update the user is required to allow the application to run on your machine.
– Caffé