Minhas Regras de Navegação com JSF so funcionam no internet explorer:

1 resposta
D

Eu estou fazendo um projeto com rich faces .As regras de navegação não funcionam no internet explorer.
E no mozila quando chega a uma pagina com tabbed Pane eu nãoconsigo mais sair da pagina .
Desde já agradeço :
Meu web.xml.

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

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
	 version="2.4">
                <filter>
      <filter-name>extensionsFilter</filter-name>
      <filter-class>
         org.apache.myfaces.component.html.util.ExtensionsFilter
      </filter-class>
   </filter>
   <filter-mapping>
      <filter-name>extensionsFilter</filter-name>
      <url-pattern>*.faces</url-pattern>
   </filter-mapping>
   <filter-mapping>
      <filter-name>extensionsFilter</filter-name>
      <url-pattern>/faces/*</url-pattern>
   </filter-mapping>


   <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
   </servlet-mapping>
 <!-- Configuração do AJAX4JSF -->
    <filter>
        <description>Rich Faces Filter</description>
        <filter-name>richfaces</filter-name>
        <filter-class>org.ajax4jsf.Filter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>richfaces</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    
    
    <!-- Configuração do Skinnability -->
    <context-param>
        
        <param-name>org.richfaces.SKIN</param-name>
        
        <param-value>blueSky</param-value>
        
    </context-param>
    

    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
	<welcome-file>
            index.jsp
        </welcome-file>
    </welcome-file-list>
</web-app>

E o faces config:

<?xml version="1.0"?>
<!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>
   
   
    
    <managed-bean>
        <managed-bean-name>alunoDAO</managed-bean-name>
        <managed-bean-class>prof.negocio.AlunoG</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <navigation-rule>       
        <navigation-case>
            <from-outcome>cadastro</from-outcome>
            <to-view-id>/prof/cadastro.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
     <navigation-rule>       
        <navigation-case>
            <from-outcome>gerenciar</from-outcome>
            <to-view-id>/prof/galuno.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
   <navigation-rule>       
        <navigation-case>
            <from-outcome>arquivo</from-outcome>
            <to-view-id>/prof/arquivo.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
        <navigation-rule>       
        <navigation-case>
            <from-outcome>agenda</from-outcome>
            <to-view-id>/prof/agenda.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
</faces-config>

1 Resposta

L

Tenta alterar o seu faces-config.xml adicionando o elemento , que especifica a página que
gerará o outcome. Por exemplo:

<?xml version="1.0"?>
<!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>       
        <navigation-case>
            <from-view-id>/prof/minhaPagina.jsp</from-view-id>
            <from-outcome>agenda</from-outcome>
            <to-view-id>/prof/agenda.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
</faces-config>
Criado 2 de dezembro de 2007
Ultima resposta 2 de dez. de 2007
Respostas 1
Participantes 2