Galera ao iniciar minha página index.xhtml está apresentando o seguinte erro
Warning: This page calls for XML namespace declared with prefix link but no taglibrary exists for that namespace.
Esse erro não aparece no console e sim no <p:growl então deve ser alguma coisa na página será?
Cabazzo
#2
Coloca o código do teu index pra gente poder ver qual o problema com a taglibrary.
Caso vocÊ precise, aqui eu mostro um hello world de JSF: JSF - Hello World, AutoComplete
Está parecendo que em seu projeto está faltando as libs ou tem xml errado. [=
Vamos lá
applicationContext.xml
~<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
<context:component-scan base-package="com.br.isdra.sgc.controller" annotation-config="true" />
<context:annotation-config />
<!-- ********************************************* -->
<!-- View Scope -->
<!-- ********************************************* -->
<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
<property name="scopes">
<map>
<entry key="view">
<bean class="com.br.isdra.sgc.spring.ViewScope"/>
</entry>
</map>
</property>
</bean>
</beans>
faces-config.xml
<?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>
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
<system-event-listener>
<system-event-listener-class>com.br.isdra.sgc.spring.ViewScopeCallbackRegistrar</system-event-listener-class>
<system-event-class>javax.faces.event.PostConstructViewMapEvent</system-event-class>
<source-class>javax.faces.component.UIViewRoot</source-class>
</system-event-listener>
<system-event-listener>
<system-event-listener-class>com.br.isdra.sgc.spring.ViewScopeCallbackRegistrar</system-event-listener-class>
<system-event-class>javax.faces.event.PreDestroyViewMapEvent</system-event-class>
<source-class>javax.faces.component.UIViewRoot</source-class>
</system-event-listener>
</application>
</faces-config>
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>chamados</display-name>
<!-- ********************************************* -->
<!-- Spring -->
<!-- ********************************************* -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext.xml
/WEB-INF/conexao.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<!-- ********************************************* -->
<!-- JSF -->
<!-- ********************************************* -->
<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>*.xhtml</url-pattern>
</servlet-mapping>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>resources.application</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>redmond</param-value>
</context-param>
<!-- ********************************************* -->
<!-- Aplicacao -->
<!-- ********************************************* -->
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
index.xml
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//Dp:column XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/Dp:column/xhtml1-strict.dp:column">
<html xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:ui="http://java.sun.com/jsf/facelets" lang="pt-br">
<h:head>
<title>SGC - Gestão de Chamados</title>
<link rel="shortcut icon" href="imagens/isdra.ico"></link>
<style type="text/css">
.degrade {
width: 100%;
height: 100%;
background: -moz-linear-gradient(left top 315deg, orange, yellow 30%, white 100%); /*para o Firefox*/
background: -webkit-gradient(linear, left top, right bottom, from(orange), color-stop(30%, yellow), color-stop(40%, white)); /*para navegores Webkit*/
opacity:0.75;-moz-opacity: 0.75;filter: alpha(opacity=75);
border:none;
}
.ui-layout-unit-top .ui-layout-bd {
border: 0;
}
.ui-layout-unit-center .ui-layout-bd {
border: 0;
}
.img-menu-monitor{
background-image: url('imagens/monitor.png');
width: 16px;
height: 16px;
}
.img-menu-chamados{
background-image: url('imagens/chamados.png');
width: 16px;
height: 16px;
}
.img-menu-configuracao{
background-image: url('imagens/configuracao.png');
width: 16px;
height: 16px;
}
.img-menu-relatorio{
background-image: url('imagens/relatorio.png');
width: 16px;
height: 16px;
}
</style>
</h:head>
<h:body>
<f:view encoding="UTF-8">
<p:growl showDetail="true" id="messages"/>
<p:layout fullPage="true">
<p:layoutUnit position="top" height="38" resizable="false" closable="false" collapsible="false" styleClass="degrade">
<h:graphicImage url="imagens/topo.png" />
</p:layoutUnit>
<p:layoutUnit id="centro" position="center" scrollable="true" style="font-size:7pt;" >
<h:form>
<p:growl id="messages"/>
<p:menubar autoSubmenuDisplay="true">
<p:submenu label="Chamados" icon="img-menu-chamados">
<p:submenu label="Configurações" icon="img-menu-configuracao">
<p:menuitem value="Cadastrar Projetos" actionListener="#{menuController.mostrarProjeto}" action="#{projetoController.carregaLista}" update="centro" />
<p:menuitem value="Cadastrar Status" onclick="mostraStatus()"/>
<p:menuitem value="Cadastrar Classes" actionListener="#{menuController.mostrarClasse}" action="#{classeController.carregaLista}" update="centro" />
<p:menuitem value="Cadastrar Equipes" onclick="mostraEquipe()"/>
<p:menuitem value="Cadastrar Prioridades" onclick="mostraPrioridade()"/>
<p:menuitem value="Cadastrar Departamentos" onclick="mostraDepartamento()"/>
</p:submenu>
<p:menuitem value="Listar Chamados" url="#" />
<p:menuitem value="Cadastrar Chamado" url="#" />
</p:submenu>
<p:submenu label="Monitores" icon="img-menu-monitor">
<p:menuitem value="Monitor Técnicos" url="#" ></p:menuitem>
<p:menuitem value="Monitor Atendimentos" url="#" ></p:menuitem>
</p:submenu>
<p:submenu label="Relatórios" icon="img-menu-relatorio">
<p:menuitem value="Horas Trabalhadas" url="#" />
<p:menuitem value="Horas Trabalhadas Sintético" url="#" />
<p:menuitem value="Demonstrativo Horas" url="#" />
<p:menuitem value="Diário Atividades" url="#" />
</p:submenu>
</p:menubar>
</h:form>
<p:panel style="border:0px;">
<ui:insert name="menu">
<ui:include src="/WEB-INF/projeto/projeto.xhtml" />
</ui:insert>
</f:view>
<script type="text/javascript">
jQuery(document).ready(function($) {
function loginRequest(xhr, status, args) {
if (args.loggedIn == true) {
log.hide();
}
}
});
</script>
</h:body>
</html>
Minhas libs
antlr-runtime-3.0.jar
classes12.jar
commons-dbcp.jar
commons-logging-1.1.1.jar
commons-pool.jar
jcommon-1.0.16.jar
jfreechart-1.0.13.jar
jsf-api.jar
jsf-impl.jar
jstl-1.1.2.jar
org.springframework.asm-3.1.0.RC2.jar
org.springframework.beans-3.1.0.RC2.jar
org.springframework.context.support-3.1.0.RC2.jar
org.springframework.context-3.1.0.RC2.jar
org.springframework.core-3.1.0.RC2.jar
org.springframework.expression-3.1.0.RC2.jar
org.springframework.jdbc-3.1.0.RC2.jar
org.springframework.transaction-3.1.0.RC2.jar
org.springframework.web-3.1.0.RC2.jar
primefaces-2.2.1.jar
redmond.jar
Aparentemente era só acrescentar que resolveu
xmlns="http://www.w3.org/1999/xhtml"
Vlw galera