Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ValueChangeEvent called multiple times..confusion  RSS feed

 
Prash Singh
Ranch Hand
Posts: 103
jQuery Netbeans IDE Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am new to the JSF programming.

The issue is that, in my form, i have several menus and text boxes , most of them generated ValueChangeEvent.
The problem I am facing is that , on the onchange event of menus the ValueChnageListener method is being called multiple times.


any ideas regading this issue?



Thanks
 
Prash Singh
Ranch Hand
Posts: 103
jQuery Netbeans IDE Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
This post will clearly explain what actually is happening.

The sequence of components on my jsp is like this,
HtmlInputText, HtmlSelectOneMenu1,HtmlSelectOneMenu2.

Each of these component has ValueChangeEvent attched to their onblur, onchange and onchage event.
Now after the onblur event of the InputText , the onchange event of the HtmlSelectOneMenu1 is called twice,
and If keep on calling the same event again, it is called three times, and so on.
Same is the case with HtmlSelectOneMenu2..
Can you please point out why is this actually happening.?

Thanks in advance
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!