spring-roo

Spring Roo 1.1.0.M1 .jspx rewriting

I am attempting to customize a create.jspx in Roo 1.1.0.M1. I am removing some fields from the UI that I want to automatically set in the controller (eg. dateCreated, createdBy). This works ok, UNTIL I edit the entity java file in any way. Roo then proceeds to rewrite my create.jspx back to the way it used to be There is no automatical...

Unable to deploy a Roo/GWT application on Google AppEngine from Springsource Tool Suite

Hi everybody, I followed this excellent tutorial but, as it doensn't cover the deployment part, I tried to do it by myself. So, I installed Springsource Tool Suite in Ubuntu. Then, I create a "demo1" Roo project. Next, with the built-in Roo Shell, I taped the following commands: persistence setup --provider DATANUCLEUS --database HYPE...

"org.datanucleus" is already registered under Spring Source Toosuite

Hi everybody, Exception in thread "main" Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/home/zakaria/.m2/repository/org/datanucleus/datanucleus-core/1.1.6/datanucleus-core-1.1.6.jar" is already registered, and you are trying to regis...

How to bring Spring Roo & GWT together

Hey guys, I am trying to develop a Spring Roo/GWT app with the newest integration of GWT in Roo. Getting the scaffolding to work is very straightforward, but I don't really understand how the RPC works there. Can someone of you provide a simple example how to do a simple service to connect client/server within Spring Roo and GWT. Wou...

How to use JUnit tests with Spring Roo? (Problems with EntityManager)

I'm trying to write a JUnit test for a Spring Roo project. If my test requires use of the entity classes, I get the following Exception: java.lang.IllegalStateException: Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?) The Spring Aspects JAR looks to be configured correctly....

Spring excluding pages from urlrewrite rule set on root

Hi guys. Here is the simple explanation of the problem: I have a controller RedirectController so that I want to handle everything like http://mydomain/** However, still I want need to redirect http://mydomain/ to index controller (or index.jspx whatever) and most probably I need to exclude /help /about URLs in the future. The current...

How to install JPA persistence provider in spring roo project?

Hi guys! I am looking SpringSource Tool Suite with Google Integration and I am getting that hint when I define persistence setup. hint:"Command 'persistence setup --provider DATANUCLEUS --database HYPERSONIC_IN_MEMORY' was found but is not currently available (type 'help' then ENTER to learn about this command)"... and help is saying ...

com.sun:tools:jar:1.4.2 missing when running "perform eclipse" in roo

When I run "perform eclipse" in Roo I get: roo> perform eclipse [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building bugzter [INFO] task-segment: [eclipse:clean, eclipse:eclipse] [INFO] ------------------------------------------------------------------------ [...

How to avoid Spring Roo GWT support?

I am experimenting with Spring Roo in a new GWT application. The Spring Roo GWT support is some way off ready for real use just yet, so I want to build the GWT stuff by hand using as much of the GWT 2.1 MVP stuff as possible. The problem I have is that Spring Roo "notices" my MVP-related classes and generates a whole lot of extra (broken...

Securing a deployed Roo/GWT application

Hi everybody, I recently succeded in uploading a Roo/GWT project on Google App Engine. But, how can I secure it from the Google App Engine application dashboard? Is there a way to tell to GAE to put a Google Login Box at the start and set a list of authorized accounts? Thank you very much, Regards. ...

Adding an authentification system in a deployed Roo/Gwt project

Hi everybody, I deployed recently a Roo/Gwt project on Google App Engine. I spent a couple of hours but couldn't find a tutorial that shows, step by step, how can we add n authentification system (withe the Federated Login Api). I found this very good article that provides some helpful code : import java.io.IOException; import java.i...

ROO IDT Push In results in a "Requested Resource not found"

I have a scaffolded controller with a populate method. I wanted to customize this method so I did an IDT 'push in' and re implemented it. Everything compiled and roo updated the aspect, but when accessing the controller with the browser I get a "Requested resource not found". I'm using SpringSource tc Server Developer Edition v2.0. No e...

Spring Roo Presentation and Model binding

I am starting on Springsource using Spring Roo. Q1. Am I correct to say that Spring Roo automates a lot of tedium out of Spring? I am asking that because when I follow non-roo tutorials on Spring, I am reading that I have to perform a significant amount of configuration and stubs which would have been done by roo. I don't see why, prio...

embed JavaScript in XML compliant JSP files (JSPX)

Hello! I am using Spring Roo for my project. Spring Roo is using JSPX for round-tripping. How do I embed JavaScript in JSPX page, so it stays parsable? ...

Display sub-property in table tag (Spring Roo supplied tag library)

I am using Spring Roo. There is table:table and table:column tags. How to display sub-property of colections elements in table? In straightforward way it doesnt work: <table:table data="${knowledgebase.concepts}" id="l_domain_Concept" path="/concepts" z="user-managed"> <table:column id="c_domain_Concept_translations" property="defau...

What is Spring Roo?

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

add openjdk-7 to Spring Tools Suite in Mac OS X 10.5

I've successfully added Landon Fullers compile of OpenJDK 7 on Leopard PPC (64-bit G5) in "/usr/local//usr/local/openjdk7-macppc-2009-12-16-b4" and a "java-1.7.0" alias and executing "java -version" at least works fine. However, I can't add the JVM to Spring Tools Suite (which is Eclipse basically). I get the dreaded "Standard VM not s...

Create new page using dynamic finders in Spring Roo

Hey, im just learning Roo. I have a domain object: Person { private String name; private boolean graduated; } Id like to create a new page that lists only graduated Person objects. Id like this new page to appear on the menu under the List Person's page link. What is the best practice in Roo to create this new page? Do I creat...

How can I create a base domain object with Spring Roo?

So I'm creating my domain objects for my Spring Roo app. I've got two similar domain objects that I'd like to inherit from a base object. ~.domain.LayerBase ~.domain.ColorLayer extends ~.domain.LayerBase ~.domain.ImageLayer extends ~.domain.LayerBase Is there an easy way to do this in the console or do I have to do this by hand? ...

How to setup a relationship so that more than one type of object can be in a set with Spring Roo

My domain thus far looks like: ~.domain.RenderJob ~.domain.RenderLayer ~.domain.ImageLayer extends ~.domain.RenderLayer ~.domain.ColorLayer extends ~.domain.RenderLayer I'd like to add a set field to RenderJob named 'layers'. Elements in the set can be either of type ImageLayer or ColorLayer, both of which extend RenderLayer. Is there...