spring-roo

JQuery and Google Maps JS api not working together

≯℡__Kan透↙ 提交于 2019-12-12 01:27:33
问题 I am really stuck trying to use both the Google Maps API and the JQuery API in the same block.. My page is jspx (Spring) and I need the JQuery so that I can get and parse google fusion table data. However, when I declare both libraries together the map div will not load (if I load Google Maps alone, all of the mapping works fine). Here is the relevant code: <script src="http://code.jquery.com/jquery-latest.pack.js" type="text/javascript"/> <script src="http://maps.googleapis.com/maps/api/js?v

Roo 1.2.0 basic application with datanucleus still buggy

╄→гoц情女王★ 提交于 2019-12-11 22:45:33
问题 A few days ago, I posted Roo 1.1.5 super basic application is buggy, and just recently on Dec 17, 2011, Spring Roo 1.2.0 has been released. I created the equivalent project: project --topLevelPackage task --java 6 --projectName Task jpa setup --provider DATANUCLEUS --database H2_IN_MEMORY entity jpa --class ~.domain.Task field string --fieldName description --notNull --sizeMin 3 --sizeMax 512 field boolean --fieldName completed --notNull web jsf setup controller all --package ~.controller

Add <style> and <script> from body and place it on head

余生颓废 提交于 2019-12-11 19:28:59
问题 I am using Spring Roo 1.2.4 for this topic. I am aware that to add user-defined default styles and scripts should be added on PROJECT_FOLDER/src/main/webapp/WEB-INF/tags/util/load-scripts.tagx . In my case, I have some .jspx that need(s) additional style and scripts on a particular view only. When I view the page with the <style> and <script> tags on the .jspx file, the <style> gets rendered and work accordingly. But the <script> tag doesn't work especially when using the JQuery library for

populate a table B based on row clicked on table A

北城以北 提交于 2019-12-11 19:26:18
问题 I have a table that A is made from dojo and I need to populate another table B again using dojo. Here I need to click the row of the table A and based on that row I need to make a call to my spring controller along with I will send the row id or some value of row to controller and the controller, it should return json data of a model that i need to return to dojo to so it as table B. Here below I show you that what I have. Button to populate a table that which I got In google search. <button

springroo addon upgrade all

半世苍凉 提交于 2019-12-11 18:49:18
问题 when I try to run command addon upgrade all srpginroo downloads something and then freezes doing nothing. I have waited long time (about half an hour) and nothing happened, then I had to close console, and after that springroo started behaving unstably so I had to reinstall it. Such thing happened on several computers. What am I doing wrong? 回答1: Make sure you enter pgp automatic trust first 来源: https://stackoverflow.com/questions/5366167/springroo-addon-upgrade-all

Spring Roo doesn't add FetchType.LAZY for fields in .aj files, Should I do it manually?

情到浓时终转凉″ 提交于 2019-12-11 18:38:22
问题 These are a couple of question, should Spring Roo through reverse engineering adding FetchType.LAZY for Set fields in .aj files or should I do it manually? If FetchType.LAZY is not present at .aj files, I could make it through the queries " SELECT st1 FROM parentTable t1 JOIN FETCH t1.childTable st1" into the select, right ? The point here is that I can add FetchType.LAZY to the files manually (Refactor .aj file > Push In..) and then on .java file (high risk if I want Roo to keep the control

<table:column> Roo-tag for property of referenced entity

社会主义新天地 提交于 2019-12-11 12:03:20
问题 I've got a two classes (pupil, class) in a Roo-project and their scaffolded views. pupil and class have a 1:1 relationship In the list.jspx of pupil I'd like to display a column for a property of class. I don't know the correct attributes to give to the table:column-tag. This following example gives the error: SpelEvaluationException: EL1027Epos 4): Indexing into type 'com.pupil' is not supported <table:table data="${pupil}" duplicate="true" id="l_com_pupil" path="/admin/pupil" z="user

Issue with @ComponentScan, filters since migrating to javaconfig

强颜欢笑 提交于 2019-12-11 11:14:57
问题 I am trying to migrate to javaConfig using the following configuration: WebMvcConfig : @Configuration @EnableWebMvc @ComponentScan(basePackages = { "com.bignibou" }, useDefaultFilters = false, includeFilters = { @Filter(type = FilterType.ANNOTATION, value = Controller.class), @Filter(type = FilterType.ANNOTATION, value = ControllerAdvice.class) }) public class WebMvcConfig extends WebMvcConfigurationSupport { @Override public void configureMessageConverters(List<HttpMessageConverter<?>>

SqlExceptionHelper - Duplicate entry for Unique key Using Spring Data JPA

让人想犯罪 __ 提交于 2019-12-11 09:22:14
问题 Here is the situation: I have 3 tables - Dummy, A and B - where A and B have One-To-Many relationship, and Dummy is stand alone These tables have corresponding JPA entities in the data layer. I am using Repository design pattern, so accessing these entities via their corresponding service implementations. I am making exact sequence of calls to these entities: Get an entity for ID = xxx Display the entity ID and name (or whatever) Update a field using entity.setField(YYY) push it back to DB

Spring Roo: 'web mvc setup' fails with 'display name required'

混江龙づ霸主 提交于 2019-12-11 07:28:01
问题 I'm trying to follow the Spring Roo tutorial at: http://static.springsource.org/spring-roo/reference/html/beginning.html I was able to create entities and pass integration tests. But, when I move on to create controllers, the following command fails: roo> web mvc setup Created ROOT/src/main/webapp/WEB-INF/spring Created ROOT/src/main/webapp/WEB-INF/spring/webmvc-config.xml Undo create ROOT/src/main/webapp/WEB-INF/spring/webmvc-config.xml Undo create ROOT/src/main/webapp/WEB-INF/spring display