I created a Vf page to show Account lookup and Picklist option. When An account is choosen the Picklist will render the values.
Once I select the picklist value it is refreshing the entire VF page How to stop this can anyone please help me ?
Page :
<apex:inputField value="{!object__c.AccountId}">
<apex:actionSupport event="onchange" action="{!method1}"
rerender="op1">
<apex:param assignTo="{!acclookup}" value="{!object__c.AccountId}" />
</apex:actionSupport>
</apex:inputField>
<apex:OutputPanel Id="op1">
Picklist
<apex:selectList value="{!pick}" multiselect="false"
size="1">
<apex:selectOptions value="{!options}" />
<apex:actionsupport event="onchange">
<apex:param assignTo="{!object__c.Picklist__C}" value="{!pick}" />
</apex:actionsupport>
</apex:selectList>
<apex:actionSupport>
here? Just remove it.value
attribute on your<apex:selectList>
tag is for.