-
1. Re: Default action for JSF page?
mzeijen Sep 8, 2006 5:32 PM (in response to texan)isn't that just a form submit? If the html form contains a submit button then this behaviour should be default. So the action behind the submit button is fired.
-
2. Re: Default action for JSF page?
texan Sep 8, 2006 5:41 PM (in response to texan)When I hit return on a page, it re-renders that page rather than executing the action on a particular button (or any button for that matter).
-
3. Re: Default action for JSF page?
raja05 Sep 9, 2006 12:08 AM (in response to texan)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.