Because we are not taking that extra mile to find out the root cause of the problems in our day-to-day hectic developer life, some of us were thinking that in the latest GWT versions 2.1 onwards, the option to reduce the compilation permutations is not there any more. This is not correct.
The root cause of this problem is that, in the new GWT versions, the user agent value "gecko" corresponding to older firefox browsers has been dropped. So, replacing "gecko" with "gecko1_8" corresponding to the latest firefox browsers works. So, the same tag with <set-property name="user.agent" value="gecko1_8"/> works. The only thing is, with each GWT version coming out, the values that can be given in the value attribute may vary depending on which browsers GWT supports.
In order to see what values the new GWT version supports, one must extract the gwt-user.jar in the GWT SDK and see the UserAgent.gwt.xml in the package com\google\gwt\user\client. This UserAgent.gwt.xml file will tell us which options can be used. If you notice the latest GWT 2.4 UserAgent.gwt.xml file, the User Agent value "gecko" has been dropped which was not allowing our GWT applications to compile. Once this "gecko" value is replaced with "gecko1_8", it works.
Once again, instead of taking things as they are, walk down that extra mile to identify the root cause and we resolve many of our problems.
A. Rafiq Ahamed
Founder, CEO & Systems Architect,
www.eitworks.com
No comments:
Post a Comment