Results 1 to 3 of 3

Thread: How can I hook into showForm() from a WizardFormController

  1. #1
    Join Date
    Oct 2004
    Posts
    10

    Default How can I hook into showForm() from a WizardFormController

    Hi all,

    The AbstractWizardFormController overides the showForm() method and makes if -final- (showPage() is also final). I'm working on a WizardFormController and I would like to conditionally show different initial views based on a session scoped attribute. For instance, if the user is not logged in, show a welcome page, if he is show the initial formView.

    However, I have not been able to find a hook into this early part of the workflow. It seems like my options are to either perform the check at the view level, in the initial form jsp and show alternate content (yikes) or create my own version of the AbstractWizardFormController which allows for an early hook (before viewing the initial form).

    Am I missing something obvious? My preference would be to use the existing abstract parent class if possible. Any other ideas?

    Thanks,

    Ike

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    if the user is not logged in, show a welcome page, if he is show the initial formView.
    You can also use a [url]http://forum.springframework.org/showthread.php?t=11444[url/] that forwards to the welcome page.
    Last edited by robyn; May 14th, 2006 at 04:42 PM.
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

  3. #3
    Join Date
    Oct 2004
    Posts
    10

    Default

    Thanks Omar. That is a good solution and it worked well in testing. I will go with that for now.

Similar Threads

  1. Replies: 5
    Last Post: Nov 25th, 2004, 02:39 AM
  2. help me to use showForm()
    By jiffinjoy in forum Web
    Replies: 1
    Last Post: Oct 28th, 2004, 06:45 AM
  3. Replies: 1
    Last Post: Oct 27th, 2004, 06:07 AM
  4. Replies: 1
    Last Post: Sep 20th, 2004, 08:39 PM
  5. Replies: 2
    Last Post: Aug 24th, 2004, 02:46 PM

Posting Permissions

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