[jboss-cvs] jboss-seam/examples/icefaces/resources/WEB-INF ...

Michael Yuan michael.yuan at jboss.com
Mon Oct 1 12:15:51 EDT 2007


  User: myuan   
  Date: 07/10/01 12:15:51

  Added:       examples/icefaces/resources/WEB-INF     components.xml
                        faces-config.xml pages.xml web.xml
  Log:
  icefaces booking example
  
  Revision  Changes    Path
  1.9       +23 -24    jboss-seam/examples/icefaces/resources/WEB-INF/components.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: components.xml
  ===================================================================
  RCS file: components.xml
  diff -N components.xml
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ components.xml	1 Oct 2007 16:15:51 -0000	1.9
  @@ -0,0 +1,23 @@
  +<?xml version="1.0" encoding="UTF-8"?>
  +<components xmlns="http://jboss.com/products/seam/components"
  +            xmlns:core="http://jboss.com/products/seam/core"
  +            xmlns:security="http://jboss.com/products/seam/security"
  +            xmlns:transaction="http://jboss.com/products/seam/transaction"
  +            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  +            xsi:schemaLocation=
  +                "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
  +                 http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd
  +                 http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
  +                 http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
  +
  +    <core:init jndi-pattern="@jndiPattern@" debug="true"/>
  +
  +    <core:manager conversation-timeout="120000"
  +                  concurrent-request-timeout="500"
  +                  conversation-id-parameter="cid"/>
  +
  +    <transaction:ejb-transaction/>
  +
  +    <security:identity authenticate-method="#{authenticator.authenticate}"/>
  +
  +</components>
  
  
  
  1.7       +25 -17    jboss-seam/examples/icefaces/resources/WEB-INF/faces-config.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: faces-config.xml
  ===================================================================
  RCS file: faces-config.xml
  diff -N faces-config.xml
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ faces-config.xml	1 Oct 2007 16:15:51 -0000	1.7
  @@ -0,0 +1,25 @@
  +<?xml version='1.0' encoding='UTF-8'?>
  +<!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>
  +   <message-bundle>messages</message-bundle>
  +      <view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler>
  +   </application>
  +   
  +   <managed-bean>
  +
  +        <managed-bean-name>highlight</managed-bean-name>
  +
  +        <managed-bean-class>com.icesoft.faces.context.effects.Highlight</managed-bean-class>
  +
  +        <managed-bean-scope>application</managed-bean-scope>
  +
  +    </managed-bean>
  +
  +  
  +</faces-config>
  
  
  
  1.7       +107 -5    jboss-seam/examples/icefaces/resources/WEB-INF/pages.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: pages.xml
  ===================================================================
  RCS file: pages.xml
  diff -N pages.xml
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ pages.xml	1 Oct 2007 16:15:51 -0000	1.7
  @@ -0,0 +1,112 @@
  +<?xml version="1.0" encoding="UTF-8"?>
  +<pages xmlns="http://jboss.com/products/seam/pages"
  +       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  +       xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"
  +
  +       no-conversation-view-id="/main.xhtml"
  +                 login-view-id="/home.xhtml">
  +
  +    <page view-id="/register.xhtml">
  +    
  +        <action if="#{validation.failed}"
  +           execute="#{register.invalid}"/>
  +    
  +        <navigation>
  +            <rule if="#{register.registered}">
  +                <redirect view-id="/home.xhtml"/>
  +            </rule>
  +        </navigation>
  +        
  +    </page>
  +
  +    <page view-id="/home.xhtml">
  +    
  +        <navigation>
  +            <rule if="#{identity.loggedIn}">
  +                <redirect view-id="/main.xhtml"/>
  +            </rule>
  +        </navigation>
  +        
  +    </page>
  +    
  +    <page view-id="/password.xhtml"
  +          login-required="true">
  +    
  +        <navigation>
  +            <rule if="#{changePassword.changed}">
  +                <redirect view-id="/main.xhtml"/>
  +            </rule>
  +        </navigation>
  +        
  +    </page>
  +
  +    <page view-id="/main.xhtml" 
  +          login-required="true">
  +    
  +        <navigation from-action="#{hotelBooking.selectHotel(hot)}">
  +            <redirect view-id="/hotel.xhtml"/>
  +        </navigation>
  +        
  +        <navigation from-action="#{bookingList.cancel}">
  +            <redirect/>
  +        </navigation>
  +        
  +    </page>
  +    
  +	<page view-id="/hotel.xhtml" 
  +	      conversation-required="true" 
  +	      login-required="true">
  +          
  +        <description>View hotel: #{hotel.name}</description>
  +        
  +        <navigation from-action="#{hotelBooking.bookHotel}">
  +            <redirect view-id="/book.xhtml"/>
  +        </navigation>
  +        
  +    </page>
  +
  +	<page view-id="/book.xhtml" 
  +	      conversation-required="true" 
  +	      login-required="true">
  +          
  +        <description>Book hotel: #{hotel.name}</description>
  +        
  +        <navigation from-action="#{hotelBooking.setBookingDetails}">
  +            <rule if="#{hotelBooking.bookingValid}">
  +                <redirect view-id="/confirm.xhtml"/>
  +            </rule>
  +        </navigation>
  +        
  +    </page>
  +
  +	<page view-id="/confirm.xhtml" 
  +	      conversation-required="true" 
  +	      login-required="true">
  +          
  +        <description>Confirm booking: #{booking.description}</description>
  +        
  +        <navigation from-action="#{hotelBooking.confirm}">
  +            <redirect view-id="/main.xhtml"/>
  +        </navigation>
  +        
  +    </page>
  +    
  +    <page view-id="*">
  +    
  +        <navigation from-action="#{identity.logout}">
  +            <redirect view-id="/home.xhtml"/>
  +        </navigation>
  +
  +        <navigation from-action="#{hotelBooking.cancel}">
  +            <redirect view-id="/main.xhtml"/>
  +        </navigation>
  +        
  +    </page>
  +    
  +    <exception class="org.jboss.seam.security.NotLoggedInException">
  +        <redirect view-id="/home.xhtml">
  +            <message severity="warn">You must be logged in to use this feature</message>
  +        </redirect>
  +    </exception>
  +
  +</pages>
  
  
  
  1.6       +78 -84    jboss-seam/examples/icefaces/resources/WEB-INF/web.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: web.xml
  ===================================================================
  RCS file: web.xml
  diff -N web.xml
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ web.xml	1 Oct 2007 16:15:51 -0000	1.6
  @@ -0,0 +1,120 @@
  +<?xml version="1.0" encoding="UTF-8"?>
  +<web-app version="2.5"
  +    xmlns="http://java.sun.com/xml/ns/javaee"
  +    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  +    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  +  
  +    <!-- Seam (using Icefaces) generated project-->
  +    
  +    <!-- listeners required for this application --> 
  +   <listener>
  +      <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  +   </listener>
  +    
  +   <listener>
  +      <listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
  +   </listener>
  +     
  + <!-- filters -->
  +    <servlet>
  +        <servlet-name>Seam Resource Servlet</servlet-name>
  +        <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
  +    </servlet>
  +    
  +    <servlet-mapping>
  +        <servlet-name>Seam Resource Servlet</servlet-name>
  +        <url-pattern>/seam/resource/*</url-pattern>
  +    </servlet-mapping>
  +    
  +    <filter>
  +        <filter-name>Seam Filter</filter-name>
  +        <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
  +    </filter>
  +
  +    <filter-mapping>
  +        <filter-name>Seam Filter</filter-name>
  +        <url-pattern>/*</url-pattern>
  +    </filter-mapping>
  +    
  +    <!-- JSF -->
  +     
  +   
  +   <!-- Facelets development mode (disable in production) -->
  +   <context-param>
  +      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  +      <param-value>server</param-value>
  +   </context-param>
  +    
  +   <context-param>
  +      <param-name>facelets.DEVELOPMENT</param-name>
  +      <param-value>true</param-value>
  +   </context-param>
  +    
  +    <context-param>
  +        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  +        <param-value>.xhtml</param-value>
  +    </context-param>
  +    
  +    <context-param>
  +        <param-name>com.icesoft.faces.actionURLSuffix</param-name>
  +        <param-value>.seam</param-value>
  +    </context-param>
  +
  +    <context-param>
  +        <param-name>com.icesoft.faces.synchronousUpdate</param-name>
  +        <param-value>false</param-value>
  +    </context-param>
  +
  +    <context-param> 
  +        <param-name>com.icesoft.faces.doJSFStateManagement</param-name>
  +	    <param-value>true</param-value>
  +    </context-param> 
  +
  +    <context-param>
  +        <param-name>com.icesoft.faces.standardRequestScope</param-name>
  +        <param-value>true</param-value>
  +    </context-param>
  +
  + <!-- servlets -->
  +   <servlet>
  +        <servlet-name>Faces Servlet</servlet-name>
  +        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  +        <load-on-startup>1</load-on-startup>
  +    </servlet>
  +
  +  <servlet>
  +        <servlet-name>Persistent Faces Servlet</servlet-name>
  +        <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
  +        <load-on-startup> 1 </load-on-startup>
  +    </servlet>
  +    <servlet>
  +        <servlet-name>Blocking Servlet</servlet-name>
  +        <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
  +        <load-on-startup> 1 </load-on-startup>
  +    </servlet>  
  +    
  +
  +<!-- servlet mappings -->
  +   <servlet-mapping>
  +        <servlet-name>Persistent Faces Servlet</servlet-name>
  +        <url-pattern>*.seam</url-pattern>
  +     </servlet-mapping>
  +
  +     <servlet-mapping>
  +        <servlet-name>Persistent Faces Servlet</servlet-name>
  +        <url-pattern>/xmlhttp/*</url-pattern>
  +    </servlet-mapping>
  +    
  +    <!-- Blocking Servlet Mapping -->
  +    <servlet-mapping>
  +        <servlet-name>Blocking Servlet</servlet-name>
  +        <url-pattern>/block/*</url-pattern>
  +    </servlet-mapping>
  +             
  +    <session-config>
  +        <session-timeout>10</session-timeout> 
  +    </session-config>    
  +
  +
  +</web-app>
  +
  
  
  



More information about the jboss-cvs-commits mailing list