I think you have to specify <an> for each if in your replace-with.
Try:
<replace-with
class="com.hs.moose.common.client.widget.NextPreviousButtonCSS">
<when-type-is
class="com.hs.moose.common.client.widget.NextPreviousButton"/>
<any>
<when-property-is name="user.agent" value="safari"/>
<when-property-is name="WebKit" value="yes"/>
</any>
</replace-with>
On Jun 10, 6:18 am, Evan Ruff <[email protected]> wrote:
> Hey guys,
>
> I'm trying to add some rebind parameters for an Android implementation
> of my application and I just can't seem to get it to work right. In my
> Application.gwt.xml I'm doing this:
>
> <define-property name="WebKit" values="yes,no"/>
> <property-provider name="WebKit"><![CDATA[ return
> navigator.userAgent.indexOf('WebKit') > -1 ? 'yes' : 'no'; ]]>
> </property-provider>
>
> <replace-with
> class="com.hs.moose.common.client.widget.NextPreviousButtonCSS">
> <when-type-is
> class="com.hs.moose.common.client.widget.NextPreviousButton"/>
> <when-property-is name="user.agent" value="safari"/>
> <when-property-is name="WebKit" value="yes"/>
> </replace-with>
>
> <!-- Rebind the entry point if Gears is not installed -->
> <replace-with class="com.hs.moose.app.client.Application">
> <when-type-is class="com.hs.moose.app.client.HasGearsEntry" />
> <when-property-is name="gears.installed" value="false" />
> </replace-with>
>
> But $WebKit never gets set, either yes or no. I was wondering if
> anyone could help me out on this sort of thing (It's my first go at
> it.) Also, is there a way to do Android, iPhone and Chrome seperately,
> or am I only limited to "Webkit"?
>
> Thanks!
>
> Evan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---