Hey,
I have this huge form, with tons of ajax requests and interactions.
My problem is on this one section where I have an inputtext with an a4j:support onchange and a suggestionbox with an a4j:support onselect, as follows:
<h:inputText value="#{bean.field1Value}" id="field1">
<a4j:support event="onchange" action="#{bean.validateField1()}" similarityGroupingId="field1GroupId" requestDelay="100" ajaxSingle="true"/>
</h:inputText>
<rich:suggestionbox id="field1Suggestion" for="field1" frequency="0.15" suggestionAction="#{bean.autocompleteField1}" var="obj" status="statusAjaxSuggestion">
<a4j:support event="onselect" action="#{bean.selectField1}" similarityGroupingId="field1GroupId" requestDelay="100" ajaxSingle="true"/>
<h:column>
<h:outputLabel value="#{obj.name}" />
</h:column>
</rich:suggestionbox>
I'm trying to either cancel the 'onchange' when I have the 'onselect' OR invoke que 'onselect' before the 'onchange'. Any one of those combinations is ok for me. I just can't have the default behaviour that is 'onchange' and then 'onselect'.
Thanks,
P.O.