This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to stop page refresh when hit enter button from rich:inputNumberSpinner field?

 
Eswar Nec
Ranch Hand
Posts: 105
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use rich:inputNumberSpinner tag.

The problem is :

I set cursor focus(position) to inside of rich:inputNumberSpinner field, then i hit the enter button from my keyboard, that time page will be automatically refresh.

But i don't need page refresh when i hit the enter button from my keyboard. (Cursor Focus rich:inputNumberSoinner)

The code :

spinnerTagTest.jsp



I also use rich:hotKey for that inputNumberSpinner field. But Page refreshed.



And i check anotherway using javasccript, but page refreshed.

The specific tag and javascript is :



Here i use one alert message inside of stopPageRefresh().
But i hit enter button, first page refreshing and then alert message displayed.

Help me about this.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic