File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes ValueChangeEvent called multiple times..confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "ValueChangeEvent called multiple times..confusion" Watch "ValueChangeEvent called multiple times..confusion" New topic
Author

ValueChangeEvent called multiple times..confusion

Prash Singh
Ranch Hand

Joined: Aug 23, 2009
Posts: 100

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

Joined: Aug 23, 2009
Posts: 100

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ValueChangeEvent called multiple times..confusion
 
Similar Threads
InplaceSelect: valueChangeListener does not work
Question on rendering
How many times painComponent(g) is called?
Multiple Menus
Can J2ME methods be called multiple time?