Questions tagged [spring-mobile]

Spring Mobile is an extension of the Spring Framework and Spring Web MVC that aims to simplify the development of mobile web applications.

Spring Mobile is an extension of the Spring Framework and Spring Web MVC that aims to simplify the development of mobile web applications. Spring Mobile is a framework that provides capabilities to detect the type of device making a request to your Spring web site and serve alternative views based on that device. Like all Spring projects, the real power of Spring Mobile is found in how easily it can be extended.

Features:

  • A Device resolver abstraction for server-side detection of mobile and tablet devices
  • Site preference management that allows the user to indicate if he or she prefers a "normal", "mobile", or "tablet" experience
  • A site switcher capable of switching the user to the most appropriate site, either mobile, tablet, or normal, based on his or her device and optionally indicated site preference
  • Device aware view management for organizing and managing different views for specific devices

More Information:

Getting Started Guides:

Related Tags:

34 questions
1
vote
0 answers

dynamic compilation failure due to spring-mobile plugin for grails

I am using the spring mobile plugin 0.3 for grails and since using it in any controller, if I make any modification in that controller and refresh the application url in browser, the compilation fails with error groovy.lang.MissingMethodException:…
pri_dev
  • 11,315
  • 15
  • 70
  • 122
1
vote
0 answers

How to Detect Device Type without Spring-Mobile

I know there are multiple questions asked like that but I have tried all of their solutions and none of them worked for me. Before now, we were using Spring-Mobile for detection of Device that is requesting from the browser. But because its support…
1
vote
0 answers

Using Spring Mobile device detection before Spring Security

I want to redirect users to a different page after login depending on what type of user they are, and if they're on a mobile device. My project uses Spring MVC and Spring Security. To get the redirect logic working, I use a Spring Security…
lecce
  • 131
  • 1
  • 4
1
vote
0 answers

spring-mobile and apache-tiles to help use common elements

Hi having an issue with configuring apache tiles with spring mobile.When iam trying to access the web application from mobile its not showing mobile jsp which will be in mobile folder. Below is the code which is in app configuration file…
Rade
  • 11
  • 1
1
vote
1 answer

Allow access to REST API only for mobile devices

It is possible to allow only mobile devices to access REST API on my server side (Based on spring framework) ?
Vladlen Gladis
  • 1,699
  • 5
  • 19
  • 41
1
vote
1 answer

How to apply spring-mobile-device interceptor to welcome-file?

I,m using SpringMVC and i have different design for each device type Desktop/Tablet/Mobile
zond
  • 1,473
  • 1
  • 21
  • 34
1
vote
1 answer

Broadleaf Commerce in Mobile Interface

We are using Broadleaf Commerce Frameworks for our E-Commerce Application. I just want to know, How this frameworks is compitable to Mobile Interface? If it is well compitable, I need to know how can we configure the same ?
sitakant
  • 1,766
  • 2
  • 18
  • 38
1
vote
1 answer

Spring Mobile inside AuthenticationFailureHandler not found

I am development success and failure handlers in Spring Security. Depends device type I must show one html view or send one json response. To this purpose I use Spring Mobile, but when I create Device object with HtttpServletRequest not found. Some…
Dani
  • 4,001
  • 7
  • 36
  • 60
1
vote
4 answers

Bean creation exception in spring mobile

I am getting the following exception while using sample nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.mobile.device.Device]: Specified class is an interface] with…
user2354150
  • 55
  • 2
  • 11
1
vote
1 answer

Is there a simple way to mix spring-mobile and apache-tiles to help use common elements?

I've just setup a new application with spring-mobile and apache-tiles that I intend to used tile descriptors to help me reuse view components among the target platforms. I'm wondering if anyone has already done this and the best way to structure the…
Brett Ryan
  • 26,937
  • 30
  • 128
  • 163
0
votes
1 answer

Is it possible to serve different index.html for desktop and mobile websites with spring boot mobile?

I have a React Single Page APP (SPA) that I want to serve both mobile and desktop users with. Trouble is that I have two different versions of my app for desktop or mobile because the home page UI differs by quite a bit between desktop or…
J. Cool
  • 75
  • 3
  • 7
0
votes
0 answers

Unable to configure Spring Mobile Spring 2

I have a Spring Boot application where I want (for a start) to detect whether my device is mobile or browser. Therefor I thought Spring mobile is a good idea. The problem is that I can't get it going. CODE: Based on the official docs here I…
FishingIsLife
  • 1,972
  • 3
  • 28
  • 51
0
votes
1 answer

Spring Boot Mobile doesn't use mobile templates

I recently added spring boot mobile LATEST to my spring boot project, but somehow it won't use the mobile templates. This is how I configure it to use the specific templates. The default works, but it won't use the mobile templates if I connect with…
Gerolmed
  • 383
  • 2
  • 19
0
votes
1 answer

Detecting a mobile device with spring-boot

I am trying to get my application to detect a mobile device and render that page but I am getting no response but my index.html page is rendering. It is completely ignoring my mobile controller. @Controller public class DeviceDetection { …
Mike3355
  • 11,305
  • 24
  • 96
  • 184
0
votes
0 answers

Struts 2 and spring mobile integration

I would like integrate struts 2 with spring mobile. On Spring official site, http://docs.spring.io/spring-mobile/docs/1.1.1.RELEASE/reference/html/device.html I have follow instructions to integrate spring mobile on my project. On start up, i have…
Bomberlatinos9
  • 790
  • 3
  • 11
  • 24