Java EE 7 Essentials

Errata for Java EE 7 Essentials

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 48
United States

Change <h:inputText value="#{user.name}" id="name"> <f:validateLength min="1" maximum="10"/> </h:inputText> to <h:inputText value="#{user.name}" id="name"> <f:validateLength minimum="1" maximum="10"/> </h:inputText> "min" to "minimum"

Note from the Author or Editor:
Found this errata when reviewing the book, confirming the change.

Arun Gupta  Oct 02, 2013 
Printed
Page 64
Last paragraph

inversion of "HTML" and "usage" section for h:outputLabel

Note from the Author or Editor:
Page 64, h:outputLabel block (towards the end of the page) Swap the code fragments under Usage and HTML. The updated text should look like: Usage: <h:outputLabel for="inputTextId" value="myLabel"/> <h:inputText id="inputTextId" value="myInputText"/> HTML: <label for="inputTextId"> </label> <input id="inputTextId" type="text" name="inputTextId" value="myInputText" />

Bertrand DONNET  Oct 22, 2013 
Printed
Page 76
United States

Java code will not compile (class implements wrong interface) class MyCompletionCallback implements CompletionCallback { public void onDisconect(AsyncReponse ar) { .... } } This class must implement ConnectionCallback.

Note from the Author or Editor:
On page 76, second code fragment, please change "implements CompletionCallback" to "implements ConnectionCallback".

Raymond Naseef  Jan 14, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 77
Code Fragment

Change @POST @Path("create") @Consumes("application/x-www-form-urlencoded") public Order createOrder(@FormParam("id")int id, @FormParam("name")String name) { Order order = new Order(); order.setId(id); order.setName(name); return order; } to @POST @Path("create") @Consumes("application/x-www-form-urlencoded") @Produces("application/xml") public Order createOrder(@FormParam("id")int id, @FormParam("name")String name) { Order order = new Order(); order.setId(id); order.setName(name); return order; } Add @Produces

Note from the Author or Editor:
Found this errata when reviewing the book, confirming the change.

Arun Gupta  Oct 02, 2013 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 80
Code fragment

Change "may be consumed by a resource method:" to "may be produced by a resource method:". Change @Consumes({"application/xml; qs=0.75", "application/json; qs=1"}) to @Produces({"application/xml; qs=0.75", "application/json; qs=1"})

Note from the Author or Editor:
Found this errata when reviewing the book, confirming the change.

Arun Gupta  Oct 02, 2013 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 88
United States

Change the code from: @Path("{id}")&#8232; public Order getOrder(@PathParam("id")int id) { Order order = null; &#8232;if (order == null) { throw new OrderNotFoundException(id); } //. . . return order; &#8232;} TO @Path("{id}")&#8232; public Order getOrder(@PathParam("id")int id) { Order order = findOrder(id);&#8232; if (order == null) { throw new OrderNotFoundException(id); } //. . . return order; &#8232;}

Note from the Author or Editor:
Found this errata when reviewing the book, confirming the change.

Arun Gupta  Oct 02, 2013 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 94
Code fragment

Add private String email; between private String lastName; and @FormParam("email")

Note from the Author or Editor:
Found this errata when reviewing the book, confirming the change.

Arun Gupta  Oct 02, 2013 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 146
Code Fragment

Change public ShoppingCart() { to public Cart() {

Note from the Author or Editor:
Found this errata when reviewing the book, confirming the change.

Arun Gupta  Oct 02, 2013 
Printed
Page 148
United States

Misspelled: acivation [activation]

Note from the Author or Editor:
Page 148, please change "acivation" to "activation"

Raymond Naseef  Jan 14, 2014 
Printed
Page 161
United States

Table 8-3 mistake with time (20 = 8pm, not 10pm) Hour=1,2,20 => 1 am, 2 am, and 10 pm on all days of the year

Note from the Author or Editor:
Page 161, Table 8-3, first row, second column Change "10 pm" to "8 pm".

Raymond Naseef  Jan 14, 2014 
Printed
Page 180
United States

to a conversation unike [unlike]

Note from the Author or Editor:
On page 180, please change "unike" to "unlike"

Raymond Naseef  Jan 14, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 286
Code Fragment

Change <h:commandButton id="back" value="Back" action="booking" /> to <h:commandButton id="back" value="Back" action="booking" immediate="true"/>

Note from the Author or Editor:
Found this errata when reviewing the book, confirming the change.

Arun Gupta  Oct 02, 2013 
Printed
Page 290
First and second paragraphs

Screenshots are inverted

Note from the Author or Editor:
Figure 16-13 and 16-14 need to be swapped, with exact same titles.

Bertrand DONNET  Oct 25, 2013