Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extra attributes from Spring <form:form>

For jQuery Mobile I need markup like:

<form action="..." method="get" data-ajax="false">
    <!-- Fields -->
</form>

Since I work with Spring, I really like what <form:form> is doing for me, with all the convenient bindings, generating fields etc.

How can I make <form:form> print the extra attribute?

like image 982
Konrad Garus Avatar asked Aug 02 '11 13:08

Konrad Garus


1 Answers

The <form:form> tag will allow arbitrary attributes.

<form:form commandName="blah" data-ajax="false">

Will work just fine.

like image 97
Josh Johnson Avatar answered Sep 28 '22 04:09

Josh Johnson