controller « Roo « Spring Q&A





1. SpringSource Roo Controller Removal    stackoverflow.com


Environment: Windows XP, SpringSource Tool Suite 2.3.2, Roo 1.0.2.Release, Java 1.6.0_10, tc Server 6.0 I'm using the canned Roo generated code. I created an entity and associated controller. Then deleted both classes. ...

2. How to generate jspx and controllers files for complex (custom) finders in Spring ROO?    stackoverflow.com

I want to create a complex custom finder and generate jspx file for it. I have a class called Payment that was generated by spring ROO (please note that actual code was ...

3. Deleting a Controller does not completely remove the Controller?    stackoverflow.com

I created an entity called Card and its CardController. Since I committed an error when creating them, I deleted both and created the Card entity again. The problem happens when I execute ...

4. java generate PDF in Seperate class but return from controller    stackoverflow.com

i'm trying to add a pdf generator to my website, everything works fine as far as the generator in the controller ConsumerController.java:

public String downloadPDF(@PathVariable("id") Long id, @PathVariable("transaction") Long transaction, Model uiModel, HttpServletRequest ...

5. Roo-1.1.1: missing imports in _Roo_Controller.aj    forum.springsource.org

6. Roo 1.1.1 keeps regenerating pushed-in controller methods    forum.springsource.org

Roo 1.1.1 keeps regenerating pushed-in controller methods In my Roo application, I need to add an additional parameter to the list method, so I pushed it in to my controller class: ...

7. Roo overrides generic super-class methods when generating controllers    forum.springsource.org

Roo overrides generic super-class methods when generating controllers In my application, I need to override some of the controller methods that Roo generates. The methods I'm trying to override need to ...

8. Upgrade to Spring Roo 1.1.3 has removed finder methods rom scaffolded controllers    forum.springsource.org

Upgrade to Spring Roo 1.1.3 has removed finder methods rom scaffolded controllers Before upgrading to Spring Roo 1.1.3, this is how our scaffolded finder forms looked like: --- @RequestMapping(params = { ...

9. overriding controller method breaks Roo    forum.springsource.org

overriding controller method breaks Roo I have the web scaffolding for an entity generated by roo. In the controller, I pushed in exactly one method Code: @RooWebScaffold(path = "thermalspaces", formBackingObject = ...





10. How to cleanly remove Roo generated Controller?    forum.springsource.org

Hi, I am a little unclear what you mean by 'like to keep them mapped'. You mean you want to have controllers for all entities? If that is not what you ...

11. Customize mvc controller using Roo    forum.springsource.org

Customize mvc controller using Roo Hi Guys, In the Spring Roo pizza tutorial there is a model class called PizzaOrder.java. I noticed the controller logic for PizzaOrder isn't inside PizzaOrderController.java, but ...

13. Allowed fiels in Roo generated controller    forum.springsource.org

Allowed fiels in Roo generated controller Roo nicely generate the controller and actions to e.g. craete and update a specific domain class. What should be the best steps to not allow ...

14. Using HttpServletResponse in roo Controller    forum.springsource.org

Using HttpServletResponse in roo Controller Hi, I am customizing roo generated create method. I added "HttpServletResponse response" as a parameter to the Create method. its not working. My Create method public ...

15. CheckedMultiSelect and Roo Controller    forum.springsource.org

Code: @RequestMapping(value="/addUserArt/{username}") public @ResponseBody String addUserArt( @PathVariable("username") String username, @RequestParam(value="newArtTitle") String newArtTitle, @RequestParam(value="newArtDescription") String newArtDescription, @RequestParam(value="newArtCategories",required=false) Integer [] newArtCategories, @RequestParam(value="newArtFile") MultipartFile newArtFile, Model uiModel, Principal principal) throws IOException { SiteUser user ...

16. ITD not being generated by Roo for Controllers    forum.springsource.org

ITD not being generated by Roo for Controllers I have the following controller for my Customer entity package com.acps.app.payments.core.web.ccti; import com.acps.app.payments.core.domain.customer.Custome r; import org.springframework.roo.addon.web.mvc.controller.R ooWebScaffold; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMap ping; @RequestMapping("/customers") ...





17. Does roo generated controllers support Content Negotiation for REST?    forum.springsource.org

In my project, RESTful urls need to handle different types of response (html/txt, application/xml & application/json for my case). Does ROO generated project give this functionality already? Regards, Jiang Zhu

18. NamedQuery in Roo Controller ?    forum.springsource.org

NamedQuery in Roo Controller ? I am trying to load the contents of a csv file directly to a MySQL DB. The normal query is something like: "LOAD DATA LOCAL INFILE ...

19. How to secure _Roo_Controller?    forum.springsource.org

What is the expected way to secure the roo-generated scaffold Controller? I would like to add something like: @Secured("ROLE_ADMIN") for the generated CRUD operations. Apparently, that involves pushing the code from ...