Here comes a stripped down example to reproduce this error:
VF-Page:
<apex:page showHeader="false" sidebar="false" controller="D3Terror" >
<apex:form >
<apex:pageBlock html-width="100%">
<apex:commandButton value="Request" action="{!getDocuments}"/>
<apex:outputLabel value="Filter:" rendered="true" style="padding-right:5px"/>
<apex:selectList rendered="true" multiselect="false" size="1">
<apex:selectOptions value="{!doctypes}"/>
</apex:selectList>
</apex:pageBlock>
</apex:form>
</apex:page>
Apex Code:
public class Terror
{
public Set<SelectOption> doctypes {get;set;}
public Terror()
{
// Picklist initialization
doctypes = new Set<SelectOption>();
}
public PageReference getDocuments()
{
system.debug('getDocuments');
doctypes.add(new SelectOption('all','all'));
return null;
}
}
For some reason, after the selectList get filled by the first button click, a second click doesnt make it to the method, no debug message is thrown.
I've no idea anymore to solve this problem.
d3_doctypes
in your markup anddoctypes
in your controller?getDocuments
tofetchDocuments
.. Don't use method name start with get...