Wednesday, September 24, 2014

Re: only type string and int properties can been inserted to the class?



On Wednesday, September 24, 2014 9:31:36 AM UTC+2, wahaha wrote:
Enum values?
how to pass a enum value from a ui.xml file?

IIRC, by name: enumProperty="ENUM_VALUE".
If that doesn't work, <ui:import> the enum value(s) and then use an expression:
<ui:import field="com.example.myapp.client.MyEnum.ENUM_VALUE"/> <!-- or MyEnum.* -->
enumProperty="{ENUM_VALUE}"
 

On Sunday, September 14, 2014 2:02:38 AM UTC+8, Jens wrote:
I am not entirely sure but I think UiBinder only allows String, int, boolean and Enum values as method/constructor parameters.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment