Hi! Has anybody read this article? http://www.alistapart.com/articles/forward-thinking-form-validation/
It's about building web forms for HTML5 browsers with backward compatibility to older browsers. Simply spoken a input field for a numeric postcode is defined as: <input id="postcode" name="postcode" type="number" min="1001" max="8000" maxlength="4" required /> (not as type="text) Modern (HTML5) browsers can now use this info for validating and styling the input. For older browsers the author has built a simple JavaScript that does some validation and styling. I especially like the style they use for input validation, see the example: http://www.alistapart.com/d/forward-thinking-form-validation/enhanced_2.html Tapestry could use the JSR-303 annotations and type-info to generate this HTML5 code instead of the old plain HTML: @NonNull @Min(1001) @Max(8000) private Int postcode; I think this would be a great feature (maybe for 5.3) and an advantage over other web frameworks. What do you think? Cheers, Chris -- View this message in context: http://tapestry-users.832.n2.nabble.com/HTML5-forms-for-Tapestry-5-3-tp5700366p5700366.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org