You need to sign in to do that
Don't have an account?
Problem with actionRegion in custom component : AJAX + submit not working properly
Hi everyone,
I have an issue in which I want to remove the use of multiple viewstates by using actionRegion. When I wrap it in a form tag (old setup) it works. However I do not want multiple viewstates.
I have the following issue with the following setup.
Mastertemplate:
<apex:form > <c:ProfileBar key="ProfileBar" pageController="{!this}"/> </apex:form>
Profilebar:
<apex:actionRegion> <apex:selectList id="sa-select" value="{!SwitchCurrentOutlet}" size="1"> <apex:actionSupport event="onchange" action="{!syncAddressOfOutlet}" rerender="addressPanel" status="updateAddressStatus"/> <apex:selectOptions value="{!CurrentOutlets}" /> </apex:selectList> </apex:actionRegion> <br></br> <apex:actionStatus id="updateAddressStatus" startText=" (Fetching...)"/> <br></br> <apex:outputpanel id="addressPanel" style="margin-top:12px;"> <strong> Selected Outlet Address : </strong> <br></br> <apex:outputlabel value="{!currentOutletAddress}"></apex:outputlabel> </apex:outputpanel>
If I now change the selectoin, in the setup where I used a form tag, this changes the outputLabel nicely to the new address. In the new setup above, it does not change anything. Also, I have a submit button that actually changes the Outlet to the selected Outlet, this does not work as well.
Am I doing something wrong ?
Best, Frank