Chrome deferred binding issue

42 views
Skip to first unread message

manstis

unread,
Mar 20, 2012, 5:08:31 PM3/20/12
to Google Web Toolkit
Hello,

I am having a problem with deferred binding for Chrome.

This is an extract from my gwt.xml module definition:-

<replace-with
class="org.drools.guvnor.client.widgets.decoratedgrid.CellHeightCalculatorImplSafari">
<when-type-is
class="org.drools.guvnor.client.widgets.decoratedgrid.CellHeightCalculatorImpl"/
>
<when-property-is name="user.agent" value="safari"/>
</replace-with>
<replace-with
class="org.drools.guvnor.client.widgets.decoratedgrid.CellHeightCalculatorImplIE">
<when-type-is
class="org.drools.guvnor.client.widgets.decoratedgrid.CellHeightCalculatorImpl"/
>
<any>
<when-property-is name="user.agent" value="ie6"/>
<when-property-is name="user.agent" value="ie8"/>
<when-property-is name="user.agent" value="ie9"/>
</any>
</replace-with>
<replace-with
class="org.drools.guvnor.client.widgets.decoratedgrid.CellHeightCalculatorImpl">
<when-type-is
class="org.drools.guvnor.client.widgets.decoratedgrid.CellHeightCalculatorImpl"/
>
</replace-with>

This works well for FF and IE but Chrome has the default
CellHeightCalculatorImpl instantiated.

Any pointers to what I am doing wrong?

GWT2.3, Chrome 17.0.963.46.

With kind regards,

Mike

manstis

unread,
Mar 22, 2012, 9:35:25 AM3/22/12
to google-we...@googlegroups.com
Should anybody encounter this type of problem.... check, check and check again.

Eventually (after far too long) I check the fully qualified class names and these were wrong.

Luckily I can laugh at myself :)
Reply all
Reply to author
Forward
0 new messages