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

lazy initialization and jsf  RSS feed

 
Anthony Sykes
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am trying to use lazy initialization with BackingBean. I would like to have the following scenario occur, a user hits the page for the first time and the bean is loaded from the database. When the user posts information to the page, the bean should not be loaded from the database. The problem is that when I use RequestBeans, the beanY instance variable is always null at the point the getBeanY is called after the post occurs. Every time. This renders this technique mentioned below unusable. If I am saving the viewstate why would this always be null. I am thoroughly confused? Can someone please tell me what I am doing wrong?


 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Anthony, please do not duplicate post. This is the same question you asked last week here
http://www.coderanch.com/t/213233/JSF/java/jsf-lazy-initialization

There is a response there, please keep your discussion on this topic there. I am going to close this thread.

Thanks

Mark
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!