Announcement Announcement Module
No announcement yet.
Preventing session from being cleared when GETting a URL Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Preventing session from being cleared when GETting a URL


    I am building a function that has multiple views, and i'm using AbstractFormController (sessionForm=true). I would like to open one of those views using a GET.

    Currently, this is clearing out the command object from session -- which I don't want.

    I've noticed that AbstractFormController.handleRequestInternal( ) does...

    if (isFormSubmission(request)) {
    // retrieve command from session
    } else {
    // create a new command

    ...whereas I don't want the session state removed just because i'm using a GET to open a page. handleRequestInternal( ) is also a final method so I can't override it in my subclass.

    How can I get more control over when the session state is blown away?

    Should I be using AbstractWizardFormController for any situation where there is >1 view, and i'd like to use links instead of buttons to move about the views without losing session state?