[webbeans-commits] Webbeans SVN: r696 - ri/trunk/examples/numberguess/WebContent.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Wed Dec 24 05:29:43 EST 2008


Author: pete.muir at jboss.org
Date: 2008-12-24 05:29:43 -0500 (Wed, 24 Dec 2008)
New Revision: 696

Modified:
   ri/trunk/examples/numberguess/WebContent/home.xhtml
Log:
WBRI-78

Modified: ri/trunk/examples/numberguess/WebContent/home.xhtml
===================================================================
--- ri/trunk/examples/numberguess/WebContent/home.xhtml	2008-12-23 21:46:10 UTC (rev 695)
+++ ri/trunk/examples/numberguess/WebContent/home.xhtml	2008-12-24 10:29:43 UTC (rev 696)
@@ -21,10 +21,10 @@
      
           <div>
              Your guess: 
-             <h:inputText id="inputGuess" value="#{game.guess}" required="true" size="3">
+             <h:inputText id="inputGuess" value="#{game.guess}" required="true" size="3" disabled="#{game.number eq game.guess}">
                 <f:validateLongRange maximum="#{game.biggest}" minimum="#{game.smallest}"/>
              </h:inputText>
-            <h:commandButton id="GuessButton" value="Guess" action="#{game.check}"/>
+            <h:commandButton id="GuessButton" value="Guess" action="#{game.check}" disabled="#{game.number eq game.guess}"/>
           </div>
        </h:form>
     </ui:define>




More information about the weld-commits mailing list