• Post Reply Bookmark Topic Watch Topic
  • New Topic

h:inputText action problem.

 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

in my form there are 3 buttons, 2 of them are h:commandButton and 1 is a4j:commandButton.

there is one h:inputText fild.

when I write in input field, on press of enter I have to call the a4j:commandButton.

but its not working. its just calling action of h:commandButton. I have also set the tabindex but its not working.

what I have to do to call action on button on press of enter button in input fild
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try adding an <a4j:support> clause to your inputText control. I believe that the Enter key fires an "onchange" event, although I don't remember precisely. Check a JavaScript reference to make sure.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!