You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org> on 2007/05/07 07:03:15 UTC

[jira] Commented: (TAPESTRY-1388) Date cannot be entered manually into DropdownDatePicker text field

    [ https://issues.apache.org/jira/browse/TAPESTRY-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493970 ] 

Jesse Kuhnert commented on TAPESTRY-1388:
-----------------------------------------

Was looking at this but am having trouble re-producing. 

Does it happen on the standard timetracker app ? Ie

http://opencomponentry.com:8080/timetracker/app

I keep manually entering the date on this and it works fine. ? 

or./.....you hit enter while still in the field maybe?

> Date cannot be entered manually into DropdownDatePicker text field
> ------------------------------------------------------------------
>
>                 Key: TAPESTRY-1388
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1388
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.2
>         Environment: Tapestry 4.1.2 snapshot from 3-21, OGNL 2.7 snapshot from 3-27, Firefox 2, WinXP
>            Reporter: Ben Dotte
>             Fix For: 4.1.2
>
>
> If a date is selected from the dropdown picker and the form is submitted, the date gets set on the page property correctly. If the date is entered manually by the user, the page property remains null. Here is an example test page:
> <shell jwcid="@Shell" title="DateTest">
> 	<body jwcid="@Body">
> 		<form jwcid="@Form" success="listener:submitPicker">
> 			<picker jwcid="@DropdownDatePicker" value="ognl:theDate" translator="ognl:dateTranslator"/>
> 			<submit jwcid="@Submit" />
> 		</form>
> 	</body>
> </shell>
> public abstract class DateTest extends BasePage
> {
> 	public abstract Date getTheDate();
> 	
> 	@Bean(value = org.apache.tapestry.form.translator.DateTranslator.class, initializer = "pattern = MM/dd/yyyy")
> 	public abstract Translator getDateTranslator();
> 	
> 	public void submitPicker()
> 	{
> 		System.out.println("date: " + getTheDate());
> 	}
> }
> If I pick the date 03/28/2007 from the picker I get this output on form submit:
> date: Wed Mar 28 00:00:00 CDT 2007
> If I manually enter 03/28/2007 the form submits with no validation errors but the output I get is:
> date: null
> The text field also clears itself right as I click to submit the form when I manually enter a date.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org