i am creating a custom vf page without any standard controller. And i need to implement cancel button functionality. following is the code i am using:
Visualforce
<apex:commandbutton value="Cancel" action="{!gotoClientListPage}" immediate="true"/>
Apex
public PageReference gotoClientListPage()
{
PageReference page = new PageReference('/apex/Setup_Client_List_Layout');
page.setRedirect(true);
return page;
}
But when i click on this button following error occurs:

Can anyone help me solve this error. Thnx in advance.