Create your own property and then use that. For example:
<define-property name="mode" values="hosted,production"/>
then set your property in the HTML file (or even create your own
<property-provider /> if you can detect automatically - check out
GWT's source code for an example on how the i18n tries to do that from
the URL)
Then your deferred binding just simply uses that property in the
standard way, e.g.
<replace-with class="org.gwtinaction.client.SomeClass">
<when-type-is class="org.gwtinaction.client.SomeClassHosted"/>
<when-property-is name="mode" value="hosted"/>
</replace-with>
Out of interest, why change classes between Hosted and Web mode?
//Adam
On Apr 24, 10:17 am, "daniel.z" <
daniel.zieg...@objective-partner.de>
wrote: