Hi,

I have pretty much the same code in my project for a long time but I had 
disabled everything but the desktop replace-with default rule. Today I have 
included the rules for tablets and mobiles again and deferred binding 
doesn't work correctly. GWT always uses the DesktopGinjectorProvider. Even 
if I disable all rules again and directly tell GWT to replace 
DesktopGinjectorProvider with TabletGinjectorProvider GWT uses the 
DesktopGinjectorProvider:

<replace-with class="<package>.TabletGinjectorProvider">
   <when-type-is class="<package>.DesktopGinjectorProvider" />
</replace-with>


So I turned on GWT debug messages and the rebinding log says:

- Rebinding <package>.DesktopGinjectorProvider
- - Checking rule <replace-with class='<package>.TabletGinjectorProvider'/>
- - - Checking if all subconditions are true (<all>)
- - - - <when-type-is class="<package>.DesktopGinjectorProvider"/>
- - - - - Not an exact match
- - - - No: One or more subconditions was false



So GWT sees my rule that should replace the DesktopGinjectorProvider with 
the TabletGinjectorProvider but doesnt find an "exact match" and thus uses 
the DesktopGinjectorProvider as its a concrete class.

So how can a fully qualified class name "not exactly match"? Any ideas? 


-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/8HVLgE4phMsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to