You need to sign in to do that
Don't have an account?
Vijay Nagarathinam
Issue in ActionSupport
Hi,
I am using session year and session values in the visualforce page. Based on the year the session values will change dynamically using a custom setting, In some cases, if the year is not matched with custom setting then I need to show standard dependency values for the year.
While changing the year I am getting required error. I tried to use action region tag, still, I am getting an error.
Please let me know how to resolve the issue.
Thanks,
Vijay
I am using session year and session values in the visualforce page. Based on the year the session values will change dynamically using a custom setting, In some cases, if the year is not matched with custom setting then I need to show standard dependency values for the year.
While changing the year I am getting required error. I tried to use action region tag, still, I am getting an error.
<apex:actionRegion immediate="true"> <apex:pageBlockSection columns="1"> <apex:inputField value="{!appInstance.Session_Year__c}" required="true"> <apex:actionSupport event="onchange" action="{!sessionValues}" rerender="sessionId,stdSessionId" status="refreshStatus87"> <apex:actionStatus id="refreshStatus87"> <apex:facet name="start" > <apex:image style="padding-left:20px" url="/img/support/servicedesk/barloading.gif" /> </apex:facet> <apex:facet name="stop" > </apex:facet> </apex:actionStatus> </apex:actionSupport> </apex:inputField> </apex:pageBlockSection> </apex:actionRegion> <!-- Application Session Information --> <apex:pageblocksection id="sessionId" columns="1" > <apex:selectList value="{!appInstance.Session__c}" multiselect="false" size="1" label="Session/Semester Start" rendered="{!sessionValuesList.size > 0}" required="true" > <div class="requiredInput"> <div class="requiredBlock"> <apex:selectOptions value="{!sessionValuesList}" /> </div> </div> </apex:selectList> <apex:inputField value="{!appInstance.Session__c}" rendered="{!sessionValuesList.size == 0}" required="{!sessionValuesList.size == 0}" /> </apex:pageblocksection>
Please let me know how to resolve the issue.
Thanks,
Vijay