[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566593#action_12566593
 ] 

Werner Punz commented on TOMAHAWK-1107:
---------------------------------------

I dont see that as a bug, the inputCalendar just uses a standard input field,
and you will get the exactly same behavior as with a standard input field!

in my testcase there was a fom with a submit button
and the button was triggering fine on enter after editing the field (aka 
focusing the field)
of course command links are an entirely different issue.


if you dont get this behavior, check if you get it on normal input fields, you 
probably wont!

The correct way to achieve the wanted behavior of course is to add the 
onkeypress to the tag,
but as I said I dont see this as a bug, this is a html limitation in itself!


> <t:inputCalendar> component does not handle submission via the enter key in 
> IE6
> -------------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1107
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1107
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Calendar
>    Affects Versions: 1.1.6
>         Environment: Windows XP, IE 6, MyFaces 1.1.5, Tomahawk 1.1.6
>            Reporter: Todd Gould
>
> When using a tag such as:
>           <t:inputCalendar id="SinceAlertTime" 
>               value="#{alertSummaryController.sinceTime}" 
>               popupDateFormat="MM/dd/yyyy HH:mm:ss" 
>               helpText="MM/dd/yyyy HH:mm:ss" 
>               title="MM/dd/yyyy HH:mm:ss"
>               popupSelectDateMessage="Select [date] as date"
>               renderAsPopup="true" renderPopupButtonAsImage="true">
> in a JSP, pressing the enter key in the associated text entry field (say 
> after manually adjusting the date and/or time) does not produce the desired 
> result in IE6.  In Firefox, this does work fine - it submits the form and 
> applies the specified value.  However, in IE 6, this does not result in form 
> submission for some reason.
> A work around to achieve the desired affect is to add the following to the 
> tag:
>               onkeypress="if( event.keyCode == 13 ) { this.form.submit(); 
> return false; }"

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

Reply via email to