Pessoal estou tentando rodar uma aplicação JSF com o MyFaces 1.2.0 no Glassfish e quando tento acessar a aplicação da o seguinte erro:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /index.jsp(28,4) According to TLD or attribute directive in tag file, attribute binding does not accept any expressions
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server Platform Edition 9.0_01 logs.
abaixo o codigo do jsp:
view plaincopy to clipboardprint?
1. <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
2. <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
3. <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
4. <%
5. String path = request.getContextPath();
6. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
7. %>
8.
9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
10. <html>
11. <head>
12. <base href="<%=basePath%>">
13.
14. <title>My JSP 'index.jsp' starting page</title>
15. <meta http-equiv="pragma" content="no-cache">
16. <meta http-equiv="cache-control" content="no-cache">
17. <meta http-equiv="expires" content="0">
18. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
19. <meta http-equiv="description" content="This is my page">
20. <!--
21. <link rel="stylesheet" type="text/css" href="styles.css">
22. -->
23. </head>
24.
25. <body>
26. <f:view>
27. <h:form>
28. <h:inputText binding="#{index.nome}"></h:inputText>
29. <h:commandButton actionListener="#{index.teste}"></h:commandButton>
30. </h:form>This is my JSP page. <br>
31. </f:view>
32. </body>
33. </html>
se tirar o bind do input text ele da erro no actionListener, ou seja onde tenha expression language ta dando erro.
Alguem sabe o que pode ser isso?[/code]