Hi!
I was just checking the Wiki page on Conditional Properties, and I think an
example is off by one.
Given:
define-property name=mobile.user.agent values=android, iphone,
not_mobile /
property-provider name=mobile.user.agent![CDATA[
{
var ua =
-toolkit/wiki/ConditionalProperties
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
nobody?
On Wed, Jul 13, 2011 at 7:47 PM, Gal Dolber gal.dol...@gmail.com wrote:
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
It is working. Apache Wave uses it. I believe I successfully used it too.
Have a look at the top of the generated symbolMaps files, they'll tell you
which deferred binding property leads to a particular permutation, along
with its value.
--
You received this message because you are subscribed
Thanks!
I still don't understand what I am doing wrong. I even can't get working a
normal selection property.
{{{
define-property name=my.property values=default /
property-provider name=my.property generator=com.myPropertyGenerator /
extend-property name=my.property values=value1, value2 /
Could it be that GWT optimizes the case where the property isn't used in any
generate-with or replace-with rule?
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
Yes, I though that, but then I saw the i18n locale property, that is the
most similar to the one I am trying to do and It doesn't use
when-property-is
generate-with class=com.google.gwt.i18n.rebind.LocalizableGenerator
when-type-assignable class=com.google.gwt.i18n.shared.Localizable /
Comment by gal.dol...@gmail.com:
Is this working already?
I cannot get it working
For more information:
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
Comment by gal.dol...@gmail.com:
Is this working already? just compiled trunk and it doesn't seems to do
anything
For more information:
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
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
-is name=alternateFeatures value=true /
/replace-with
shouldn't some condition be value=false?
For more information:
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
Comment by sco...@google.com:
This is totally sweet.
For more information:
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---
12 matches
Mail list logo