Results 1 to 8 of 8

Thread: Is it possible to use Validators while using MultiAction

  1. #1
    Join Date
    Jul 2005
    Posts
    22

    Default Is it possible to use Validators while using MultiAction

    Is it possible to use Validators in spring with MultiActionController.... if yes then How..

    Thanks in advance
    Rahul

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

    Default

    Generally, if you want a validator you are doing data binding, which means you might as well use one of the subclasses of the data binding forms (e.g. BaseCommandController)

  3. #3
    Join Date
    Nov 2004
    Location
    London ON, Canada
    Posts
    5

    Default

    There is a way you can achieve multiple form validations in a single controller... but not using MultiActionController

    take a look at this post... probably it might be helpful

    http://forum.springframework.org/showthread.php?t=11086


    -Nilantha
    [/b]
    Last edited by robyn; May 16th, 2006 at 03:24 AM.

  4. #4
    Join Date
    Jul 2005
    Posts
    22

    Default delegate is null

    Hi njay...
    I tried the code you mentioned written by blolka..which is

    public class MultiActionFormController extends BaseCommandController
    {.....
    ....}



    but its giving me delegate null pointer exeption... any idea how to set the delegate... I am using ParameterMethodNameResolver for resolving the mothod name

  5. #5
    Join Date
    May 2005
    Posts
    17

    Default

    Quote Originally Posted by njayalath
    There is a way you can achieve multiple form validations in a single controller... but not using MultiActionController

    take a look at this post... probably it might be helpful

    http://forum.springframework.org/showthread.php?t=11086


    -Nilantha
    [/b]

    Do you know why this link is down (this one is one many posts)?
    Last edited by robyn; May 14th, 2006 at 04:58 PM.

  6. #6

    Default

    Yes, it is possible to do so. But you can't do it easily directly using the provided Controller implementations. I've written one to do exactly that and posted it a few months back. I'll put up a link once I find it.

  7. #7

  8. #8
    Join Date
    May 2005
    Posts
    17

    Default

    Thanks a lot.
    Nice job !

Similar Threads

  1. Replies: 6
    Last Post: Jul 20th, 2007, 05:56 AM
  2. Validators for nested objects
    By joeldavis in forum Web
    Replies: 7
    Last Post: Oct 4th, 2005, 12:29 PM
  3. Access to HttpSession from MultiAction?
    By cnelson in forum Web Flow
    Replies: 3
    Last Post: Jul 13th, 2005, 05:50 PM
  4. Replies: 3
    Last Post: Jul 5th, 2005, 05:33 AM
  5. Locale-agnostic validators
    By igorp1024 in forum Web
    Replies: 0
    Last Post: Mar 3rd, 2005, 04:02 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
  •