olá,etou tendo um problema com o restfaces,quando eu clico no link ele so dá java.lang.NullPointerException.nen executa o beanNão sei mais o que fazer,ja verifiquei tudo e continua com esse erro maldito!!,se alguem puder me dar uma dica seria mt bom!!!,
minha pagina esta assim:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://restfaces.dev.java.net" prefix="rest"%>
<%@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">
<%--
This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h:form id= "um">
<h1><h:outputText value="JavaServer Faces" /></h1>
<rest:link value="teste">
<f:param name="id" value="1"/>
<h:outputText value="testae!!"/>
</rest:link>
</h:form>
</body>
</html>
</f:view>
meu bean>esta [code]
/*
- To change this template, choose Tools | Templates
- and open the template in the editor.
*/
package br.com.noob;
import org.restfaces.annotation.HttpAction;
import org.restfaces.annotation.Param;
/**
*
-
@author Administrador
*/
public class NoobBean {/** Creates a new instance of NoobBean */
public NoobBean() {
}@HttpAction(value="pesquisarCliente", pattern="cliente/{id}")
public String getCliente(@Param("id") long id){return "faces/cliente.jsp";
}
}
[/code]
facesConfig
<?xml version='1.0' encoding='UTF-8'?>
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config version="1.2"
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_1_2.xsd">
<navigation-rule>
<from-view-id>/welcomeJSF.jsp</from-view-id>
<navigation-case>
<from-outcome>teste</from-outcome>
<to-view-id>/cliente.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<application>
<view-handler>
org.restfaces.application.RestViewHandler
</view-handler>
<navigation-handler>
org.restfaces.application.RestNavigationHandler
</navigation-handler>
</application>
<managed-bean>
<managed-bean-name>NoobBean</managed-bean-name>
<managed-bean-class>br.com.noob.NoobBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/cliente.jsp</from-view-id>
<navigation-case>
<from-outcome>reload</from-outcome>
<to-view-id>/cliente.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>