RestTemplate does support multiple message converters. You can even add two of the same one, but RestTemplate will only ever use the first one in the list it finds that supports a specific media...
Type: Posts; User: Roy Clarkson; Keyword(s):
RestTemplate does support multiple message converters. You can even add two of the same one, but RestTemplate will only ever use the first one in the list it finds that supports a specific media...
The first thing I notice is the content type being returned is text/html. You can see this declared in the stack trace. You've registered the GsonHttpMessageConverter to accept application/json, so...
Hi Adam,
You've just described the challenges of maintaining a forked version of a library. One of the ongoing goals of the Spring for Android RestTemplate is to maintain compatibility and keep up...
Understood, and we certainly appreciate the feedback. It is documented in the reference manual, and in the javadoc. But that doesn't mean anything if people are still struggling with this. You aren't...
Hi, thanks for your interest in Spring for Android. Spring MVC is a fully featured web framework that can be used to build modern web sites. We use it in our samples because we like it, and we built...
As you noted, the default RestTemplate constructor does not include any message converters. This decision was made to reduce the number of objects being instantiated, due to Android's more limited...
Both the standard J2SE Http client and HttpComponents client allow you to set a timeout. Within Spring for Android this is exposed via a couple methods in the respective request factories,...
I'm happy to announce Spring Mobile 1.1.0.M3 is now available!
http://www.springsource.org/spring-mobile/news/1.1.0.m3-released
Thanks for all the feedback and support from the community!
Added and working on MOBILE-72.
Thanks for sharing!
I'm having trouble understanding the issue. Can you describe what is happening, and what are your expectations? Thanks!
I've pushed a fix for MOBILE-69 which should resolve this issue. Thanks!
I've pushed a change for the issue with absolute URLs. If the LiteDeviceDelegatingViewResolver detects an absolute URL it will not attempt to adjust it for mobile/tablet view resolution.
I've never attended any of these groups, but they may be worth looking into.
Jacksonville JUG - http://www.jaxjug.com/
Gainesville Web Development Group - http://meetup.gnvwebdev.com/
Miami...
Nice tip! I've stuck the thread so others won't miss it. I've seen/heard questions on how to integrate with Tiles, so thanks for sharing. I'm sure this will help.
Hi, several of the sample apps make very similar requests and work across those two versions. Can you provide any errors or stack traces? Thanks!
Ok, I see. This would basically be a configurable alternative for the mDot and dotMobi strategies, but not for the urlPath option. You've touched on a theme that has come up in our discussions, in...
I've created a JIRA for this to investigate the issue. Thanks!
I agree with your feelings. When I added the tablet support everything became more complicated. The original static convenience methods made more sense when only dealing with mobile or normal...
Indeed it is. I created a JIRA and have already pushed a fix for this which is available in the latest snapshot.
Thanks!
Hi, this is a Jackson deserialization issue. if you compare the JSON response with your LoginBean, the array of statuses is contained within the element "emp-data". However, your RestTemplate request...
I see from this question on StackOverflow that you solved this problem by configuring your mysql query on the server.
Hi, httpcomponents-client-4.2.3 is not compatible with RestTemplate in Spring for Android. The CommonsClientHttpRequestFactory is for use with the Commons HttpClient 3.1. Support for this is...
Hi, we are working on merging in changes from Spring 3.2, which will include generics support in RestTemplate requests. For now, this can be accomplished using arrays.
ResponseEntity<Mine[]>...
Regarding the "thanks" page, the enableFallback option was meant to help with this, but it's assuming views. The second issue with absolute URLs is another bug. We'll have to consider how to best...