view src/main/webapp/WEB-INF/faces-config.xml @ 0:7682c04c63a8

First commit of the source code!
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Tue, 10 Mar 2015 14:50:41 +0100
parents
children
line wrap: on
line source

<?xml version='1.0' encoding='UTF-8'?>
<faces-config 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-facesconfig_2_0.xsd"
         version="2.0">
  	
    <lifecycle>
    	<phase-listener>de.mpiwg.web.jsf.PhaseTracker</phase-listener>
    </lifecycle>   
  
    <managed-bean>
      <managed-bean-name>sessionBean</managed-bean-name>
      <managed-bean-class>de.mpiwg.web.SessionBean</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    
    <managed-bean>
      <managed-bean-name>appBean</managed-bean-name>
      <managed-bean-class>de.mpiwg.web.ApplicationBean</managed-bean-class>
      <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>   
    
    <navigation-rule>
    	<navigation-case>
    		<from-outcome>branchEditor</from-outcome>
    		<to-view-id>/home/branchEditor.xhtml</to-view-id>
    		<redirect/>
    	</navigation-case>  
		<navigation-case>
    		<from-outcome>searchPage</from-outcome>
    		<to-view-id>/home/searchPage.xhtml</to-view-id>
    		<redirect/>
    	</navigation-case>      	
    	<navigation-case>
    		<from-outcome>fileCreator</from-outcome>
    		<to-view-id>/home/createNewFile.xhtml</to-view-id>
    		<redirect/>
    	</navigation-case>    
    	<navigation-case>
    		<from-outcome>home</from-outcome>
    		<to-view-id>/home/mainPage.xhtml</to-view-id>
    		<redirect/>
    	</navigation-case>  	
    </navigation-rule>

</faces-config>