Pectin with GWT 2.1.0 Data Binding

12 views
Skip to first unread message

Daniel Bell

unread,
Oct 12, 2010, 11:13:08 PM10/12/10
to gwt-pecti...@googlegroups.com
Hi All,
Has anyone tried integrating Pectin with RequestFactory? If so, do you
have any tips?
Cheers,
Daniel

Andrew Pietsch

unread,
Oct 15, 2010, 7:23:58 PM10/15/10
to gwt-pecti...@googlegroups.com, Johan Rydberg
Hi Daniel, 

Hi All,
Has anyone tried integrating Pectin with RequestFactory? If so, do you have any tips?

<insert sound of crickets> (c:

I haven't looked at it in quite a while, but I'm hopeful it should work work with pectin.  I'd like to to take a look at some point and see if I can come up with some thoughts from 30,000 feet.

I was thinking of looking at the following Usecases:
1. Using EntityProxies in FormModels... I think this should just work.
2. Using pectin for the equivalent of Driver.edit/flush/hasErrors
3. Routing server errors back to the model (i.e. routing onViolation errors back into the form). 
4. All of the above with nested lists of entities.

As for implementing these things I was hoping to be able to update BeanModelProvider (or something similar) to do most of this.  I.e. I'm hoping something like requestFactoryCompatibleBeanModelProvider.injectErrors(Set<Violation>) will route errors directly to the form fields (I've been thinking about this for a while and was planning to have the model generated by BeanModelProvider implement `HasValidation` and to have field model automatically hook into it).  I think there will be issues & complexities once you start injecting errors into entities contained in collections so I'll have to look at how they handle that (since I'm currently thinking about that use case anyway). 

I'm a bit busy at the minute so I'm not sure how long I'll be so feel free to have a crack at it and let me know what you find.

Cheers
Andrew

Daniel Bell

unread,
Oct 15, 2010, 9:37:56 PM10/15/10
to gwt-pecti...@googlegroups.com, Johan Rydberg
Hey Andrew,
Thanks for the reply. That sounds great :) . I'm still getting my head
around the 2.1 databinding stuff, but I'll let you know how I go when
I start migrating to use RequestFactory.
Cheers,
Daniel

Andrew

unread,
Oct 29, 2010, 7:34:17 PM10/29/10
to GWT Pectin
Just a quick update, the new AutoBean (http://code.google.com/p/google-
web-toolkit/wiki/AutoBean) stuff looks very cool.
Reply all
Reply to author
Forward
0 new messages