aspose file tools
The moose likes JSF and the fly likes how to solve faces.el.EvaluationException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "how to solve faces.el.EvaluationException" Watch "how to solve faces.el.EvaluationException" New topic
Author

how to solve faces.el.EvaluationException

gopal kishan
Ranch Hand

Joined: Feb 23, 2005
Posts: 99
Hi ,

I want to use JSF with hibernate, i configured everything.

In my backing bean i define a method :
public String add() {
if(title!=null){

Session session = HibernateUtil.getSessionFactory().getCurrentSession();
//currentSession();
session.beginTransaction();
Event theEvent = new Event();
theEvent.setTitle(title);
theEvent.setDate(date);
session.save(theEvent);
session.getTransaction().commit();
return "success";
}
else {
return "failure";

}
}

i configured in faces-config.xml also.when i run the application , i am getting ,


please let me know what is the error, i have getter setter, and mapping file everything.

thanks in advance
Kishan
Sudhakar Ponnazhagan
Greenhorn

Joined: Feb 07, 2004
Posts: 4
You must implement JSF helper class with Hibernate Bean for JSF layer.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to solve faces.el.EvaluationException
 
Similar Threads
Hibernte Error
Design benefits of creating Sessionfactory in an utility class
EVENTS is not mapped [FROM EVENTS]
why not ?
Abstract Generic Class for DAO with spring SessionFactory injection setup help needed.