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.
34
questions
2
votes
0
answers
2k
views
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 ...
5
votes
0
answers
535
views
Alternative to spring-mobile
I have a requirement where in all controllers I need to understand device type (desktop, mobile, tablet) and based on that I may need to send request to a different view. Right now, I have littered my ...
0
votes
1
answer
499
views
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 ...
1
vote
0
answers
691
views
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 ...
0
votes
0
answers
987
views
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.
...
0
votes
1
answer
162
views
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 ...
3
votes
2
answers
998
views
How to Junit a RestController But with Spring Mobile (spring-mobile-device)
I have a Rest controller with a Device (Device must be resolvem, I'm using spring-mobile-device) as a Parameter. The unit test gave me a status 415.
Here is the Code of
@RequestMapping(method = ...
1
vote
0
answers
230
views
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 ...
1
vote
1
answer
541
views
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) ?
0
votes
1
answer
6k
views
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.
@...
2
votes
1
answer
220
views
jQuery mobile - after browser refresh page totally messed up
I'm developping a jqm application with spring mobile in the back-end.
Whenever I hit the browser refresh button on my mobile phone the page is completely devastated afterwards. Browsers back-button ...
2
votes
1
answer
476
views
Spring Mobile EnableFallback not working
I'm trying to get the fallback solution working on mobile but having some issues.
I've the following jsp structure
views
-mobile
--about.jsp
-tablet
--about.jsp
--intermediary.jsp
about.jsp
...
1
vote
1
answer
863
views
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
<!-- START of MOBILE -->
<mvc:annotation-driven>
<mvc:argument-resolvers>
<...
2
votes
1
answer
529
views
Spring chaning LiteDeviceDelegatingViewResolver and InternalResourceViewResolver
I'm having trouble using Spring Mobile 1.1.2 and Spring MVC. The problem I'm having is, that in the application I have all views for desktop and for some desktop, I have mobile alternative.
I use ...
1
vote
1
answer
724
views
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 ...
3
votes
1
answer
1k
views
How can I use view resolver to return mobile or normal view?
I have a web app and I want add the mobile version to it..
So I followed this guide to add spring-mobile, but I can't get my mobile views..
I don't want add in every controller's methods this piece ...
5
votes
2
answers
10k
views
Desigining a mobile app for an existing Spring MVC application (Spring Mobile or Phonegap)
I created a web application on Openshift using Spring MVC and MySQL.
Now I want to go mobile for this application. I want to publish the same application as a mobile app (Android mainly). Primarily, ...
0
votes
0
answers
301
views
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 ...
0
votes
1
answer
198
views
Available technologies for Mobile Web Development
Recently we have finished the development of our application and we have used Spring , Hibernate,Jquery etc in it.
Now today my manager came to me and asked , hey we have to develop a mobile version ...
0
votes
1
answer
176
views
Redirecting issues with spring and springmobile
I'm building a website using Spring and the SpringMobile extension.
I've configured the LiteDeviceDelegatingViewResolver with mobilePrefix = m/, tabletPrefix = t/ and enableFallback = true, so that, ...
0
votes
1
answer
843
views
How to use Spring-Mobile with webflow?
I need to use Spring-mobile to detect the device. I have seen lot of examples with spring-mobile and spring mvc but none with webflow. Below is a sample webflow, I need to use device detection so I ...
1
vote
1
answer
778
views
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 ...
1
vote
4
answers
4k
views
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....
2
votes
2
answers
2k
views
Can Spring Mobile Treat iOS and Android Differently?
Spring Mobile allows a Spring MVC application to detect whether a web client is a desktop/laptop, tablet, or mobile device.
Is it possible to determine if a device is Android/iOS using Spring Mobile? ...
4
votes
0
answers
2k
views
Trying to add Spring Mobile to my current Spring MVC Project
I am trying to add Spring Mobile to my current Spring MVC Project but I keep getting the following error:
org.springframework.web.util.NestedServletException: Request processing failed; nested ...
0
votes
1
answer
113
views
WurflDeviceResolver not found
I found that there was a WurflDeviceResolver class in spring-mobile 1.0.0.M3 build. but the same class i didn't find in any release build of spring-mobile.
so is it deprecated?
what is is the other ...
1
vote
1
answer
1k
views
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 ...
9
votes
7
answers
2k
views
Is there any design pattern to switch between data depending on the device type?
We have a spring MVC based web application. Now we need to modify this application so that it renders properly on the smartphones.
For this we are going to create separate JSP's for the smartphones. ...
2
votes
1
answer
1k
views
How to integrate Spring Webflow, Spring Mobile and WURFL
I wonder if anyone can help. I am working on a Spring Webflow 2 app, where I would also like to integrate Spring Mobile 1.0 with WURFL 1.4.2.
I have got Webflow and Spring Mobile working together ...
6
votes
2
answers
2k
views
How to cache REST responses, Spring For Android
The goal is to cache some responses from web service.
I am using Spring for Android framework - http://www.springsource.org/spring-android#documentation to communicate with restful service. As I know ...
7
votes
1
answer
3k
views
Spring Mobile: how to add DeviceWebArgumentResolver programmatically?
Spring mobile documentation suggest adding the following configuration:
<mvc:annotation-driven>
<mvc:argument-resolvers>
<beans:bean class="org.springframework.mobile....
3
votes
2
answers
8k
views
Spring Mobile - Interceptor not applied? Device is null
I'm experimenting with Spring Mobile but I can't seem to get the basic example working. I have a feeling I'm missing something stupidly simple but I can't figure out what it is. Here is what I have ...
1
vote
0
answers
175
views
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 ...
2
votes
1
answer
842
views
Spring-mobile site preference in viewresolver not in each controller
The spring mobile documentation shows how to implement a separate mobile view layer like below :
@Controller
public class HomeController {
@RequestMapping("/")
public String home(...