Results 1 to 3 of 3

Thread: controller behaviour when sessionForm == true

  1. #1
    Join Date
    Aug 2004
    Location
    Devon, UK
    Posts
    132

    Default controller behaviour when sessionForm == true

    Hi,

    As I understand it, if I set sessionForm == true in a SimpleFormController, then when the form is submitted, the formBackingObject will be retrieved from the session and used in the onSubmit method, rather than being created from a call to formBackingObject().

    I am puzzled - I have set sessionForm == true in a SimpleFormController, but still get a call to formBackingObject() when the form is submitted. I assumed that the storing and retrieving of the object in the session was taken care of automatically, but perhaps not? Am I missing something? Can someone explain please what might be going on here?

    Thanks

    John Pedersen

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Am I missing something?
    Not sure...Are you sure you're submitting (i.e. you don't need to override isFormSubmission)?

  3. #3
    Join Date
    Aug 2004
    Location
    Devon, UK
    Posts
    132

    Default

    I was missing something:

    method="POST"

    from my form tag.

    Thanks very much for your input.

    John

Similar Threads

  1. Replies: 11
    Last Post: Jun 1st, 2006, 04:30 PM
  2. Replies: 7
    Last Post: Aug 5th, 2005, 02:50 AM
  3. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  4. Replies: 4
    Last Post: May 29th, 2005, 07:39 AM

Posting Permissions

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