I'm working on a JSF system and need to send data to the client (printer) serial port.
The only way is even using Applets?
I'm working on a JSF system and need to send data to the client (printer) serial port.
The only way is even using Applets?
If you need low-level access (i.e. do more than activate the browser print window with JavaScript) you will need something on the client rather, but I would not recommend an Applet. After so many years the future of the Applets is somewhat uncertain. The Chrome folks are discontinuing NPAPI support ; other browsers are also becoming more and more difficult to run Applets. To the best of my knowledge, Oracle has yet to comment on the subject (in addition to recommend that users search for others browsers).
Today I do not see many alternatives in the Java world. You can distribute a desktop application to your clients (eg, share a jar
, or even use Java Web Start - as long as it is still supported).
But this is clearly in a separate layer of your JSF application. To access it you would need some integration mechanism (e.g., Web Services or a local control page).