hi all...
I have a sf:ajaxEvent that is invoked 'onchange':
In my flow I call 2 evaluate expression statements to set the citiesList and postalCode.Code:<div class="input"> <sf:ajaxEvent action="setCityAndPostalCode" event="onchange" processIds="state"> <h:selectOneMenu id="state" value="#{address.state}"> <f:selectItems value="#{backingData.states}"/> </h:selectOneMenu> </sf:ajaxEvent> </div>
My citiesList is being populated no problem within the form. But my postalCode is not (it's left blank). Here's my postalCode inputText:Code:<transition on="setCityAndPostalCode"> <evaluate expression="addressService.populateCity(address.state)" result="viewScope.citiesList"/> <render fragments="createAddressForm:city"></render> <evaluate expression="addressService.populatePostalCode(address.state)" result="address.postalCode"/> <render fragments="createAddressForm:postalCode"></render> </transition>
Both the city and postalCode are part of the createAddressForm. Can anyone provide some insight into why my postalCode is not being populated?Code:<ui:fragment id="postalCodeFragment"> <div class="field"> <div class="label">Postal Code:</div> <div class="input"> <sf:clientTextValidator required="true"> <h:inputText id="postalCode" value="#{address.postalCode}" required="true"> </h:inputText> </sf:clientTextValidator> </div> </div> </ui:fragment>
thanks


Reply With Quote