On 13 avr, 15:39, Cyrille37 <
cyrill...@gmail.com> wrote:
> While debugging I've found:
>
> in play.data.validation.ValidCheck.isSatisfied()
> String superKey = ValidationPlugin.keys.get().get(validatedObject);
> For p2 the superKey is "p1", so the fieldname for error will be
> construct as "p1.p2" which is wrong.
>
> So, with the debugger, I force "superKey" to "null", and it's work !
> All error's fieldname are good.
Perhaps the problem comes from that empty fields (p1 and p2) have the
same "Id" => 0 ?
But they have not the same reference ... computing becomes very
complex, isn't it ;-)
So, I've forced the "Id" with a fake one for each entity and all stuff
works fine. But indeed it's not a solution. That just confirms that
the "Id" is used to get the "validatedObject" in
"ValidationPlugin.keys".
How can I solve the problem ?
Is it a bug, or a bad Play! usage ?
Thanks
Cyrille