Reputation: 39
Here is my managed bean class :
package JSFinwis;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean(name="authentificationBean")
@RequestScoped
public class authentificationBean implements Serializable {
List<clientBean> clients = new ArrayList<clientBean>();
private static final long serialVersionUID = 1L;
public authentificationBean() {
super();
clients.add(new clientBean("X","Y","Z","T","W",new Date("1995-31-03")));
}
public List<clientBean> getClients()
{
return this.clients;
}
}
However, I am getting this error :
com.sun.faces.mgbean.ManagedBeanCreationException: Impossible d’instancier la classe «JSFinwis.authentificationBean».
How can I solve this ?
Upvotes: 0
Views: 1637
Reputation: 17337
Some hints:
super();
in your constructor. remove that. Your class doesn't extends anything.clientBean
managed ? If so you shouldn't instantiate it yourself.Upvotes: 1