Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Jsf the Hibernate query is called twice?  RSS feed

 
Sahil Saxena
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my appplication I am using jsf/spring/hibernate but when i execute a query which fetch all the products i found out that the query is executed twice due to which an illegalstate exception is thrown,if the managed bean of JSF is in request scope.

If i change the scope to session it doesnt throw any exception but still the query is executed twice.

Does anyone know why this thing happens?

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!