Problemas com Myfaces 1.2.0 no GlassFish attribute binding does not accept any expressions

1 resposta
R

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:

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
		<f:view>
			<h:form>
				<h:inputText binding="#{index.nome}"></h:inputText>
				<h:commandButton actionListener="#{index.teste}"></h:commandButton>
			&lt;/h:form&gt;This is my JSP page. <br>
		&lt;/f:view&gt;		
  &lt;/body&gt;
&lt;/html&gt;

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?

1 Resposta

W

Más notícias rafaelmeireles!

Espero que alguém mais experiente me corrija se estiver errado, mas segundo esse post ( http://forums.sun.com/thread.jspa?threadID=5177707&tstart=270) é salutar não esperar uma solução muito trivial e sim uma gambiarra de alguém bem conhecedor do servidor pra realizar tal tarefa.

Eu também estou precisando fazer isso porque minha app faz uso do componente tomahawk schedule e não conheço um substituto. Se glaum sober por favor posta pra mim.

Agora, uma pergunta, não é um absurdo isso? um servidor obrigar a gente usar uma determinada implementação?

t+

Criado 18 de setembro de 2007
Ultima resposta 3 de dez. de 2008
Respostas 1
Participantes 2