As a follow-up to my first question, "How to create a new case and return the case by clicking a button" -- I need to extend the standard controller case with an extension, but when I create a new case, I need the CASE-ID for the extension.
I know the code to get the CASE-ID would be:
caseRecord = (Case)controller.getRecord();
...but this does not work, since a new case does not appear to have a CASE-ID until after it is saved.
How to get Case ID on a new Case page?