Hi All,
I have got a form in my velocity template and I would like to handle a date.
Velocity template :
<form method="POST" action="$requestContext.baseUrl/secure/addTeamRateAction.jspa"> <table border="1"> <tr> <th>Team</th> <th>Us Dollar Rate</th> <th>British Pound Rate</th> <th>Euro Rate</th> <th>from</th> <th>to</th> </tr> <tr> <td><input type="text" name="newTeam"></td> <td><input type="text" name="newRateUsDollar"></td> <td><input type="text" name="newRateBPound"></td> <td><input type="text" name="newRateEuro"></td> <td><input id="demo-date-picker" type="date" name="from"/></td> <td><input id="demo-date-picker" type="date" name="to"/></td> <td><input class="aui-button aui-button-primary" type="submit"></td> </tr> </table> </form>
My class :
(myClass.txt)
What's wrong ?
Community moderators have prevented the ability to post new answers.
I don't think using type="date" is supported. Try changing the type of the setter method in the java class to get String as parameter.
This is it !!
I beleived tested this solution but nope ...
Thanks !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.