<?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">

	<application>
		<variable-resolver>org.springframework.web.jsf.SpringBeanVariableResolver</variable-resolver>
	</application>

	<navigation-rule>	
		<from-view-id>/main/reviewHotel.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>book</from-outcome>
			<to-view-id>/booking/enterBookingDetails.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	
	<navigation-rule>
		<from-view-id>/booking/reviewBooking.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>revise</from-outcome>
			<to-view-id>/booking/enterBookingDetails.xhtml</to-view-id>
		</navigation-case>
		<navigation-case>
			<from-outcome>confirm</from-outcome>
			<to-view-id>/main/enterSearchCriteria.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	
	<navigation-rule>
		<navigation-case>
			<from-outcome>cancel</from-outcome>
			<to-view-id>/main/enterSearchCriteria.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	
	<lifecycle>
		<phase-listener>org.springframework.faces.support.RequestLoggingPhaseListener</phase-listener>
	</lifecycle>
	
</faces-config>