The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged


This is a very common mistake (as I've done it myself) Your controller declares a variable public List<wrapAsset> wrapAssets{get; set;} But your action method redeclares it! public void importCSVFile(){ List<wrapAsset> wrapAssets = new List<wrapAsset>(); ... So, you are adding to a locally scoped collection and not the collection ...


I can see you have returned "null" from "page reference method" used for cancel. When you return null salesforce keeps redirects to same page. That is the reason when you are using this method, salesforce is keeping you at same page.


Method - Using html-5 in doctype in visualforce page means you should use html-formnovalidate and immediate in cancel button. For example <apex:commandButton action="{!cancel}" value="Cancel" immediate="true" html-formnovalidate="formnovalidate" />

Top 50 recent answers are included