You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Matt Hughes <mh...@chariotsolutions.com> on 2006/07/21 18:00:33 UTC

False positive valueChange event fired from null to blank string

I have an annoying situation whereby a text field is firing a 
valueChangeEvent when the value changes from null to a blank String.  
This, to me, is not really a change. 

Initially, the field in the backing bean is set to null.  So the first 
time the form is submitted, MyFaces assigns the value of that inputText 
to the component, notices that it has "changed" and fires a 
valueChangeEvent. 

My question is, should this really fire a valueChangeEvent?