title: Jsf / Spring request scoped bean
body: <p>As I don't have much experience in javaee programming and hasve noone to ask, i would like ask you.
  I have one thing in my code that i don't like and think it's implemented in wrong way.
  My managed bean are request scoped. in jsf i use rich:pickList which takes data from list.</p>
  
  <pre><code>@Scope("request")
  public class MyBean{
       private List&lt;String&gt; sourceList;
       ....     
  
       public List&lt;String&gt; getsourceList() {
              //if (sourceList == null)    &lt;--- Has no sence in request scoped bean
               { sourceList = service.loadList();
               }
               return sourceList;
       }
  
  ....
  
  }
  </code></pre>
  
  <p>I have also submit button which store some data. </p>
  
  <p>The problem is, that each time when the page do some actions (e.g. clicking submit button) this get method is invoked every time and goes to service layer, then to dao and to database. It obviously seems to be not correct solution.
  How to avoid it?
  Thanks' for you answers.</p>