[jboss-user] [JBoss Seam] - Re: Default action for JSF page?

raja05 do-not-reply at jboss.com
Sat Sep 9 00:08:58 EDT 2006


I think  browsers behave differently for this. if there is only one form field on a page, then hitting enter will do the same as a submit but Ive seen posts where IE takes any enter on text field as a submit. 
You could use the onkeypress attribute on JSF's inputtext to have a javascript that will capture window.event.keyCode and check if thats equal to 13, do the same as what your button needs to do but these details are totally out of JSF and Seam IMO.


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

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



More information about the jboss-user mailing list