I currently use the actionregion to rerender an image based on the input of a picklist field. This works by showing the image if I select the correct value in the picklist field. How do I do an actionsupport on pageload to initialize the rerender? The Idea is to have 2 images from which 1 is shown on pageload and based on the picklist value selected the corresponding image is shown. See:
Panel:
<apex:outputPanel id="RenderImage">
<apex:image id="theImage4" value="{!$Resource.HR1}" width="200" height="200" alt="HR Ketel" rendered="{!Opportunity.StartRecurrent__c=='0'}"/><br/><br/>
</apex:outputPanel>
Actionregion:
<apex:actionRegion >
<apex:inputField value="{!Opportunity.StartRecurrent__c}">
<apex:actionSupport event="onchange" reRender="RenderImage" />
</apex:inputField>
</apex:actionRegion>