A property can't be defined conditionally, so you must define it yourself 
if you want to use it and GWT did not define it already.

The only way to get the GWT version as a binding property is to first write 
a linker that publishes the GWT version in the generated JS code and then 
write a <property-provider> JS snippet in the GWT xml to read that 
published GWT version from JS. But that makes you dependent on the linker 
and thats something you probably don't want. It also forces any user of 
your GWT module to use exactly that linker or modify their linker to also 
publish the GWT version to JS. Not so great.

Personally I would try providing two my-lib.gwt.xml files. One for GWT 2.6+ 
and one for earlier versions. Well truth to be told, I simply wouldn't 
support older versions. Anyways, developers can then inherit the file they 
need based on the GWT version they use.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to