Thursday, October 27, 2011

Re: Editor not flush values of subeditors

What is AddressView is extending?

On Thu, Oct 27, 2011 at 6:25 PM, Cristian Rinaldi <csrinaldi@gmail.com> wrote:
The error is when I declare an interface instead of a particular class implementation.
By example:

@UiField(provided = true)
AddressView address;  //Interface (not a concrete class)

Note that into file ui.xml the inclusion of widget also is a interface

by example:

<l:AddressView ui:field="address"></l:AddressView>

Now, when inject AddressView by constructor in the container view (TerceroNewEditor), and I asign the variable before that uibinder make a interface, aren't because Editor do not send values contained inside the AddressView.

Now, if I only change the declaration:

@UiField(provided = true)
AddressView address;

by

@UiField(provided = true)
AddressEditor address;  //implementation of AddressView
 
and either way that I assign (injection or direct  creation), Editor works well.

This is an error or is not covered?

Thanks and please, sorry for my english!!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fcFfyRmlb1cJ.

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.



--
Christian Goudreau

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

No comments:

Post a Comment