[jboss-user] [JBoss Seam] - Re: Problem when hitting enter instead of clicking Submit

petemuir do-not-reply at jboss.com
Mon Dec 18 05:24:04 EST 2006


JSF always uses javascript to submit a form, so, depending on browser (as different browsers do different things on pressing enter), you will find the form submitted or not. 

You can perhaps see problem more clearly when you consider the typical case of a entity update page when 'apply', 'save' and 'remove' are all submissions of the form.

The solution is to bind the enter key to perform the action you want.  I remember finding a JSF control out there to do this.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994596#3994596

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994596



More information about the jboss-user mailing list