Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Normal UI and TouchKit UI in the same app
Just wondering if this is possible and then how one would go about doing this.
We tried adding TouchKit as a dependency in a regular, single-module Maven app and it did not work.
I have lots of service and business logic classes in my app that I want to use for both a TouchKit app and a regular app.
So I would like to have my app detect if the user is using a mobile or desktop browser and return the appropriate UI.
What is the best way of doing this?
Hordur, Efla consulting engineers, Iceland
In those few apps I have experience with, we do this so that we have another UI for mobile, and have configured on different URL e.g. in web.xml or some other means.
Yes, it can be in same module, but I would strongly recommend to have multimodule maven project in your case and to have mobile version in its own.
With appropriate application architecture you can use same business logic (backend facades etc.) in desktop and mobile version of the UI.
We did a quick test with a multimodule project and that does indeed work :-)
Also found this post that is doing almost exactly what I wanted:
Thanks for the info!