<?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://xmlns.jcp.org/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_3.xsd"
    version="2.3">
  <application>
    <locale-config>
      <default-locale>en</default-locale>
      <supported-locale>en_US</supported-locale>
      <supported-locale>en_GB</supported-locale>
      <supported-locale>de</supported-locale>
      <supported-locale>de_DE</supported-locale>
      <supported-locale>de_AT</supported-locale>
      <supported-locale>de_CH</supported-locale>
      <supported-locale>es</supported-locale>
      <supported-locale>ja</supported-locale>
      <supported-locale>ja_JP</supported-locale>
      <supported-locale>ru</supported-locale>
      <supported-locale>ru_RU</supported-locale>
      <supported-locale>zh</supported-locale>
      <supported-locale>zh_TW</supported-locale>
    </locale-config>
    <resource-bundle>
      <base-name>org.apache.myfaces.tobago.example.demo.DemoBundle</base-name>
      <var>demoBundle</var>
    </resource-bundle>
    <resource-bundle>
      <base-name>org.apache.myfaces.tobago.example.demo.CharlottevilleBundle</base-name>
      <var>charlottevilleBundle</var>
    </resource-bundle>
    <resource-bundle>
      <base-name>org.apache.myfaces.tobago.example.demo.RoxboroughBundle</base-name>
      <var>roxboroughBundle</var>
    </resource-bundle>
    <resource-bundle>
      <base-name>org.apache.myfaces.tobago.example.demo.ScarboroughBundle</base-name>
      <var>scarboroughBundle</var>
    </resource-bundle>
    <resource-bundle>
      <base-name>org.apache.myfaces.tobago.example.demo.SpeysideBundle</base-name>
      <var>speysideBundle</var>
    </resource-bundle>
    <resource-bundle>
      <base-name>org.apache.myfaces.tobago.example.demo.StandardBundle</base-name>
      <var>standardBundle</var>
    </resource-bundle>
  </application>

  <lifecycle>
    <phase-listener>org.apache.myfaces.tobago.example.demo.SynchronizeNavigationPhaseListener</phase-listener>
    <phase-listener>org.apache.myfaces.tobago.example.demo.info.ActivityPhaseListener</phase-listener>
    <!--<phase-listener>org.apache.myfaces.tobago.util.DebugPhaseListener</phase-listener>-->
  </lifecycle>

  <converter>
    <converter-id>org.apache.myfaces.tobago.example.demo.OnOffConverter</converter-id>
    <converter-class>org.apache.myfaces.tobago.example.demo.OnOffConverter</converter-class>
  </converter>

  <!--  @FacesConverter(forClass = SolarObject.class)// XXX fixme: is not running with Quarkus!-->
  <converter>
    <converter-id>org.apache.myfaces.tobago.example.demo.SolarConverter</converter-id>
    <converter-class>org.apache.myfaces.tobago.example.demo.SolarConverter</converter-class>
  </converter>

<!--
  <factory>
    <exception-handler-factory>
      org.apache.myfaces.tobago.context.TobagoExceptionHandlerFactory
    </exception-handler-factory>
  </factory>
-->

</faces-config>
