Si vous utilisez le modèle MVP décrit here, vous pouvez changer les implémentations des vues en fonction de l'agent utilisateur.
Vous pouvez avoir un ClientFactoryImpl et un ClientFactoryMobileImpl. Vous utilisez ensuite GWT.create (ClientFactory.class) pour créer l'implémentation définie dans le fichier .gwt.xml.
Voici un exemple du fichier .gwt.xml
<replace-with class="com.bell.cts.e911.ers.web.client.ClientFactoryImpl">
<when-type-is class="com.bell.cts.e911.ers.web.client.ClientFactory" />
<when-property-is name="user.agent" value="ie6" />
</replace-with>
<replace-with class="com.bell.cts.e911.ers.web.client.ClientFactoryMobileImpl">
<when-type-is class="com.bell.cts.e911.ers.web.client.ClientFactory" />
<when-property-is name="user.agent" value="mobilesafari" />
</replace-with>
Vous pouvez toujours mettre en place user.agents selon la technique décrite ici: http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties
http://jectbd.com/?p=1282