I have a commandbutton
on a VF page that calls a method in the controller that should redirect to a new pagereference
. When I select a value from a Selectcheckboxes
control, the page will not redirect and it appears that the method that should be called from the commandbutton
is never invoked. I tried debugging, but none of my debugs show in the log. I also tried disabling development mode. No luck.
public PageReference toResultsPage()
{
//do stuff
PageReference page = new PageReference(
'https://c.cs51.visual.force.com/apex/SearchResults?searchString='+searchStringATLEAST+'&searchStringALL='+searchStringALL+'&searchStringEXACT='+searchstringEXACT+'&queryString='+contentsearchquery
);
return page.setredirect(false);
}
And the VF part:
<div class="col-md-12">
<div class="form-group text-center">
<apex:commandButton value="Enhanced Search" action="{!toResultsPage}" id="submit-search" styleClass="btn btn-primary gradient"/>
</div>
</div>
commandButton
. – Adrian Larson♦ Dec 23 '15 at 17:53