Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Normal UI and TouchKit UI in the same app
Hi,
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?
Thanks,
Hordur, Efla consulting engineers, Iceland
Hi,
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.
Br. Tatu
Hi Tatu,
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:
https://vaadin.com/forum#!/thread/9832065
Thanks for the info!
Hordur