Announcement Announcement Module
Collapse
No announcement yet.
Is it possible to use Validators while using MultiAction Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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)

    Comment


    • #3
      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, 04:24 AM.

      Comment


      • #4
        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

        Comment


        • #5
          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, 05:58 PM.

          Comment


          • #6
            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.

            Comment


            • #7
              look at the post under my name

              http://forum.springframework.org/sho...t=11086&page=3

              Comment


              • #8
                Thanks a lot.
                Nice job !

                Comment

                Working...
                X