Hi All,
I was under the impression that Value change listeners will be called only when
there is no validation exception on the page. However on my page if there is a
validation failure and a message is displayed to the user. Now if the user
changes a value say in a drop down and a value change listener is attached to
it then it gets called.
Following is the code for the drop down:
<t:panelGrid columns="2">
<s:selectOneRow id="radioLayerOne" groupName="selection"
value="#{ppmdController.selectedRow}"
disabled="#{ppmdController.selectedValue ||
benefitController.disableScreenElements ||
templateOverviewController.disableScreenElements }"
valueChangeListener="#{ppmdController.checkForErrors}">
<f:selectItem itemValue="ABC" itemLabel=""
id="rad"></f:selectItem>
<a4j:support event="onclick" id="ajaxOne"
reRender="Rx_Quantity,id_minQty,id_minDaySupply,Days_Supply,id_strtrDose,id_strtrDoseBypassDays,id_strtrDoseMaintBypassDays,id_maxRetailDays,txtNoMoreThanFills,menuAlwdPerOptn,calStrtDate,chkboxDeductible,chkboxOutOfPkt,chkboxMaxBft,menuMailSrvc,id_CmpQty,selectedProvider,selectedNetwork,selectedClaims,myPpmdfloater"
actionListener="#{ppmdController.fetchLayerTwo}"
oncomplete="Richfaces.hideModalPanel('ajaxLoadingModalBox');enableMaxRxQtyDysSplyPPMD();">
</a4j:support>
</s:selectOneRow>
</t:panelGrid>
Should the value change listener be called when there is a validation exception?
Thanks & Regards,
Madhav
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not
to copy, disclose, or distribute this e-mail or its contents to any other
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has
taken
every reasonable precaution to minimize this risk, but is not liable for any
damage
you may sustain as a result of any virus in this e-mail. You should carry out
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***