[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P

chuaky do-not-reply at jboss.com
Fri Sep 15 10:31:28 EDT 2006


8.  Add the facelets support in .\booking\resources\WEB-INF\faces-config.xml, see below:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE faces-config 
  |     PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
  |     "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
  |     
  | <faces-config>
  | 
  |     <!-- Navigation rules for the Booking demo app -->
  | 
  |     <navigation-rule>
  | 
  |         <navigation-case>
  |             <from-outcome>login</from-outcome>
  |             <to-view-id>/home.xhtml</to-view-id>
  |             <redirect />
  |         </navigation-case>
  |         
  |         <navigation-case>
  |             <from-outcome>register</from-outcome>
  |             <to-view-id>/register.xhtml</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>password</from-outcome>
  |             <to-view-id>/password.xhtml</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>main</from-outcome>
  |             <to-view-id>/main.xhtml</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>hotel</from-outcome>
  |             <to-view-id>/hotel.xhtml</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |     </navigation-rule>
  | 
  |     <navigation-rule>
  | 
  |         <from-view-id>/hotel.xhtml</from-view-id>
  | 
  |         <navigation-case>
  |             <from-outcome>book</from-outcome>
  |             <to-view-id>/book.xhtml</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |     </navigation-rule>
  | 
  |     <navigation-rule>
  | 
  |         <from-view-id>/book.xhtml</from-view-id>
  | 
  |         <navigation-case>
  |             <from-outcome>confirm</from-outcome>
  |             <to-view-id>/confirm.xhtml</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |     </navigation-rule>
  | 
  |     <navigation-rule>
  | 
  |         <from-view-id>/confirm.xhtml</from-view-id>
  | 
  |         <navigation-case>
  |             <from-outcome>confirmed</from-outcome>
  |             <to-view-id>/main.xhtml</to-view-id>
  |             <redirect/>
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>back</from-outcome>
  |             <to-view-id>/book.xhtml</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |     </navigation-rule>
  | 
  |     <!-- Facelets support -->
  | 
  |     <application>
  |         <view-handler>com.sun.facelets.FaceletPortletViewHandler</view-handler>
  |     </application>
  | 
  |     <lifecycle>
  |         <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePortletPhaseListener</phase-listener>
  |     </lifecycle>
  | 
  | </faces-config>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971934#3971934

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971934



More information about the jboss-user mailing list