Hi Justin,
yes you are probably right. However there are few downsides of this
approach I can think of:
- i'm not sure if it is worth to add such a big library to a project if you
want to use just a small part
- there is no fun :)
But I will verify that. Maybe this solution will work for me. And
Hi again,
generally I like the resource base validation very much. However after
going through jira Radu provided I am not sure if it is proper solution for
my problem.
First of all I don't want to filter improper data or stop them from being
saved to the repository. I just want to get validation
Hi Kasia,
Is it not possible to just use a JSR 303 implementation against your
model objects? Since they are essentially just POJOs, I would expect
this to be the case.
Regards,
Justin
On Thu, May 22, 2014 at 2:40 AM, Katarzyna Kozlowska
katarzyna.kozlow...@cognifide.com wrote:
Hi again,
The problem with connecting something like that with Sling Models is the way
the adaptTo method was specified.
It is supposed to return null and never throw an exception. So all exceptions
being caused by e.g. validation errors must be caught within Sling Models.
Currently I don’t see any way
On Mon, May 19, 2014 at 1:43 PM, Radu Cotescu r...@cotescu.com wrote:
...Maybe we can revive that topic and merge the two ideas
That would be great, IIRC Radu's SLING-2803 validator is meant to be
generic, using it within Sling models should then just be another use
case.
-Bertrand
Hello list,
I was thinking about contributing to Sling and creating Sling Models
Validation Framework. I was inspired by JSR 303 and I want to base my
solution on annotations. I would really appreciate your feedback on my
idea.
Best Regards,
Kasia