• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to skip the default button action in JSF

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic