dlestrat    2004/08/17 12:58:47

  Added:       applications/jsf-demo/src/webapp/WEB-INF web.xml
                        faces-config.xml portlet.xml
  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/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
   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.
  -->
  <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 
"http://java.sun.com/dtd/web-app_2_3.dtd";>
  
  <web-app>
        <display-name>JavaServer Faces Guess Number Sample Application</display-name>
        <description>JavaServer Faces Guess Number Sample Application</description>
        <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
        </context-param>
        <context-param>
        <param-name>javax.faces.application.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/faces-config.xml</param-value>
        </context-param>
        <context-param>
          <param-name>net.sourceforge.myfaces.ALLOW_JAVASCRIPT</param-name>
          <param-value>true</param-value>
          <description>
              This parameter tells MyFaces if javascript code should be allowed in the
              rendered HTML output.
              If javascript is allowed, command_link anchors will have javascript code
              that submits the corresponding form.
              If javascript is not allowed, the state saving info and nested parameters
              will be added as url parameters.
              Default: "true"
          </description>
      </context-param>
      
      <context-param>
          <param-name>net.sourceforge.myfaces.DETECT_JAVASCRIPT</param-name>
          <param-value>false</param-value>
          <description>
              This parameter tells MyFaces if javascript code should be allowed in the
              rendered HTML output.
              If javascript is allowed, command_link anchors will have javascript code
              that submits the corresponding form.
              If javascript is not allowed, the state saving info and nested parameters
              will be added as url parameters.
              Default: "false"
  
              Setting this param to true should be combined with STATE_SAVING_METHOD 
"server" for
              best results.
  
              This is an EXPERIMENTAL feature. You also have to enable the detector 
filter/filter mapping below to get
              JavaScript detection working.
          </description>
      </context-param>
  
      <context-param>
          <param-name>net.sourceforge.myfaces.PRETTY_HTML</param-name>
          <param-value>true</param-value>
          <description>
              If true, rendered HTML code will be formatted, so that it is "human 
readable".
              i.e. additional line separators and whitespace will be written, that do 
not
              influence the HTML code.
              Default: "true"
          </description>
      </context-param>
    
        <!-- Listener, that does all the startup work (configuration, init). -->
        <listener>
        
<listener-class>net.sourceforge.myfaces.webapp.StartupServletContextListener</listener-class>
        </listener>
    
        <!-- Faces Servlet -->
        <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
        </servlet>
        <!-- extension mapping -->
        <servlet-mapping>
                <servlet-name>Faces Servlet</servlet-name>
                <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
  
  </web-app>
  
  
  
  
  1.1                  
jakarta-jetspeed-2/applications/jsf-demo/src/webapp/WEB-INF/faces-config.xml
  
  Index: faces-config.xml
  ===================================================================
  <?xml version='1.0' encoding='UTF-8'?>
  
  <!--
   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.
  -->
  
  <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>
  
  <faces-config>
  
    <application>
      <locale-config>
        <default-locale>en</default-locale>
        <supported-locale>de</supported-locale>
        <supported-locale>fr</supported-locale>
        <supported-locale>es</supported-locale>
      </locale-config>
    </application>
  
    <navigation-rule>
      <description>
          The decision rule used by the NavigationHandler to
          determine which view must be displayed after the
          current view, greeting.jsp is processed.
      </description>
      <from-view-id>/greeting.jsp</from-view-id>
      <navigation-case>
          <description>
              Indicates to the NavigationHandler that the response.jsp
              view must be displayed if the Action referenced by a 
              UICommand component on the greeting.jsp view returns 
              the outcome "success".
          </description>
        <from-outcome>success</from-outcome>
        <to-view-id>/response.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
  
    <navigation-rule>
     <description>
          The decision rules used by the NavigationHandler to
          determine which view must be displayed after the
          current view, response.jsp is processed.
      </description>
      <from-view-id>/response.jsp</from-view-id>
      <navigation-case>
          <description>
              Indicates to the NavigationHandler that the greeting.jsp
              view must be displayed if the Action referenced by a 
              UICommand component on the response.jsp view returns 
              the outcome "success".
          </description>
          <from-outcome>success</from-outcome>
        <to-view-id>/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
  
    <managed-bean>
      <description>
        The "backing file" bean that backs up the guessNumber webapp
      </description>
      <managed-bean-name>UserNumberBean</managed-bean-name>
      <managed-bean-class>guessNumber.UserNumberBean</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
        <property-name>minimum</property-name>
        <property-class>int</property-class>
        <value>0</value>
      </managed-property>
      <managed-property>
        <property-name>maximum</property-name>
        <property-class>int</property-class>
        <value>10</value>
      </managed-property>
  
    </managed-bean>
  
  
  </faces-config>
  
  
  
  1.1                  
jakarta-jetspeed-2/applications/jsf-demo/src/webapp/WEB-INF/portlet.xml
  
  Index: portlet.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!--
   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.
  -->
  
  <portlet-app id="jsf-demo" version="1.0">
        <portlet id="guessNumber">
          <init-param>
                        <name>ViewPage</name>
                        <value>/greeting.jsp</value>
            </init-param>
            <description>JSF GuessNumber Portlet</description>
          <portlet-name>guessNumber</portlet-name>
          <display-name>JSF GuessNumber Portlet</display-name>
          
<portlet-class>org.apache.portals.bridges.myfaces.FacesPortlet</portlet-class>
  
          <supports>
              <mime-type>text/html</mime-type>
              <portlet-mode>VIEW</portlet-mode>
              <portlet-mode>EDIT</portlet-mode>
              <portlet-mode>HELP</portlet-mode>
          </supports>
  
          <portlet-info>
              <title>GuessNumber Portlet</title>
              <short-title>guessNumber</short-title>
          </portlet-info>
      </portlet>
  </portlet-app>
  
  
  

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

Reply via email to