I've extended AbstractWizardFormController and would like the user to skip the last step if updating/editing the business object.
I thought the following would accomplish my goal:
However, the command object is not in the session when calling super.getCommand(request) because it's removed in AbstractWizardFormController.processFormSubmission ().Code:protected boolean isFinishRequest(HttpServletRequest request) { try { ListingAuctionSubmission la = (ListingAuctionSubmission) super.getCommand(request); return la.getAuctionId() > 0 && getCurrentPage(request) == AUCTION_INFO ? true : isFinishRequest(request); } catch (Exception e) { return false; } }
Am I off-track in attempting to use isFinishRequest()? If not, how can I get a reference to the command object that is being worked on throughout the wizard? Thanks in advance.


Reply With Quote