dlestrat    2004/08/17 12:57:57

  Added:       applications/jsf-demo/src/webapp index.jsp response.jsp
                        greeting.jsp wave.med.gif
  Log:
  MyFaces Bridge
  See http://nagoya.apache.org/jira/browse/JS2-107.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/applications/jsf-demo/src/webapp/index.jsp
  
  Index: index.jsp
  ===================================================================
  <!doctype html public "-//w3c//dtd html 4.0 transitional//en">

  <!--

   Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.

   

   Redistribution and use in source and binary forms, with or

   without modification, are permitted provided that the following

   conditions are met:

   

   - Redistributions of source code must retain the above copyright

     notice, this list of conditions and the following disclaimer.

   

   - Redistribution in binary form must reproduce the above

     copyright notice, this list of conditions and the following

     disclaimer in the documentation and/or other materials

     provided with the distribution.

      

   Neither the name of Sun Microsystems, Inc. or the names of

   contributors may be used to endorse or promote products derived

   from this software without specific prior written permission.

    

   This software is provided "AS IS," without a warranty of any

   kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND

   WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,

   FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY

   EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY

   DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR

   RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE OR

   ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE

   FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,

   SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER

   CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF

   THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS

   BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

    

   You acknowledge that this software is not designed, licensed or

   intended for use in the design, construction, operation or

   maintenance of any nuclear facility.

  -->

  <html>

  <head>

  </head>

  <body>

  

  <!--  

  

  This page allows the user to go to the context-path and get redirected

  to the front page of the app.  For example,

  http://localhost:8080/jsf-carstore/.  Note that we use "*.jsf" as the

  page mapping.  Doing so allows us to just name our pages as "*.jsp",

  refer to them as "*.jsf" and know that they will be properly picked up

  by the container.

  

  -->

  

  <jsp:forward page="greeting.jsp" />

  </body>

  </html>

  
  
  
  1.1                  jakarta-jetspeed-2/applications/jsf-demo/src/webapp/response.jsp
  
  Index: response.jsp
  ===================================================================
  <!--

   Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.

   

   Redistribution and use in source and binary forms, with or

   without modification, are permitted provided that the following

   conditions are met:

   

   - Redistributions of source code must retain the above copyright

     notice, this list of conditions and the following disclaimer.

   

   - Redistribution in binary form must reproduce the above

     copyright notice, this list of conditions and the following

     disclaimer in the documentation and/or other materials

     provided with the distribution.

      

   Neither the name of Sun Microsystems, Inc. or the names of

   contributors may be used to endorse or promote products derived

   from this software without specific prior written permission.

    

   This software is provided "AS IS," without a warranty of any

   kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND

   WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,

   FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY

   EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY

   DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR

   RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE OR

   ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE

   FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,

   SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER

   CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF

   THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS

   BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

    

   You acknowledge that this software is not designed, licensed or

   intended for use in the design, construction, operation or

   maintenance of any nuclear facility.

  -->

  

  <HTML>

      <HEAD> <title>Guess The Number</title> </HEAD>

      <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>

      <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>

      <body bgcolor="white">

      <f:view>

      <h:form id="responseForm" >

          <h:graphicImage id="waveImg" url="/wave.med.gif" />

      <h2><h:outputText id="result" 

                        value="#{UserNumberBean.response}"/></h2>   

      <h:commandButton id="back" value="Back" action="success"/><p>

  

      </h:form>

      </f:view>

   </HTML>

  
  
  
  1.1                  jakarta-jetspeed-2/applications/jsf-demo/src/webapp/greeting.jsp
  
  Index: greeting.jsp
  ===================================================================
  <!--

   Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.

   

   Redistribution and use in source and binary forms, with or

   without modification, are permitted provided that the following

   conditions are met:

   

   - Redistributions of source code must retain the above copyright

     notice, this list of conditions and the following disclaimer.

   

   - Redistribution in binary form must reproduce the above

     copyright notice, this list of conditions and the following

     disclaimer in the documentation and/or other materials

     provided with the distribution.

      

   Neither the name of Sun Microsystems, Inc. or the names of

   contributors may be used to endorse or promote products derived

   from this software without specific prior written permission.

    

   This software is provided "AS IS," without a warranty of any

   kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND

   WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,

   FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY

   EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY

   DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR

   RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE OR

   ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE

   FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,

   SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER

   CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF

   THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS

   BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

    

   You acknowledge that this software is not designed, licensed or

   intended for use in the design, construction, operation or

   maintenance of any nuclear facility.

  -->

  

  <HTML>

      <HEAD> <title>Hello</title> </HEAD>

      <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>

      <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>

      <body bgcolor="white">

      <f:view>

      <h:form id="helloForm" >

        <h2>Hi. My name is Duke.  I'm thinking of a number from

        <h:outputText value="#{UserNumberBean.minimum}"/> to

        <h:outputText value="#{UserNumberBean.maximum}"/>.  Can you guess

        it?</h2>

  

          <h:graphicImage id="waveImg" url="/wave.med.gif" />

        <h:inputText id="userNo" value="#{UserNumberBean.userNumber}"

                        validator="#{UserNumberBean.validate}"/>          

         <h:commandButton id="submit" action="success" value="Submit" />

           <p>

         <h:message style="color: red; font-family: 'New Century Schoolbook', serif; 
font-style: oblique; text-decoration: overline" id="errors1" for="userNo"/>

  

      </h:form>

      </f:view>

  </HTML>  

  
  
  
  1.1                  jakarta-jetspeed-2/applications/jsf-demo/src/webapp/wave.med.gif
  
        <<Binary file>>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to