Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Velocity Form and date

Sven [Dione Technology]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

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 ?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Boris Georgiev _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

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.

Sven [Dione Technology]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2014

This is it !!

I beleived tested this solution but nope ...

Thanks !

TAGS
AUG Leaders

Atlassian Community Events