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