Monday, July 14, 2014

UiRenderer with numeric getter

For some reason I can't seem to find anything on this, no group posts, nothing in the gwtproject.com tutorials, or google search.
 
What I have is a UiRenderer that points to an Object that has a getter whose return type is Integer.  When I try to use this getter in a ui:text element's for attribute I get an error indicating that a string is required.
 
The XML is similar to the following:
 
<ui:with field='theObject' type='the.custom.objects.class' />
 
<ui:text from="{theObject.getInteger}">1</ui:text>
 
 
 
I really don't want to change the return type to String or write a decorator that returns String instead.  Seems like there should be some other way to make this work?
 
Thanks,
Pat

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