PDA

View Full Version : Spring + Ajax



rrivera
Jun 10th, 2009, 10:04 AM
Hello Everybody

Does anybody can suggest me a tool that helps to easy add RIA to an existing web application based on Spring MVC with JSP for the view.

I need to add functionalities as:
- Suggestion
- Autocompletition
- Comboboxes populated based on previous selections
- Tab Control
- Accordions

Thanks in advance for your help

Best Regards
Rafa

tenmiles
Jun 10th, 2009, 10:16 AM
Assuming you use spring MVC, have your controllers extend MultiActionController and then have your ajax calls pass in the name of the method that's to be called. You should be able to return all kinds of information, not just ModelAndView's. As part of the config for the MultiActionController you'll have to specify the name of the parameter that contains the name of the method you want to call and that will be the name of the parameter that you pass in from the client.

Also, ditch your handleRequest() method when you extend MultiActionController, that's where all the magic happens.