Caros,
Resolvi migrar do netbeans para eclipse 3.7.
Só que me deparei com o seguinte problema:
Quando uso annotations '@ManagedBean(name = "testeMB")' minha JSP não tá auto completando para o referido MB, porem se escrevo 'na mão' funciona.
Porem se eu não uso annotation e infomo o managedBean no faces-config.xml ele auto completa.
É assim mesmo no eclipse?
Obs: Usando Ubuntu11.04+Eclipse3.7+Mojarra2.0.3+JSTL.
package managedBeans;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean(name = "testeMB")
@RequestScoped
public class TesteManagedBean {
private String teste = "Valor vindo do MB";
public String getTeste() {
return teste;
}
public void setTeste(String teste) {
this.teste = teste;
}
}
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h:outputText value="Valor direto na JSP" />
<br />
<h:outputText value="#{testeMB.teste}" />
</f:view>
</body>
</html>
Grato a todos!