• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

How to skip the default button action in JSF

 
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.
 
You can't have everything. Where would you put it?
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic