what about using the tabindex attribute?
Thanks for replying viggo.
Tabindex won't do it unfortunately, since the user might have pressed tab a couple of times to go from one input field in the form to the next.
So assuming my user inputs a couple of fields, and then presses enter on the keyboard, I want to specify which commandButton must be actioned.
I see there is also a "focus" attribute. Perhaps I could use that in conjunction with the id attribute somehow?
I'm really not sure of what the functionality behind "focus" attribute is, but try it, and if it works, please tell us here at the forum about it:)