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.
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.