Core JavaServer Faces

Book coverBug Report Page (Second Edition)

Page 11
In step 3 for Windows, change cd ch1\login\web to cd ch1\login\src\java. Change mkdir WEB-INF\classes to mkdir ..\..\web\WEB-INF\classes.
Page 34
Change "In the Process Validations phase, the submitted string values are first converted to “local values,” which can be objects of any type. When you design a JSF page, you can attach validators that perform correctness checks on the local values." to "The values stored in the component are called “local values”. When you design a JSF page, you can attach validators that perform correctness checks on the local values. These validators are executed in the Process Validations phase."
Page 42
Change “JavaServer Pages Standard Template Library” to “JavaServer Pages Standard Tag Library”
Page 42
Change “insrc/java/com/corejsf/” to “in src/java/com/corejsf/
Page 79
Replace the code for the answerAction method with
public String answerAction() {
    tries++;
    if (problems[currentProblem].isCorrect(response)) {
        score++;
        nextProblem();
        if (currentProblem == problems.length) return "done";
        else return "success";
    }
    else if (tries == 1) {
        return "again";
    }
    else {
        nextProblem();
        if (currentProblem == problems.length) return "done";
        else return "failure";
    }
}
Page 88
In step 4, change “such as secure” to “such as /secure/*
Page 93
Change “artibrary” to “arbitrary”
Page 93
Change vlude to value
Page 104
Change “There is no need for an anchor attribute” to “There is no need for an action attribute”
Page 117
Change “Default value is false.” to “Default value is true.”
Page 167
Change “new ArrayListList<SelectItem>();” to “new ArrayList<SelectItem>();
Page 172
Change “output_text” to “outputText” (2x)
Page 178

Remove styleClass, value from Table 5-2

Page 187
Change “output_text” to “outputText”
Page 205
Change
for (int i=0; i < rowCnt; ++i) {
rows[i] = new Row(i);

to

for (int i=0; i < rowCnt; ++i) {
   rows[i] = new Row(i);
}

Fix the indenting in

public void setRowIndex(int rowIndex) {
    if (rowIndex == -1 || rowIndex >= model.getRowCount()) {
    model.setRowIndex(rowIndex);
}
else {
    model.setRowIndex(rows[rowIndex].row);
    }
}

to

public void setRowIndex(int rowIndex) {
    if (rowIndex == -1 || rowIndex >= model.getRowCount()) {
        model.setRowIndex(rowIndex);
    }
    else {
        model.setRowIndex(rows[rowIndex].row);
    }
}

(i.e. indent the four bold lines)

Page 220
In Figure 1, change "11/2007" to "04/2004"
Page 520
Change “the Java Web Services Developer Pack (JWSDP) from http://java.sun.com/webservices/jwsdp. Refer to the JWSDP documentation” to “the Metro web service stack from http://metro.dev.java.net. Refer to the Metro documentation”
Page 530
Change “illicits” to “elicits”
Page 613
Change http://www.cle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/index.html to http://www.oracle.com/technology/products/adf/adffaces/index.html
Page 653
Break the URL for http://myfaces.apache.org/tomahawk/panelStack.html after tomahawk/ so that it doesn't have a hyphen.

Thanks to Ognjen Blagojevic, Guus Bonnema, Luca Borzani, Tim Colburn, Michele Costabile, Chris Dailey, Shawn Flahave, Jeremy Flowers, Eef Goeyenbier, Scott Healy, Pieter Kuijpers, Donna Lamb, Else Lervik, Tom Nagle, Larry Sanford, Aaron Shettleroe, Andreas Watermeyer, Shane Wilson, Aldo Ahmed Solis Zenteno, and (your name might go here) for their help!

Bug Report Form

Please use this form to report any bugs that you find. Please check the list of known bugs and the list of frequently asked questions first before you report a bug. Unfortunately, we do not have the time to respond personally to every report, but we do read them all and will post updates to this page. Thank you!

Your name:
Your email address:
Edition:
Page number:

Problem description:

To protect against spam robots, please answer this simple math problem:
* =