Vote count:
0
my app is cosist:
index.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://ift.tt/kkyg93">
<html xmlns="http://ift.tt/lH0Osb"
xmlns:h="http://ift.tt/J1LPWj"
xmlns:f="http://ift.tt/19DXC4H"
xmlns:p="http://ift.tt/HjFrZc">
<h:head>
<title>Date Input of Users</title>
</h:head>
<body>
<p:fieldset legend="name of home">
<!-- form to insert a user data -->
<h:form>
<b>name of User:</b>
<h:inputText value="#{home.name}"/><br/>
<p:commandButton action="#{home.res}" ajax="false"
value="Save" /> <!-- button to save -->
<p />
</h:form>
</p:fieldset>
</body>
</html>
my bean is -> package prova;
import javax.annotation.ManagedBean; import javax.faces.bean.SessionScoped;
@SessionScoped @ManagedBean
public class Home {
//fields
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
//change a page
public String res(){
return ("results");
}
}
but when click a button of save , my server tomcat return a error and not a page the error is: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'home' resolved to null
thanks all and sorry of my english
asked 39 secs ago
JSF javax.el.PropertyNotFoundException: Target Unreachable, identifier 'home' resolved to null
Aucun commentaire:
Enregistrer un commentaire