On 03.07.2013, at 17:34, Radu Cotescu <[email protected]> wrote: > 1. Currently there's no support for hierarchical structures. ValueMap > doesn't provide this kind of support.
Yes, the jcr property value map implementation supports relative paths. This should definitely be supported, as you very quickly have a nested structure with JCR and the sling post servlet. So field names supporting relative paths should all there is required - this is in line with the sling post servlet. > 2. As long as the Field from the ValidationModel specifies a certain > Validator to be used for validating the field's value I don't see why we > couldn't have a Validator that checks the data in an external system. The > single current constraint of a Validator is that it has to provide a > validate method, returning a boolean. The implementation can be done > however the developer sees fit. If the Validator is a service/component, then it can easily reference other services. Cheers, Alex
