Boa Noite a Todos,
Estou com um problema.
Quando clico nos links da minha página simplesmente os mesmos não chamam meu bean ou não executam nenhuma ação. Vão para uma página em branco.
E percebi quando retiro o rich:datatable e coloco o h:datatable os links funcionam.
Alguém pode me ajudar ??? Não sei mais oque fazer.
Segue meu código:
manutencaoClientes.xhtml<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:stella="http://stella.caelum.com.br/faces"
xmlns:rich="http://richfaces.ajax4jsf.org/rich"
lang="pt-br">
<ui:composition template="/template/template.xhtml">
<ui:define name="titulo">Sistema Padrao JSF</ui:define>
<ui:define name="esquerda">
<h:form id="links">
<rich:panelMenu mode="ajax" iconCollapsedGroup="chevronDown" width="95%" expandSingle="true">
<rich:panelMenuGroup label="Associados">
<rich:panelMenuItem>
<h:commandLink action="#{clientesController.novoCliente}" value = "Novo Associado" />
</rich:panelMenuItem>
<rich:panelMenuItem>
<h:commandLink action="manutencaoAssociados" value="Manutenção de Associado" />
</rich:panelMenuItem>
<rich:panelMenuItem>
<h:commandLink action="#{clientesController.novoCliente}" value = "Novo Associado" />
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuGroup label="Depedentes">
<rich:panelMenuItem>
<h:commandLink action="#{clientesController.novoCliente}" value = "Novo Associado" />
</rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenu>
</h:form>
</ui:define>
<ui:define name="conteudo">
<f:view>
<h:messages errorStyle="color: red" infoStyle="color: green" layout="list" style="font-weight:bold; font-family: verdana; font-size: 12px;">
</h:messages>
<h:form id="datatable">
<a4j:region>
<rich:toolBar height="32" itemSeparator="grid">
<rich:toolBarGroup>
<h:outputText value="Manutenção de Associados" />
</rich:toolBarGroup>
</rich:toolBar>
<rich:dataTable width="100%" id="cliList" var="cli" rows="20" columnClasses="col" value="#{clientesController.todosClientes}">
<f:facet name="header">
<rich:columnGroup>
<h:column>
<h:outputText styleClass="headerText" value="Nome" />
</h:column>
<h:column>
<h:outputText styleClass="headerText" value="CPF" />
</h:column>
<h:column>
<h:outputText styleClass="headerText" value="Telefone" />
</h:column>
<h:column>
<h:outputText styleClass="headerText" value="Data Nasc." />
</h:column>
<h:column>
<h:outputText styleClass="headerText" value="Excluir" />
</h:column>
</rich:columnGroup>
</f:facet>
<h:column>
<h:outputText value="#{cli.nome}" />
</h:column>
<h:column>
<h:outputText value="#{cli.cpf}" />
</h:column>
<h:column>
<h:outputText value="#{cli.telefone_01}" />
</h:column>
<h:column>
<h:outputText value="#{cli.data_nascimento}">
<f:convertDateTime pattern="dd/MM/yyyy" />
</h:outputText>
</h:column>
<h:column>
<h:commandLink action="#{clientesController.novoCliente}" value = "Novo Associado" />
</h:column>
</rich:dataTable>
<f:facet name="start">
<h:graphicImage value="/images/ajax-loader.gif" />
</f:facet>
</a4j:region>
<h:commandButton value="Voltar" immediate="true" action="#{clientesController.novoCliente}" styleClass="botoes"/>
</h:form>
</f:view>
</ui:define>
</ui:composition>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude"
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_1_2.xsd">
<!-- Gerencia o Admin -->
<managed-bean>
<managed-bean-name>clientesController</managed-bean-name>
<managed-bean-class>
br.com.bluesky.business.controller.ClientesController
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<!-- Gerencia os Skins -->
<managed-bean>
<managed-bean-name>skinBean</managed-bean-name>
<managed-bean-class>br.com.bluesky.util.SkinBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>currentSkin</property-name>
<value>blueSky</value>
</managed-property>
</managed-bean>
<!-- Gerencia os Combos do Sistema -->
<managed-bean>
<managed-bean-name>combos</managed-bean-name>
<managed-bean-class>br.com.bluesky.util.Combos</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<!-- Gerencia os Validação de Formularios -->
<managed-bean>
<managed-bean-name>valida</managed-bean-name>
<managed-bean-class>br.com.bluesky.util.Valida</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<!-- Navegação -->
<navigation-rule>
<from-view-id>/crud/adicionarClientes.xhtml</from-view-id>
<navigation-case>
<from-outcome>sucesso</from-outcome>
<to-view-id>/home.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/*</from-view-id>
<navigation-case>
<from-outcome>formCliente</from-outcome>
<to-view-id>/crud/adicionarClientes.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>manutencaoAssociados</from-outcome>
<to-view-id>/crud/manutencaoClientes.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>
</faces-config>