faces-config.xml 3.65 KB
<?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>
		<resource-bundle>
			<base-name>fi.insomnia.bortal.resources.i18n</base-name>
			<var>i18n</var>
		</resource-bundle>
		<message-bundle>fi.insomnia.bortal.resources.i18n</message-bundle>
		<!-- Legal Country codes: http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm -->
		<!-- Assigned Country codes: -->
		<!-- Insomnia: IN (INDIA) -->
		<!-- Stream: ST (SAO TOME AND PRINCIPE ) -->
		<!-- Vector VE (VENEZUELA, BOLIVARIAN REPUBLIC OF) -->
		<locale-config>
			<default-locale>fi_FI</default-locale>
			<supported-locale>fi_fi_XII</supported-locale>
			<supported-locale>en_ST_v7</supported-locale>
		</locale-config>
	</application>

	<navigation-rule>
		<from-view-id>/role/create.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>roleCreated</from-outcome>
			<to-view-id>/role/edit.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<from-view-id>/user/list.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>userEdit</from-outcome>
			<to-view-id>/user/edit.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<from-view-id>/user/edit.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>userSave</from-outcome>
			<to-view-id>/user/edit.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<from-view-id>/role/list.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>roleEdit</from-outcome>
			<to-view-id>/role/edit.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>

	<navigation-rule>
		<from-view-id>*</from-view-id>
		<navigation-case>
			<from-outcome>frontpage</from-outcome>
			<to-view-id>/news/frontpage.xhtml</to-view-id>
		</navigation-case>
		<navigation-case>
			<from-outcome>userprefs</from-outcome>
			<to-view-id>/news/edit.xhtml</to-view-id>
		</navigation-case>
		<navigation-case>
			<from-outcome>shopfrontpage</from-outcome>
			<to-view-id>/product/createBill.xhtml</to-view-id>
		</navigation-case>
		<navigation-case>
			<from-outcome>adminfront</from-outcome>
			<to-view-id>/admin/frontpage.xhtml</to-view-id>
		</navigation-case>

		<navigation-case>
			<from-outcome>permissionDenied</from-outcome>
			<to-view-id>/permissionDenied.xhtml</to-view-id>
		</navigation-case>
		<navigation-case>
			<from-outcome>viewExpired</from-outcome>
			<to-view-id>/viewExpired.xhtml</to-view-id>
		</navigation-case>
		<navigation-case>
			<from-outcome>logout</from-outcome>
			<to-view-id>/auth/logout.xhtml</to-view-id>
		</navigation-case>
		<navigation-case>
			<from-outcome>loginSuccess</from-outcome>
			<to-view-id>/NotImplementedYet.xhtml</to-view-id>
		</navigation-case>
		<navigation-case>
			<from-outcome>loginFailed</from-outcome>
			<to-view-id>/NotImplementedYet.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<from-view-id>/role/edit.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>roleSaved</from-outcome>
			<to-view-id>/role/edit.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
	
	<from-view-id>/product/createBill.xhtml</from-view-id>
	<navigation-case>
		<from-outcome>success</from-outcome>
		<to-view-id>/bill/list.xhtml</to-view-id>
	</navigation-case>
	</navigation-rule>
	<factory>
		<exception-handler-factory>fi.insomnia.bortal.exceptions.BortalExceptionHandlerFactory</exception-handler-factory>
	</factory>
</faces-config>