<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                              "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
    <navigation-rule>
        <from-view-id>/Login.jsp</from-view-id>
        <navigation-case>
            <from-outcome>recuperar_password</from-outcome>
            <to-view-id>/RecuperarPassword.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>erro</from-outcome>
            <to-view-id>/Erro.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_seguranca</from-outcome>
            <to-view-id>/FormSeguranca.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_rh</from-outcome>
            <to-view-id>/FormRH.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_hs</from-outcome>
            <to-view-id>/FormHS.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_medico</from-outcome>
            <to-view-id>/FormMedico.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>create_user</from-outcome>
            <to-view-id>/FichaUtilizador.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/RecuperarPassword.jsp</from-view-id>
        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/FormSeguranca.jsp</from-view-id>
        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>analise_acidente</from-outcome>
            <to-view-id>/AnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>view_analise</from-outcome>
            <to-view-id>/ViewAnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>user</from-outcome>
            <to-view-id>/FichaUtilizador.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/FormRH.jsp</from-view-id>
        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>analise_acidente</from-outcome>
            <to-view-id>/AnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>view_analise</from-outcome>
            <to-view-id>/ViewAnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>user</from-outcome>
            <to-view-id>/FichaUtilizador.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/FormHS.jsp</from-view-id>
        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>analise_acidente</from-outcome>
            <to-view-id>/AnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>view_analise</from-outcome>
            <to-view-id>/ViewAnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>user</from-outcome>
            <to-view-id>/FichaUtilizador.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/FormMedico.jsp</from-view-id>
        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>analise_acidente</from-outcome>
            <to-view-id>/AnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>view_analise</from-outcome>
            <to-view-id>/ViewAnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>user</from-outcome>
            <to-view-id>/FichaUtilizador.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/AnaliseAcidenteTrabalho.jsp</from-view-id>
        <navigation-case>
            <from-outcome>load_image</from-outcome>
            <to-view-id>/LoadImage.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_seguranca</from-outcome>
            <to-view-id>/FormSeguranca.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_rh</from-outcome>
            <to-view-id>/FormRH.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_hs</from-outcome>
            <to-view-id>/FormHS.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_medico</from-outcome>
            <to-view-id>/FormMedico.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>user</from-outcome>
            <to-view-id>/FichaUtilizador.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/LoadImage.jsp</from-view-id>
        <navigation-case>
            <from-outcome>analise_acidente</from-outcome>
            <to-view-id>/AnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/FichaUtilizador.jsp</from-view-id>
        <navigation-case>
            <from-outcome>form_seguranca</from-outcome>
            <to-view-id>/FormSeguranca.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_rh</from-outcome>
            <to-view-id>/FormRH.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_hs</from-outcome>
            <to-view-id>/FormHS.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_medico</from-outcome>
            <to-view-id>/FormMedico.jsp</to-view-id>
        </navigation-case>        
        <navigation-case>
            <from-outcome>analise_acidente</from-outcome>
            <to-view-id>/AnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>view_analise</from-outcome>
            <to-view-id>/ViewAnaliseAcidenteTrabalho.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/ViewAnaliseAcidenteTrabalho.jsp</from-view-id>
        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/Login.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>user</from-outcome>
            <to-view-id>/FichaUtilizador.jsp</to-view-id>
        </navigation-case> 
        <navigation-case>
            <from-outcome>form_seguranca</from-outcome>
            <to-view-id>/FormSeguranca.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_rh</from-outcome>
            <to-view-id>/FormRH.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>form_hs</from-outcome>
            <to-view-id>/FormHS.jsp</to-view-id>
        </navigation-case>        
        <navigation-case>
            <from-outcome>form_medico</from-outcome>
            <to-view-id>/FormMedico.jsp</to-view-id>
        </navigation-case>                
    </navigation-rule>
</faces-config>
