<?xml version="1.0" encoding="UTF-8"?>

<!--
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->

<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>
    <locale-config>
      <default-locale>en</default-locale>
      <supported-locale>de</supported-locale>
      <supported-locale>es</supported-locale>
      <supported-locale>ja</supported-locale>
    </locale-config>
  </application>

  <factory>
    <exception-handler-factory>
      org.apache.myfaces.tobago.example.test.TestExceptionHandlerFactory
    </exception-handler-factory>
  </factory>

  <managed-bean>
    <managed-bean-name>browser</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.DirectoryBrowser</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>clientConfig</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.ClientConfigController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>in</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.InBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>inputSuggest</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.InputSuggestController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>immediate</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Immediate</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>hidden</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Hidden</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>upload</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Upload</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>measureBean</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.MeasureBean</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>selectBooleanCheckboxBean</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.SelectBooleanCheckboxBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>selectManyListboxBean</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.SelectManyListboxBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>selectItemModel</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.SelectItemModel</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>reload</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Reload</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>sheet</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.SheetController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>sort</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.SheetSortController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>tree</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.TreeController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>zIndex</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.ZIndexController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>trueAndFalseList</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.TrueAndFalseList</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>partially</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Partially</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>attribute</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Attribute</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>popupModalAttribute</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.PopupModalAttribute</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>popupData</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.PopupData</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>progress</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Progress</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>tobago1041</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Tobago1041</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>tobago1134</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Tobago1134</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>shuttle</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Shuttle</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>scriptEvent</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.ScriptEvent</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>resourceBean</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.ResourceBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>errorTest</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.ErrorTest</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>version</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Version</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>dynamic</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.DynamicBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>panel1</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.DynamicPanel1</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>panel2</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.DynamicPanel2</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>panel3</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.DynamicPanel3</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>popupReference</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.PopupReferenceController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>messages</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.Messages</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <managed-bean-name>dateController</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.DateController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <navigation-rule>
    <navigation-case>
      <from-outcome>navigation</from-outcome>
      <to-view-id>/navigation.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
      <from-outcome>/test/file/file.xhtml</from-outcome>
      <to-view-id>/test/file/file.xhtml</to-view-id>
    </navigation-case>
  </navigation-rule>

  <!-- Wizard -->

  <managed-bean>
    <managed-bean-name>wizardController</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.tobago.example.test.FilterController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>

  <navigation-rule>
    <from-view-id>/tf/wizard/navi/*</from-view-id>
    <navigation-case>
      <from-outcome>index</from-outcome>
      <to-view-id>/tf/wizard/navi/index.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
      <from-outcome>filter</from-outcome>
      <to-view-id>/tf/wizard/navi/filter.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
      <from-outcome>fileIntoCondition</from-outcome>
      <to-view-id>/tf/wizard/navi/fileIntoCondition.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
      <from-outcome>forwardCondition</from-outcome>
      <to-view-id>/tf/wizard/navi/forwardCondition.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
      <from-outcome>finish</from-outcome>
      <to-view-id>/tf/wizard/navi/finish.xhtml</to-view-id>
    </navigation-case>
  </navigation-rule>

</faces-config>
