This is a list of errata that has been found and / or corrected in each release of Spring Roo
Readers: If you find a problem with the text of the book, please log onto our author forum at http://manning.com/SpringRooInAction. Please review this list below before you post, and check the e-book if you downloaded it to see if the issue has been corrected before you post.
If you need to log a bug against the code samples, please create a GitHub account at GitHub, and watch krimple's spring-roo-in-action-examples repo at https://github.com/krimple/spring-roo-in-action-examples, and file a bug by clicking on the Issues tab. We'll take a look at it as soon as we can. Please only log bugs if you can reproduce them, and they seem to truly represent a problem with the code as it currently exists.
Important note: The samples may diverge from the book code naturally as a result of an error in the original samples (documented below) or because of upgrades to Roo that break the examples. We will provide tags representing release dates and will be attempting to document everything as much
"Review the root directory of each source project. If it contains a readme.txt file, please review it before running the sample. This file may contain instructions on how to build, run, or review the individual sample."
Gordon's last name was missing from the credits for the STS RefCard.
Since the Roo API changes periodically and the book may become out of sync with examples, we use the convention of a readme.txt file in the root of a sample project to convey any late breaking changes not in the manuscript. Added a comment about this on this page.
jetty:run
Changed from
mvn jetty:run
mvn package jetty:run
mvn tomcat:run
mvn package tomcat:run
Throughout the book code samples have been cleaned up as code indentation was skewed when transformed into the final manuscript.
Changed jdbcTemplate example to use queryForInt rather than queryForString
queryForInt
queryForString
Added a note: "Executing the Maven package goal guarantees that you are running against the latest changes to your application"
Cleaned up language in first and second full paragraph.
Removed DAO from text. We were describing a Data Access Layer, not a Data Access Object
Cleaned up sentence structure.
Remove the first line continuation arrow as it is a single line Roo command.
Bolden the Roo command in the second code snippet of the page to make it stand out.
The
infrastructure roo>
taskmanager-data roo>
Inversed bolding of commands themselves and output. The output was bolded, almost pointing to the wrong thing. The commands are the center or focus here.
Cleaned up formatting of code example. Some lines were not properly aligned with others of the same level of indentation
Pull back c.setDescription(null); to align with rest of the indented block
c.setDescription(null);
Code cleanup - first method line was incorrectly indented an extra space.
Continuation arrow in initial snippet on page was too close to code sample line. Listing 4.4 indentation was wrong and is corrected.
Corrected the annotation for addressLine2 to: @Size(min = 0, max = 40) to allow for a nullable value. It currently has a minimum size of 1.
Listing 4.6 code alignment issues have been corrected.
Added the listPrice field to Listing 5.5. Added after the description table:column tag and before the maximumCapacity tag:
<table:column id="c_org_rooinaction_coursemanager_model_Course_listPrice" property="listPrice" z="I0Pv164k6o5/Ts1K+c2DMlwD1KE="/>
Updated snapshot of listing page to include listPrice
Added field:input between description and maximumCapacity field: tags as shown:
<field:input decimalMax="99999.00" decimalMin="0.0" field="listPrice" id="c_org_rooinaction_coursemanager_model_Course_listPrice" required="true" validationMessageCode="field_invalid_number" z="lLtkuV4ioFJDxVZ9sFszAoDxcRo="/>
Listing 5.8 - extra space between last two lines of form opening tag.
Page 165 - locale sample before 6.2.5 - replaced sample below "In your view:" with this:
<table:column date="true" dateTimePattern="${short.date.format}" id="c_org_rooinaction_coursemanager_model_Offering_runDate" property="runDate" z="user-managed"/>
Just below the sample in the last bullet, but before "Roo may also have problems..." added a quick note that states: "Refer to the chapter 6 coursemanager example’s list.jspx file for the offering entity for an example"
Paragraph before second bullet. Added to end of paragraph "To populate the list, you can use something like this:" - then embed informal snippet with one line:
uiModel.addAttribute("coursetypeenums", (line broken on errata only) Arrays.asList(CourseTypeEnum.values()));
Listing 8.1 had formatting issues, and an extra '<' character in the schema location attribute which showed up in the manuscript. This has been corrected.
Principal entity manipulation snippets were missing line continuation characters where the Roo lines were more than one physical text line long. Corrected.
The line starting with
server-ref
Moved entire code sample back to align with the start of the comment line on the first line.
Removed entire hint and logging setup tab tutorial as this was covered in chapter 2.
Mockito was showing up as a blue hyperlink color, and none of the others were blue. Removed color in formatting.
public class
The code sample was incorrectly indented after the annotated line
@Test
The CourseIntegrationTest code sample was mis-formatted.
CourseIntegrationTest
The dependencies list was formatted incorrectly.
The formatting of the code sample in Listing 10.2 has been cleaned up.
Listing 10.5 - pulled back }) to left margin.
Listing 10.10 - pulled back }) to left margin
Example just before JMS LISTENER section - joined last two lines (they made up a roo command line prompt)
Replaced every occurrence of the name JqueryaddonOperations with JqueryuiOperations as I had renamed that class but the change didn't make it into this section. This includes the code snippet.
Changed to "The FileManager"
Removed statement that the Maven jetty:run command depends on the Maven package lifecycle phase. This is no longer true.
Listing 12.4 - cleaned up formatting.
Fixed hyphenated line (--removeScripts needed to stay together)
Changed 2nd to last line of page from "which you're referencing" to "which we are referencing" as we are reviewing an example that we provide in unix format, but the user may be on Windows.
Added "In this example" to first paragraph before "We use Google Code" to make sure people know that this is not their only option.
Aligned the two lists of Roo commands.
Merged all competing variants of CourseManager (Course Manager, CourseMgr) etc... to clean up those index entries.