[jboss-cvs] jboss-seam/examples/numberguess/view ...

Gavin King gavin.king at jboss.com
Sun Dec 17 10:05:37 EST 2006


  User: gavin   
  Date: 06/12/17 10:05:37

  Modified:    examples/numberguess/view   numberGuess.jspx
  Added:       examples/numberguess/view   giveup.jspx
  Log:
  giveup
  
  Revision  Changes    Path
  1.4       +1 -0      jboss-seam/examples/numberguess/view/numberGuess.jspx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: numberGuess.jspx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/numberguess/view/numberGuess.jspx,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- numberGuess.jspx	16 Nov 2006 23:19:26 -0000	1.3
  +++ numberGuess.jspx	17 Dec 2006 15:05:37 -0000	1.4
  @@ -33,6 +33,7 @@
           </h:inputText>
   		<h:commandButton value="Guess" action="guess"/>
           <s:button value="Cheat" view="/confirm.jspx"/>
  +        <s:button value="Give up" action="giveup"/>
   		<br/>
           <h:message for="guess" style="color: red"/>
   	  </h:form>
  
  
  
  1.1      date: 2006/12/17 15:05:37;  author: gavin;  state: Exp;jboss-seam/examples/numberguess/view/giveup.jspx
  
  Index: giveup.jspx
  ===================================================================
  <?xml version="1.0"?>
  <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" 
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns="http://www.w3.org/1999/xhtml"
            version="2.0">
    <jsp:output doctype-root-element="html"
                doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
                doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
    <jsp:directive.page contentType="text/html"/>
    <head>
      <title>Do you really want to give up now?</title>
    </head>
    <body>
      <h1>Do you really want to give up now?</h1>
      <f:view>
      <h:form>
        You still have <h:outputText value="#{numberGuess.remainingGuesses}"/> guesses remaining.
        <h:commandButton value="Yes" action="yes"/>
        <h:commandButton value="No" action="no"/>
      </h:form>
      </f:view>
    </body>
  </jsp:root>
  
  
  



More information about the jboss-cvs-commits mailing list