Announcement Announcement Module
Collapse
No announcement yet.
AJAX action in SimpleFormController Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


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

      Comment

      Working...
      X