-
1. Re: Default form button?
israel.bgf Jul 16, 2009 4:50 PM (in response to oneworld95)Are you using Seam? If yes, maybe a s:defaultAction is what you are looking for. Check the reference for more details.
-
2. Re: Default form button?
oneworld95 Jul 16, 2009 4:52 PM (in response to oneworld95)Thanks, Israel. Yes, I'm building using Seam. I knew I'd seen it somewhere but couldn't remember where. s:defaultAction should do the trick :)
-
3. Re: Default form button?
magiccreative Jul 22, 2009 10:43 AM (in response to oneworld95)s:defaultAction works only on h:commandButton if I remember correctly. I had a situation where I wanted my s:commandLink as default action but it didnt work, so I used the a4j:hotKey and specified in brackets which combination should be used. Works much better in "rich" enviroment because you can have buttons in modal panels, divs , regions and what not and still call the right one with a shortcut (ofc. not enter)
-
4. Re: Default form button?
oneworld95 Jul 22, 2009 10:55 AM (in response to oneworld95)Very interesting. Thanks, magiccreative. I've got the s:defaultAction in an a4j:commandButton, so I'm guessing it won't work there. I'll look into the a4j:hotKey and see how to use that. Thanks a lot for your help.