<?xml version="1.0"?>

<!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 CONFIGURATION FILE ================================== -->

<faces-config>
    
	<application>
		<message-bundle>org.sakaiproject.tool.summarycalendar.bundle.Messages</message-bundle>
	    <locale-config>
	      <default-locale>en</default-locale>
		</locale-config>
	</application>
  
	<managed-bean>
		<description>Dynamic Resource Bundle Loader</description>
		<managed-bean-name>msgs</managed-bean-name>
		<managed-bean-class>org.sakaiproject.util.ResourceLoader</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
		<managed-property>
			<description>Bundle baseName</description>
			<property-name>baseName</property-name>
			<value>org.sakaiproject.tool.summarycalendar.bundle.Messages</value>
		</managed-property>
	</managed-bean>



  <!-- =================== Tool Beans ============== -->

	<managed-bean>
		<description>Calendar Bean</description>
		<managed-bean-name>CalBean</managed-bean-name>
		<managed-bean-class>org.sakaiproject.tool.summarycalendar.ui.CalendarBean</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<description>Preferences Bean</description>
		<managed-bean-name>PrefsBean</managed-bean-name>
		<managed-bean-class>org.sakaiproject.tool.summarycalendar.ui.PrefsBean</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<description>Menu Bean</description>
		<managed-bean-name>MenuBean</managed-bean-name>
		<managed-bean-class>org.sakaiproject.tool.summarycalendar.ui.MenuBean</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	
	
	<navigation-rule>
          <from-view-id>/summary-calendar/*</from-view-id>

          <navigation-case>
            <from-outcome>calendar</from-outcome>
            <to-view-id>/summary-calendar/calendar.jsp</to-view-id>
            <redirect/>
          </navigation-case>

          <navigation-case>
            <from-outcome>prefs</from-outcome>
            <to-view-id>/summary-calendar/prefs.jsp</to-view-id>
            <redirect/>
          </navigation-case>
    </navigation-rule>

</faces-config>
