spring-roo

How to debug JSTL?

天涯浪子 提交于 2019-12-22 01:39:29
问题 I'm using SpringSource Tool Suite (with Roo) and have some success. What bothers me though is that I don't know how to debug tag library-stuff. I may add breakpoints but it never stops at them. What I'm looking for is a dump of all current variables in the context. Up until now I did something like: <c:forEach items="${data}" var="item"> <c:out value="${item}"></c:out><br /> </c:forEach> Sadly, that's difficult to read and also not pretty straightforward. What can I do to improve this? 回答1:

Autocompletion in Eclipse for Roo project

送分小仙女□ 提交于 2019-12-21 17:52:16
问题 I've got a Roo project where I've made a couple of entities, and when I load up the project in Eclipse it loads up fine, but if I i.e. make an instance MyEntity entity and then write entity. I don't get any of my properties (i.e. getMyField) in the autocompletion list. If I write entity.getMyField() it compiles fine, that is taken care of by the aspects. How do I enable autocompletion for functions generated by the aspects? Cheers Nik 回答1: Which "type" of eclipse are you using? Do you have

Roo - add custom finder

做~自己de王妃 提交于 2019-12-21 05:14:12
问题 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. 回答1: 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

JDBC driver not available for 'org.postgresql.Driver' on Spring Roo

故事扮演 提交于 2019-12-20 07:37:41
问题 I am trying to use database reverse engineer ... See full Roo v1.3 script and UBUNTU env at this simple "hello" script. The error: Located add-ons that may offer this JDBC driver 2 found, sorted by rank; T = trusted developer; R = Roo 1.3 compatible ID T R DESCRIPTION ------------------------------------------------------------- 01 Y Y 9.1.0.901-1_0001 Postgres #jdbcdriver... 02 Y Y 9.1.0.901_0001 Postgres #jdbcdriver... ------------------------------------------------------------------------

Jetty runs correctly via maven, but incorrectly as a jar

谁说胖子不能爱 提交于 2019-12-19 11:23:10
问题 (If my title is misleading/incorrect please suggest something more descriptive, that the best I could think of) I've created my own web app using spring roo and have yet to edit any of the code. I am building and running the web app with maven and jetty. When I execute the following everything works fine. mvn jetty:run However when I package and then run the jar directly, I come across some strange problems. mvn package java -jar target/dependency/jetty-runner.jar target/*.war (Same thing

Support both jsp and jspx in spring 3.0

柔情痞子 提交于 2019-12-19 03:58:52
问题 i've set up a roo application. The default view resolver built-in in roo is for jspx files. Is it possible to support also jsp files?. I tried configuring two viewResolvers but it seems that no urlBasedViewResolvers can coexist, its either one or the other. Changing the order does not affect the behaviour. If I set order =1 to the jspx then if i search for any .jsp file it gives me 404. The same if I search for jspx but jsp viewResolver is set with order =1. Is there anyway to do this? Thanks

store strings of arbitrary length in Postgresql

杀马特。学长 韩版系。学妹 提交于 2019-12-18 04:43:11
问题 I have a Spring application which uses JPA ( Hibernate ) initially created with Spring Roo. I need to store Strings with arbitrary length, so for that reason I've annotated the field with @Lob : public class MyEntity{ @NotNull @Size(min = 2) @Lob private String message; ... } The application works ok in localhost but I've deployed it to an external server and it a problem with encoding has appeared. For that reason I'd like to check if the data stored in the PostgreSQL database is ok or not.

hot deploy in embedded jetty

只愿长相守 提交于 2019-12-17 22:20:28
问题 I have a Spring Roo project and I use mvn jetty:run to run my app. The only problem is changes to the *.java classes do not hot deploy, while changes to *.jspx hot deploy fine. So how can I configure mvn jetty to hotdeploy for java classes? 回答1: You need to set the scanIntervalSeconds to a value greater than 0 to enable it: scanIntervalSeconds - The interval in seconds to scan the webapp for changes and restart the context if necessary. Ignored if reload is enabled. Disabled by default.

GWT RootLayoutPanel - Problem rendering page from second to first (first works fine)

只愿长相守 提交于 2019-12-13 05:27:02
问题 Sorry if this was already answered before. I did a little searching and found nothing that could solve my problem. I created an application with Spring Roo, then converted to a GWT app. All the code generated by Spring Roo is only for CRUD. Now i want to add a Calendar for make appointments, so i need to move to another page. I´ve added this code to ScaffoldDesktopShell.java() public ScaffoldDesktopShell() { initWidget(BINDER.createAndBindUi(this)); startButton.addClickHandler(new

Spring Roo 2.0.0.RC1 - Problems when change contextPath

时间秒杀一切 提交于 2019-12-13 03:49:38
问题 clinic example I have change the contextPath in application.properties : server.contextPath=/tierklinik When I start the application now the url is http://localhost:8080/tierklinik , but when I will add something new (create) then I get error side and the URL is not correct. Url after save: http://localhost:8080/tierklinik/tierklinik/pets/ I have a normal spring boot application and the contextPath change work. 回答1: This is a known problem in the Spring Roo 2.0.0.RC1 applications. Check the