Remi, thanks for those precisions!
But it seems like Stripes beats us again!

Ben, thanks for that!
Sometimes the most obvious is not what we think about in the first place!

Cheers all,

Sam

On Thu, Mar 10, 2011 at 9:36 PM, Ben Gunter <gunter...@gmail.com> wrote:
> Properties can be nested as deeply as you need them to be. Nested field
> names are separated by dots. For your example, you'd use:
>
> @ValidateNestedProperties(@Validate(field="account.name", ...))
> private WebModel webModel;
>
> -Ben
>
> On Thu, Mar 10, 2011 at 5:48 AM, samuel baudouin <osenseij...@gmail.com>
> wrote:
>>
>> Hi all!
>>
>> I was wondering : is it possible to do nested validation to more than one
>> level?
>>
>> Lets say I want to validate the name of an Account contained in a
>> WebModel,
>> for instance : getWebModel().getAccount().getName()
>>
>> I know the annotation @ValidateNestedProperties makes it possible to
>> validate one level , but apparently it is impossible to go deeper...
>>
>> I think i ll fall back to validation methods but that would have been
>> nice, no?
>>
>> Any idea?
>>
>> Cheers
>> --
>> Samuel Baudouin
>>
>>
>> ------------------------------------------------------------------------------
>> Colocation vs. Managed Hosting
>> A question and answer guide to determining the best fit
>> for your organization - today and in the future.
>> http://p.sf.net/sfu/internap-sfd2d
>> _______________________________________________
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>



-- 
Samuel Baudouin

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to