Saturday, January 22, 2011

Can't get @UiChild to work

Hello,

I'm not understanding why this does not work.

I have the following file Widget.ui.xml

<mbw:MyDecorator>
<g:RadioButton ui:field="value1" ui:name="rbname">value1</g:RadioButton>
<g:RadioButton ui:field="value2" ui:name="rbname">value2</g:RadioButton>
<g:RadioButton ui:field="value3" ui:name="rbname">value3</g:RadioButton>
</mbw:MyDecorator>

MyDecorator.ui.xml is nothing special and MyDecorator.java has the
following method:

@UiChild
public void addRadioButton(RadioButton rb) {
...
}

But I'm allways getting:

[ERROR] [AdminApp] - Found unexpected child element Element
<g:RadioButton ui:field='value1' ui:name='rbname'> (:98)


What I'm missing????

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate