• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to skip the default button action in JSF  RSS feed

 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The following page open in new window.
the page have one text box and two button(h:commandbutton and a4j:commandButton).

I move(set) the cursor focus into textfield.

My problem is, i hit enter button from textfield, then automatically called h:comandButton action and closing the new window. How to avoid this.

But I need , when i hit enter button, move the cursor focus from textfield to a4j:commandButton not h:commandbutton



If i hit enter button from textfiled, i want to call the script alert("A4J Command Buton clicked...");

Help me. Thank in advance.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!