Hi Gabriel,

I guess ParsleyJS checks that the parameter for #validate() is a 'form'
element.
Since this is a nested form Wicket transforms it to a DIV, because
otherwise the HTML will not be valid.
Wicket knows how to deal with submitting nested forms but you have to do
some manual work for Parsley -
Parsley.validate($('#nestedFormId').closest('form')[0]), or something like
this.


On Wed, May 8, 2013 at 8:02 AM, Cedric Gatay <gata...@gmail.com> wrote:

> Hi,
> I've not yet tried to plug it inside a modal window. But I see no reason
> for it to fail.
>  Le 7 mai 2013 20:15, "Gabriel Landon" <glan...@piti.pf> a écrit :
>
> > Hi Cedric,
> >
> > Yes I've seen what you have done.
> > Did you manage to make it works with forms in ModalWindow?
> >
> > Regards,
> >
> > Gabriel.
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658631.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>



-- 
Martin Grigorov
Wicket Training & Consulting
http://jWeekend.com <http://jweekend.com/>

Reply via email to