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

Alexander Kiselyov commented on RF-1657:
----------------------------------------

I've found a hack solution for this problem. If you'll enclose 
<h:commandButton> in <div></div> tag, this will cause such button to be default 
on pressing 'Enter' key. (Note: I using Seam Runtime 2.0.2.SP1, it works in 
Firefox 3.0.3, IE 6.0.2800. When I added additional component into <div> 
(h:commandLink) behavior after Enter key pressing became unspecified)
E.g.:
<h:form>
<!-- some controls... -->
                <div>
                <h:commandButton value="Submit"
                        id="submitButton"
                        action="#{myController.buttonAction()}" />
                </div>
<!-- other controls... -->
</h:form>


> Submit form by pressing enter key
> ---------------------------------
>
>                 Key: RF-1657
>                 URL: https://jira.jboss.org/jira/browse/RF-1657
>             Project: RichFaces
>          Issue Type: Feature Request
>    Affects Versions: 3.2.0
>            Reporter: Carsten Labinsky
>            Assignee: Nick Belaevski
>             Fix For: Future
>
>
> Please add support for form submits by pressing the enter key. This is a very 
> common design and usability pattern.
> Forcing users to switch between mouse and keyboard is not quite 
> "user-friendly".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to