Hi,
Is this working already?
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties

<define-property name="mobile.user.agent" values="android, iphone,
not_mobile" />
<property-provider name="mobile.user.agent"><![CDATA[

  {
    var ua = window.navigator.userAgent.toLowerCase();
    if (ua.indexOf('android') != -1) { return 'android'; }
    if (ua.indexOf('iphone') != -1) { return 'iphone'; }
    return 'not_mobile';

  }
]]></property-provider>

<!-- Constrain the value for non-webkit browsers -->
<set-property name="mobile.user.agent" value="not_mobile" >

  <none> <!-- Actually means NOR, in this case "not safari" -->

    <when-property-is name="user.agent" value="safari" />

  </none>
</set-property>


I made a small project example but when I compile it I get only 6
permutations, when I should get 8? (5 other browsers + (safari *
mobile.user.agent))? the documentation says that this example should
generate 9 permutations...
I am testing with gwt trunk compiled yesterday.

What am I doing wrong?
Thanks in advnc

-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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.

Reply via email to