Search code examples
javacssgwtuser-agentuibinder

Change UiTemplate based on browser user-agent in GWT


I've been working on a web application that will be used by both iPads and desktop browsers. I have two UiBinder templates created that have the same fields, just rearranged differently with different CSS.

Is there a way to have GWT automatically use a different UiTemplate when a mobile browser's user-agent is detected?


Solution

  • you might want to take a look at m-gwt ( http://www.m-gwt.com ). This is a mobile widget library for GWT.