small medium large xlarge

Errata for Grails

 

The latest version of the book is P1.0, released almost 6 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (01-Jun-10)
#43522
PDF page: 1

With newer versions of grails, BootStrap does not work unless you add import tekdays.*--Larry

  • Reported in: P1.0 (21-Oct-10)
#45420
PDF page: 1

yes--Catherine

  • Reported in: P1.0 (30-Dec-09)
#41953
PDF page: 1
Grails 1.2 was just released, and many of the scripts highlighted in this book have changed slightly. They are now suggesting that all new objects be ...more...
  • Reported in: P1.0 (30-Dec-09)
#41954
PDF page: 1
It might be useful to introduce people to the "grails clean" command early in the book. I had a number of confusing error messages that wasted a lot o...more...
  • Reported in: P1.0 (21-Dec-09)
#41883
Paper page: 42
Using Grails 1.1.2: This also applies to all other references to the relationships between TekEvent->TekUser. In the Show GSP pages I see the TekUser:...more...
  • Reported in: P1.0 (20-Jul-10)
#44200
Paper page: 46
When creating the TekUser domain class the toString() code needs to read as follows to work properly in the view layer: String toString(){ ...more...
  • Reported in: B4.0 (08-Jul-09)
#39867
PDF page: 51

Figure 4.2 on page 51 is placed in the middle of the code snippet.--John

David J Klein says: I think this type of thing will be cleaned up during the final typesetting, but thanks for taking the time to report it. Dave
  • Reported in: P1.0 (23-Dec-09)
#41909
Paper page: 52

In "We're giving the Map a firstName element for clarity", should fullName be used instead of firstName?--Paul Stackhouse

  • Reported in: P1.0 (02-Feb-10)
#42245
PDF page: 54
********************************************* String toString(){ fullName } should have been String toString(){ "$fullName" } *************...more...
  • Reported in: P1.0 (04-Dec-09)
#41704
PDF page: 54

The linked BootStrap.groovy doesn't match the chapter's material (it's actually the final one).

  • Reported in: P1.0 (02-Feb-10)
#42241
PDF page: 56

The version of Bootstrap.groovy that can be downloaded does not correspond (contains code related to later chapter) to the text.--Carsten Hess

  • Reported in: B4.0 (09-Jul-09)
#39899
PDF page: 59

Figure 4.5 is in the middle of code snippet.--John J. Penrod

David J Klein says: This should get fixed in typesetting.
  • Reported in: P1.0 (20-Jul-10)
#44199
Paper page: 60
When defining the Sponsorship Domain Class the following code is required to get the view layer to display the Sponsor's name: String toString(...more...
  • Reported in: P1.0 (28-Nov-09)
#41644
PDF page: 60

first paragraph: should be "fullName" rather than "firstName" in

"We're giving the Map a firstName element for clarity..."

--John Cartwright

  • Reported in: B4.0 (09-Jul-09)
#39902
PDF page: 60

Figure 4.6 precedes the section header (4.5 Adding a Sponsor Class) that it is related to. This may not be desirable.--John J. Penrod

David J Klein says: This too should be fixed in typesetting.
  • Reported in: P1.0 (21-Feb-10)
#42356
Paper page: 63
Hi! In figure 4.9 on page 63 above you have put a graphical display of the "Task" class. One of its properties is "String description"; however, o...more...
  • Reported in: P1.0 (03-Feb-10)
#42246
PDF page: 65
****************************************************** String toString(){ name } should have been String toString(){ "$name" } ***...more...
  • Reported in: P1.0 (10-Jun-10)
#43703
Paper page: 66
In the constraints list: * inList: Value must be included in the supplied listv should probably be: * inList: Value must be included in the ...more...
  • Reported in: P1.0 (31-Dec-09)
#41966
PDF page: 69
Paper page: 61
needed to alter for grails 1.2.0 (also needed for sp2) def sp1 = new Sponsorship(/*event:g1, sponsor:s1,*/ contributionType:'Other', ...more...
  • Reported in: P1.0 (29-May-11)
#47123
PDF page: 72

Next we’ll create the Message class

suggestion

Next we’ll create the Message domani class--Giacomo Cosenza

  • Reported in: B7.0 (07-Oct-09)
#40941
PDF page: 78
At the bottom of the page: "Since it is a Groovy Map, any element to which we assign a value will be added if it doesn’t exist." Remove "if it doesn'...more...
  • Reported in: P1.0 (23-Jun-11)
#47216
PDF page: 81
The following set contains a error in the code: else { flash.message = "TekEvent not found with id ${params.id}" redirect(action:edit,id:...more...
  • Reported in: P1.0 (06-Jan-10)
#42018
PDF page: 103
The following code causes an error in the display <g:each var="s" in="${tekEventInstance.sponsorships}"> <li><g:link controller="sponsorship" acti...more...
  • Reported in: P1.0 (05-Apr-10)
#42669
Paper page: 103
Hi On page 103 of the book (I think it's page 113 for the PDF; see Jeff Schmidt's comment as well) there is no mention of adding a toString() metho...more...
  • Reported in: P1.0 (03-Nov-09)
#41159
PDF page: 108
2nd paragraph under 6.4 Grails Service Classes. 2nd sentence states "doesn't fit well in any a domain class". Should be "doesn't fit well in any domai...more...
  • Reported in: P1.0 (03-Nov-09)
#41160
PDF page: 111
In Figure 6.6, the task titles are displayed under Tasks. After creating the Task domain class on page 71, the toString() method is never defined. Thu...more...
  • Reported in: P1.0 (20-Jan-11)
#46277
Paper page: 113
Mismatch between instructions in paper version of the book and the accompanying code: Adds the css class 'messageField' to the markup but this has no...more...
  • Reported in: P1.0 (21-Jan-11)
#46286
Paper page: 116
The cut and paste of code into the new ajaxList.gsp at the top of page 116 should read: <g:link class="create" action="create" params='["event.id":"${...more...
  • Reported in: P1.0 (19-Jun-11)
#47201
PDF page: 131
The margin-left property needs to specify a dimension value. Change: out << "<div style='height:30; margin-left:${indent * 20};'>" To: out << ...more...
  • Reported in: P1.0 (30-Dec-09)
#41952
PDF page: 175
In the code listing that ends at the top of this page (for search.gsp), there are one too many </div> tags. There is a DIV for the nav section, which ...more...
  • Reported in: P1.0 (29-Jun-11)
#47232
PDF page: 188

Twitter integration may be different, because it is not possible to post to Twitter.--Francesco Facconi

  • Reported in: P1.0 (22-Oct-09)
#41050
PDF page: 196
In the code listing if (params.nickname) flash.message = "TekEvent not found with id ${params.id}" else flash.message = "TekEvent not found with...more...