Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Jsf the Hibernate query is called twice?  RSS feed

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

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?

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