How would the validator know that the incoming parameters are from the
same page?  All it sees is the set of parameters in the HTTP request,
and it uses the validation metadata for the action bean & event as
appropriate.

(In other words - validation works whether you post from a Stripes page or not.)

Maybe I'm missing what you mean by "noted as being required".


On Mon, Jun 29, 2009 at 2:50 PM, allen petersen<[email protected]> wrote:
> Hi.
>
> So, quick version:  stripes wizard form with a nested page that has a
> <stripes:form partial="true"> tag in it.  Required fields are included in
> the nested partial form tag.  But...those required fields aren't being
> noted as being required, because the __fp (fieldsOnPage) field is only
> being written for the top-level form tag.  So the validator thinks that the
> fields are from another page, and therefore don't need to be validated as
> required.
>
> I think I can work around this (or file a bug and submit a patch or
> whatever), but I just wanted to run this by the list and see if there was a
> known easy fix/workaround.  Or if I'm just doing something wrong.  (Well,
> other than using a nested partial form in the first place; I'm actually
> having to use the 1.5.2 beta branch already in order to get around another
> bug there....)
>
> -allen
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>



-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to