Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Touchkit fallback widgetset problem
Hi,
I have setup a touchkit apps with mvn archetype. The problem is with the fallback setting. If
<param-name>fallbackWidgetset</param-name>
<param-value>com.vaadin.terminal.gwt.DefaultWidgetSet</param-value>
the apps can access the desktop web browser (Firefox) successfully.
But when I change to
<param-name>fallbackWidgetset</param-name>
<param-value>com.vaadin.widgetset.MyWidgetSet</param-value>
the Firefox will prompt the message:
ERROR: Possible problem with your *.gwt.xml module file.
The compile time user.agent value (safari) does not match the runtime user.agent value (gecko1_8). Expect more errors.
How can I avoid this?
Thanks.
/Shamsul
I think your widgetset was compiled only for safari and you are trying to display it in firefox (gecko engine).
This is usually done to reduce the compile time of GWT but maybe touchkit default compilation is set up for safari and android only.
See this chapter. Mainly the part starting with "Compiling widget sets takes considerable time."
I put browser identifier gecko1_8 in the *.gwt.xml
<module>
<inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />
<inherits name="com.vaadin.addon.touchkit.gwt.TouchKitWidgetSet" />
<set-property name="user.agent" value="gecko1_8"/>
</module>
then I can access the FallbackApplication successfully in the Firefox but I got prompt message in the android browser with
ERROR: Possible problem with your *.gwt.xml module file.
The compile time user.agent value (gecko1_8) does not match the runtime user.agent value (safari).
Expect more errors.
Why I can't access both browser without error prompt? If can't it's mean I need to create a 2 project setup. One for desktop web browser (vaadin-archetype-clean) and the webmobile (vaadin-archetype-touchkit) separately.
Any suggestion?
/Shamsul
I don't use TouchKit so I can't give you more precise informations.
It seems to me that somewhere a file is setting safari, maybe in touchkit package or in a plugin, ...
From the GWT doc, you should be able to use :
<define-property name="user.agent" values="ie6,ie8,gecko,gecko1_8,safari,opera"/>
But I think it would be better to track the source of the problem
Now I got it.
<set-property name="user.agent" value="gecko1_8,safari"/>
I can access in the both side, Firefox desktop browser and android browser.
Thanks.
/Shamsul