Results 1 to 3 of 3

Thread: AJAX action in SimpleFormController

  1. #1
    Join Date
    Oct 2008
    Posts
    11

    Unhappy AJAX action in SimpleFormController

    Hi All,

    I am a newbie to the Spring...

    I am using SimpleFormController for my customer add screen. I had already done the validators, referenceData. Now i have a company drop down which will be filled with values got from referenceData(). onchange of the company selection i need to fill dealer drop down using AJAX.

    Please help me in how to handle that action? because i understand there will be only one form attached with one SimpleFormController which has one success view for onSubmit().

    I have tried finding in google... can i use handleRequestInternal()?

  2. #2
    Join Date
    Apr 2005
    Location
    Finland
    Posts
    314

    Default

    Take a look into the DWR AJAX project. It has really good Spring integration.

    In DWR you just create an Interface class which you want to call with AJAX. Then you let the DWR create a JavaScript proxy (DWR creates this automatically) which you can use in your forms.

    To fetch some data with AJAX you don't need a Spring controller.
    if a trainstation is where the train stops, what's a workstation...

  3. #3
    Join Date
    Oct 2008
    Posts
    11

    Default

    Thanks for the reply noon,

    After posting this query, i was trying to find in google and i found about DWR.

    But i am really interested in using JSON with Spring for which i am not getting enough material on net.

    Can anyone please suggest which way to go? DWR or JSON?


    Thanks in advance...

Posting Permissions

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