[corejsf~subversion:147] ...

  • From: cayhorstmann@kenai.com
  • To: commits@corejsf.kenai.com
  • Subject: [corejsf~subversion:147] ...
  • Date: Sat, 2 Jan 2010 14:36:25 +0000

Project:    corejsf
Repository: subversion
Revision:   147
Author:     cayhorstmann
Date:       2010-01-02 14:36:20 UTC
Link:       

Log Message:
------------
...


Revisions:
----------
147


Modified Paths:
---------------
ch02/numberquiz/web/index.xhtml
ch02/numberquiz/src/java/com/corejsf/QuizBean.java


Diffs:
------
Index: ch02/numberquiz/src/java/com/corejsf/QuizBean.java
===================================================================
--- ch02/numberquiz/src/java/com/corejsf/QuizBean.java  (revision 146)
+++ ch02/numberquiz/src/java/com/corejsf/QuizBean.java  (revision 147)
@@ -22,7 +22,7 @@
       problems.add(
          new ProblemBean(new int[] { 2, 3, 5, 7, 11 }, 13)); // primes
       problems.add(
-         new ProblemBean(new int[] { 1, 2, 4, 8, 16 }, 32)); // powers of 2  
    
+         new ProblemBean(new int[] { 1, 2, 4, 8, 16 }, 32)); // powers of 2
    }   
 
    public void setProblems(ArrayList<ProblemBean> newValue) { 
@@ -40,7 +40,7 @@
       try {
          int answer = Integer.parseInt(newValue.trim());
          if (getCurrent().getSolution() == answer) score++;            
-         currentIndex = (currentIndex + 1) % problems.size();      
+         currentIndex = (currentIndex + 1) % problems.size();
       }
       catch (NumberFormatException ex) {
       }
Index: ch02/numberquiz/web/index.xhtml
===================================================================
--- ch02/numberquiz/web/index.xhtml     (revision 146)
+++ ch02/numberquiz/web/index.xhtml     (revision 147)
@@ -9,7 +9,7 @@
    </h:head>
    <h:body>
       <h:form>
-         <h3>#{msgs.heading}"</h3>
+         <h3>#{msgs.heading}</h3>
          <p>
             <h:outputFormat value="#{msgs.currentScore}">
                <f:param value="#{quizBean.score}"/>





[corejsf~subversion:147] ...

cayhorstmann 01/02/2010
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close