What's wrong with the following code ? I am trying to fire an onchange event but it doesn't fire. Any tricks?
<h:inputText id="productIdField" required="false" styleClass="txt" >
<f:validateLength minimum="2" />
<rich:toolTip showDelay="500" styleClass="bgcolor-white">
</rich:toolTip>
<a:support event="onchange" ajaxSingle="true" requestDelay="250" action="testChange();"/>
</h:inputText>
Javascript :
function testChange(){
alert('TestChange');
}
action
attribute is used for referencing a method in some bean which should be invoked whenevent
is triggered, not a javascript function. From the documentationExample: