Results 1 to 2 of 2

Thread: Command object not found in session

  1. #1
    Join Date
    Aug 2004
    Location
    Dallas, TX
    Posts
    26

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Dallas, TX
    Posts
    26

    Default

    Quote 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(...)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •