<form:input type="tel" alt="Home Phone" path="homePhone"/>
which surpisingly enough produced the expected code:<input type="tel" alt="Home Phone" value="" name="homePhone" id="homePhone">
It is nice when something follows the principle of least astonishment.
4 comments:
If i use type="color", the result html is type="text" type="color", setting the attribute type twice.
Did u do something to avoid this behaviour?
I tried color and it worked as well. Be sure you are in the form:form and using the correct tablib reference:
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
Using that same taglib, inside a tag, results in two type attributes as well.
I've tried Chrome and iOS Safari, and they're understanding the correct one of the two, but there are definitely two in the returned HTML.
Did anyone find a fix for this yet? I'm having the same problem. I'm using:
which results in two type attributes: type="tel" type="text"
Post a Comment