Announcement Announcement Module
Collapse
No announcement yet.
Command object not found in session Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Command object not found in session

    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:

    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;
        }
      }
    However, the command object is not in the session when calling super.getCommand(request) because it's removed in AbstractWizardFormController.processFormSubmission ().

    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.

  • #2
    Originally posted by socotech
    However, the command object is not in the session when calling super.getCommand(request) because it's removed in AbstractWizardFormController.processFormSubmission ().
    Strike that....removed in AbstractFormController.getCommand(...)

    Comment

    Working...
    X