You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sarma <ss...@mahindrabt.com> on 2006/07/12 13:31:47 UTC
problem with value change listeners
Hi,
i am working with value change listeners.
while i am submiting the form again that value change listeners are
fireing
please tell how to avoid fireing of value change listeners when
i am submiiting the form
public void hostSelection(ValueChangeEvent e) {
FacesContext context = FacesContext.getCurrentInstance();
hostid=(String) e.getNewValue();
getCpuids();
context.renderResponse();
}
--
View this message in context: http://www.nabble.com/problem-with-value-change-listeners-tf1930333.html#a5286926
Sent from the MyFaces - Users forum at Nabble.com.
Re: problem with value change listeners
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> i am working with value change listeners.
> while i am submiting the form again that value change listeners are
> fireing
> please tell how to avoid fireing of value change listeners when
> i am submiiting the form
>
What are you trying to do?
There is no way to disable valueChange listeners. In all cases you
submit a form and so how should JSF know that you dont want them to be
fired.
If it is possible to decide, you can place on top of your value change
method a simple
if (disabled) return;
Ciao,
Mario