As an example, I would like to have an array of widgets.  The
advantages to this is that the code is more compact, at least with
regards to event handling.  If I have ten buttons, then I don't have
to have ten functions, just one in which I check the source of the
event.

Prior to GWT 2.0 I had no trouble with this (I used an arraylist more
than a static list).

I know in the code I can do the following:

@UiField Button[] button;

but in the ui.xml if I have

<g:Button ui:field='button[0]'/>
<g:Button ui:field='button[1]'/>

the code complains that button is not defined.

So is it possible to use arrays or lists in a gwt 2.0 uiBinding, or is
this one limitation that we are forced to live with in order to enjoy
all the benfits of gwt 2.0 uiBinding?

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