Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF invoking methods multiple times  RSS feed

 
tapan maheshwari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using JSF-myfaces, the logs shows that methods written in backing beans are invoked multiple times(2/3 times) thereby degrading the performance.
is this something to do with JSF life cycles?
Has anyone faced this problem, please let me know
 
Tim Holloway
Bartender
Posts: 18705
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is normal - it has to do with how the framework operates and it shouldn't be a major performance issue for the simple reason that JSF property setters and getters should be exactly that - property setters and getters, not entry points to application logic.

Aside from the overhead, this multiple-call feature also means that if you place code that has side effects in it, you can seriously damage the internal state of your app.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!