• 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic