In my form I have rich:toolBar with some h:commandButton over it.
When the form is displayed the first button in the toolbar is marked for default and when I press ENTER in any h:inputText this button is clicked.
How can change default form submit button? Is there any way to do that dinamicaly with JavaScript for example?
Thank you.