You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by pureza <pu...@gmail.com> on 2013/09/04 11:12:40 UTC

Wicket 6.10 required attribute and cancel buttons

Hi,

I have a form with a cancel button with type="submit" as suggested here:
https://cwiki.apache.org/confluence/display/WICKET/Multiple+submit+buttons.

Since version 6.10.0, Wicket adds the HTML5 required attribute which causes
the browser validation to fail when the user clicks the Cancel button. Since
the button's type is "submit", the browser forces the user to fill-in the
required fields and doesn't  send the cancel request to the server.

What is the best way to fix this?

Thanks,

Luis



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-10-required-attribute-and-cancel-buttons-tp4661191.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 6.10 required attribute and cancel buttons

Posted by pureza <pu...@gmail.com>.
Thanks.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-10-required-attribute-and-cancel-buttons-tp4661191p4661193.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 6.10 required attribute and cancel buttons

Posted by Martin Grigorov <mg...@apache.org>.
https://issues.apache.org/jira/browse/WICKET-5324
https://issues.apache.org/jira/browse/WICKET-5331


On Wed, Sep 4, 2013 at 12:12 PM, pureza <pu...@gmail.com> wrote:

> Hi,
>
> I have a form with a cancel button with type="submit" as suggested here:
> https://cwiki.apache.org/confluence/display/WICKET/Multiple+submit+buttons
> .
>
> Since version 6.10.0, Wicket adds the HTML5 required attribute which causes
> the browser validation to fail when the user clicks the Cancel button.
> Since
> the button's type is "submit", the browser forces the user to fill-in the
> required fields and doesn't  send the cancel request to the server.
>
> What is the best way to fix this?
>
> Thanks,
>
> Luis
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-6-10-required-attribute-and-cancel-buttons-tp4661191.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>