coloque os outro código ai por favor…deixa eu ver se posso te ajudar…valew
Segue ai o codigo completo do meu JSP. Meu projeto ta rodando no TomCat e o Netbeans me aponta essa mensagem na abertura da tag “<rich:dataTable” mais precisamente no “#”
<%@ page contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<html>
<head>
<title>Consulta de contas</title>
<link rel="stylesheet" type="text/css" href="../CSS/estilo.css" />
</head>
<body>
<f:view>
<h:form id="frm">
<h1><h:outputText value="Consulta de contas" /></h1>
<h:messages layout="table" showSummary="true" showDetail="false"
globalOnly="true" styleClass="msgErro" infoClass="msgInfo"
style="font-weight: bold" />
<rich:dataTable value="#{consultaContaBean.contas}" var="item" width="790px">
<rich:column sortBy="#{item.tipo}" width="20px" style="text-align: center">
<f:facet name="header">
<h:outputText value="Tipo"/>
</f:facet>
<h:graphicImage value="/imagens/receita.png" title="Conta a receber" rendered="#{item.tipo eq 'RECEITA'}"/>
<h:graphicImage value="/imagens/despesa.png" title="Conta a pagar" rendered="#{item.tipo eq 'DESPESA'}"/>
</rich:column>
<rich:column sortBy="#{item.pessoa.nome}" width="200px">
<f:facet name="header">
<h:outputText value="Pessoa"/>
</f:facet>
<h:outputText value="#{item.pessoa.nome}"/>
</rich:column>
<rich:column sortBy="#{item.descricao}">
<f:facet name="header">
<h:outputText value="Descrição"/>
</f:facet>
<h:outputText value="#{item.descricao}"/>
</rich:column>
<rich:column sortBy="#{item.valor}" width="100px"
style="text-align: center">
<f:facet name="header">
<h:outputText value="Valor"/>
</f:facet>
<h:outputText value="#{item.valor}"
style="color: #{item.tipo eq 'RECEITA' ? 'blue'
: 'red'}">
<f:convertNumber minFractionDigits="2"
currencyCode="BRL" type="currency"/>
</h:outputText>
</rich:column>
<rich:column sortBy="#{item.dataVencimento}" width="100px"
style="text-align: center">
<f:facet name="header">
<h:outputText value="Vencimento"/>
</f:facet>
<h:outputText value="#{item.dataVencimento}">
<f:convertDateTime pattern="dd/MM/yyyy"/>
</h:outputText>
</rich:column>
<rich:column width="80px" style="text-align: center">
<f:facet name="header">
<h:outputText value="Aberta"/>
</f:facet>
<h:outputText value="#{item.dataBaixa == null
? 'Sim' : 'Não'}"/>
</rich:column>
<rich:column width="40px" style="text-align: center">
<f:facet name="header">
<h:outputText value="Ações"/>
</f:facet>
<h:commandLink action="#{consultaContaBean.excluir}">
<f:setPropertyActionListener value="#{item}"
target="#{consultaContaBean.contaExclusao}"/>
<h:graphicImage value="/imagens/excluir.png"
title="Excluir" styleClass="imagemLink"/>
</h:commandLink>
<h:commandLink action="cadastroConta">
<f:setPropertyActionListener value="#{item}"
target="#{cadastroContaBean.contaEdicao}"/>
<h:graphicImage value="/imagens/editar.png"
title="Editar" styleClass="imagemLink"/>
</h:commandLink>
</rich:column>
</rich:dataTable>
<br />
<h:commandLink action="#{cadastroContaBean.inicializar}" styleClass="linkComEspaco">
<h:outputText value="Nova conta" />
</h:commandLink>
<h:commandLink action="menu">
<h:outputText value="Menu do sistema" />
</h:commandLink>
</h:form>
</f:view>
</body>
</html>
Stack Trace
org.apache.jasper.JasperException: /contas/consultaConta.jsp(18,37) #{..} is not allowed in template text
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:102)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:713)
org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:958)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1736)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:183)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)