Friday, February 3, 2012

Re: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...



On Friday, February 3, 2012 3:06:29 PM UTC+1, Patrick Julien wrote:
Start by checking your paths.


PeopleDataProxy has a field called "todos" but PersonEditor has @UiField called todosEditor with no custom path

Yes, but that's how it's supposed to be: in the absence of @Path annotation, any "Editor" suffix is automatically removed before using the field name as the path.

I haven't see anything wrong in the files (except your –Brandon's– EditorSource should override dispose and setIndex to respectively remove and reorder your subeditors from/within the FlowPanel container, and to be future-proof, you should check the index passed to methods to be positive: see http://code.google.com/p/google-web-toolkit/issues/detail?id=6959 )

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