spring-roo

Spring roo Vs (Wicket and Spring)

强颜欢笑 提交于 2019-12-04 08:06:32
问题 Spring roo is new framework and I found it very interesting. I have been working on web application for last 3-4 years and Always found JSPs are hard to maintain across teams if everyone is not disciplined enough about separation of markup and serverside logic. I have used JackBe/BackBase in last projects and I enjoyed xml templates working as views. This was much better than JSPs. But I couldnt automate webtests through selenium for backbase. I would be surely using Spring MVC (-view),

Code Analysis Tools and Inter-Type-Declarations

亡梦爱人 提交于 2019-12-03 23:22:49
I have a maven project generated by Spring Roo and use several tools (checkstyle, pmd etc.) to collect information about my project. (namely I am using codehaus' sonar for this) Roo makes heavy use of AspectJ Inter Type Declarations (ITD) to seperate concerns like persistence, javabeans-getter/setters etc. These ITDs are woven in at compile-time so tools like checkstyle and pmd (who work on source-level) have a lot of false positives. The only solution I currently see, is to deactivate checks for Classes that use ITDs. Any better ideas? This answer would not help you right now, but hopefully

Roo - add custom finder

落爺英雄遲暮 提交于 2019-12-03 20:09:35
I used Roo to create a project that uses existing database. Im able to create dynamic finders, but I want to implement custom finder that will receive 4 parameters and use some of them to create Like condition and others for equals condition. What is the best way to do this with Roo. The recommended pattern is to edit the .java source file for your entity and define the new finder there. You might like to create a dynamic finder and then copy the style from the corresponding entityname_Roo_Finder.aj file. Please note manually-created finders do not appear in the automatically-created web

Roo + GWT - good for developing?

断了今生、忘了曾经 提交于 2019-12-03 17:30:17
问题 I've been working on GWT projects for a few months now and I decided to give a try to this Spring Roo thing. I noticed that to go from 0 to the same results as with Roo it can take very long. My first thought was: "this is great"! But once you've setup a couple of persistent entities and Roo generates your scaffolding for GWT and you have some very basic layout but a huge amount of code. Then what? You stop using Roo and go on by hand? The UI is nice but is very basic. I don't want to modify

websphere 7 (and Spring Roo) incompatible with javax.el.ELException

こ雲淡風輕ζ 提交于 2019-12-03 08:51:18
问题 I have a application where the frontend is based on the Spring Roo 1.1.2 jspx files. Every think works fine in Tomcat 6, but if I deploy the same application in a Websphere 7 (class loader: parent last), then I get a exception: java.lang.ClassCastException: java.lang.NullPointerException incompatible with javax.el.ELException [13.04.11 09:53:55:493 UTC] 00000026 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods

Spring Roo, Hibernate, One to many relation creates additional table

*爱你&永不变心* 提交于 2019-12-03 05:57:20
问题 I'm new to spring mvc, roo and hibernate. I'm trying to create two tables with 1:M relationship. For example, I want two entities, Person and Car. One person can have many cars. I've created entities using Roo entity --class ~.domain.Person field string Name entity --class ~.domain.Car field string Name field reference --fieldName owner --type ~.domain.Person field set --fieldName ownedCars --type ~.domain.Car --class ~.domain.Person --cardinality ONE_TO_MANY Generated class for car:

Roo + GWT - good for developing?

我的未来我决定 提交于 2019-12-03 05:36:22
I've been working on GWT projects for a few months now and I decided to give a try to this Spring Roo thing. I noticed that to go from 0 to the same results as with Roo it can take very long. My first thought was: "this is great"! But once you've setup a couple of persistent entities and Roo generates your scaffolding for GWT and you have some very basic layout but a huge amount of code. Then what? You stop using Roo and go on by hand? The UI is nice but is very basic. I don't want to modify things by hand since I don't want to mess up Roo generation. So I just remove all Roo stuff and I fall

What is Spring Roo?

喜夏-厌秋 提交于 2019-12-03 05:28:16
问题 Despite all I've read, I still can't figure out what Spring Roo actually is , and that's after reading the first chapter of Spring Roo In Action, What is Spring Roo?! I understand the motivation for simplifying the process of developing a Spring application, but what does Spring Roo actually do? Can someone summarize the contents of that first chapter, specifically how Spring Roo reduces the complexity of developing a Spring app? The authors will probably see this, so do a good job! 回答1:

How can <global-method-security> work on my controller by Spring-Security?

牧云@^-^@ 提交于 2019-12-03 03:30:01
I'm stuck in this issue for a long time. I want to use @Secure to add Access Control to my controller ArticleController.java like this: @RequestMapping(headers = "Accept=application/json") @ResponseBody @Secured("ROLE_ADMIN") public ResponseEntity<String> listJson() { HttpHeaders headers = new HttpHeaders(); headers.add("Content-Type", "application/json; charset=utf-8"); List<Article> result = Article.findAllArticles(); return new ResponseEntity<String>(Article.toJsonArray(result), headers, HttpStatus.OK); } listJson return a Json object for Articles but only Admin can read them. OK now I

Spring roo Vs (Wicket and Spring)

烈酒焚心 提交于 2019-12-02 21:44:39
Spring roo is new framework and I found it very interesting. I have been working on web application for last 3-4 years and Always found JSPs are hard to maintain across teams if everyone is not disciplined enough about separation of markup and serverside logic. I have used JackBe/BackBase in last projects and I enjoyed xml templates working as views. This was much better than JSPs. But I couldnt automate webtests through selenium for backbase. I would be surely using Spring MVC (-view), Hibernate on the backend. I found Wicket as good alternative. Have you used wicket along with Spring and