Note: At present I am using Spring MVC.
In the head section:
<link rel="stylesheet" href="/scheduler/ext/dhtmlxscheduler_touch.css" type="text/css" charset="utf-8">
In the body section:
It is not clear to me.
1) Is 'spring mobile' the way to achieve this ?
2) If so how do I distingish touchscreen devices ?
3) If the answers above means I use the "WNG tag library" can I just place tags around the <script> / <link> sections I need or do I need to provide a complete WNG jsp ?
Thanks in advance.
Are you looking to conditionally include the CSS and script if the client is a mobile device? If so, yes, you can use Spring Mobile for device detection and then test the currentDevice.mobile or currentSitePreference.mobile attribute in your JSP. The spring-mobile-samples lite-showcase shows this e.g. http://git.springsource.org/spring-m...ome-mobile.jsp.
Thanks I will give this a go.
Can you get more details eg. whether the device has a touchscreen ? As it appears the CSS/JS files mentioned above are for touchscreen devices only.