Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Supports Vaadin card reader USB?
Hello, actually I am using Java Applets for my applications to read a German ID Cards with a USB Card Reader device. I used Vaadin for a little education projects, but now I want to replace my Java Applet application to Vaadin but I don't know if it works? Has anyone here in the forum experience with USB devices with Vaadin?
I'm no expert on the topic of ID cards and don't really have a ready-made solution, but maybe I can give you a few pointers in the right direction that might take you there.
With Vaadin, it would be extremely easy to access a USB device connected to the server since everything runs server-side anyways, but unfortunately, in your case, you need access to a USB card reader connected to the client I asume, and here you encounter the same limitations as any other web application, namely a lack of standard API to access USB devices through the browser.
There are two common ways around this:
- Rely on browser plugins: Implement your application in Vaadin as usual, except for the part that actually talks to the USB device. You could write this part as a Java Applet for example and then use the AppletIntegration add-on (Version for Vaadin 6 here and Vaadin 7 here) to "talk" to the Java Applet from your Vaadin application.
As a third, unlikely option, there's direct USB access from the browser. I haven't ever used this myself and at first glance, it seems to come with a whole set of caveats and you would also loose any functionality already provided by software like AusweisApp and start implementing at the lowest level, but maybe it's worth a look.
Let me announce a blog post about the topic.