[richfaces-issues] [JBoss JIRA] (RF-8385) inputNumberSpinner: autosubmit of a form while pressing the ENTER KEY, validation is discarded and modal panel is closed

nick humphrey (JIRA) jira-events at lists.jboss.org
Mon Aug 19 07:15:26 EDT 2013


    [ https://issues.jboss.org/browse/RF-8385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797572#comment-12797572 ] 

nick humphrey commented on RF-8385:
-----------------------------------

here's a quick workaround for richfaces-ui-3.3.3.Final.jar:
http://nickhumphreyit.blogspot.no/2013/08/richfaces-richinputnumberspinner-how-to.html

this will disable form submit on enter key press inside a rich:inputNumberSpinner
                
> inputNumberSpinner: autosubmit of a form while pressing the ENTER KEY, validation is discarded and modal panel is closed
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-8385
>                 URL: https://issues.jboss.org/browse/RF-8385
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input
>    Affects Versions: 3.3.2.GA
>         Environment: Linux kernel 2.6.31-19 Ubuntu rel 9.10; Windows Vista/XP- Web browsers: Firefox 3.5.7; IE8
>            Reporter: Eleonora Petagna
>              Labels: a4j_form, modalPanel, rich_inputNumberSpinner, validation
>             Fix For: 3.Future
>
>
> When using an inputNumberSpinner inside a modalPanel, within an a4j:form, 
> pressing the Enter key will automatically submit the form and the modal panel is closed. 
> The validation is not performed.
> I've tried to set oninputkeypress="return event.keyCode!=13" but it doesn't work.
> I have also tried to catch the return-key with an additional component such as:
>  <rich:hotKey key="return"
> like discussed in http://ahoehma.wordpress.com/tag/hotkey/ but that did not work either.
> Remark:
> If I replace <rich:inputNumberSpinner with <rich:inputNumberSlider the functionality is OK (the return key can be intercepted and the form is not submitted).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list