I am developing VF page and have couple of pick list values but I can't access any of the selected picklist value in apex controller.
I have modified a code little for simplicity. I am getting null value in the executeFilter method for selectedFilterId. Can you help what I am missing here?
Thanks!
<apex:pageblockSectionItem >
<apex:outputPanel>
<apex:selectList size="1" id="filterValueSelector" value="{!selectedFilterId}" style="width:100px;">
<apex:selectOptions value="{!filterValues}" />
<apex:actionSupport event="onchange" action="{!executeFilter}" />
</apex:selectList>
</apex:outputPanel>
</apex:pageblockSectionItem>
public String selectedFilterId {get;set;}
public List<SelectOption> getFilterValues(){
List<SelectOption> options = new List<SelectOption>();
options.addAll( MyFilterLayoutFunctions_ims.getFilters());
return options;
}
public void executeFilter(){
System.debug('*******Selected Filter ID: *******'+ selectedFilterId );
}
selectedFilterId
being invoked? and, a wild guess - if above is an edited snippet - any chance in your code under test that the event name is notonchange
- it is case sensitive I believe – cropredy Jul 12 '15 at 0:37