title: Initializng a Backing Bean With Parameters on Page Load with JSF 2.0
body: <p>I am trying to initialize a backing bean on page load. Already looked for many solutions, but most of them are using links,buttons or not having parameters at all.</p>
  
  <p><strong>scenario:</strong>
  A customer logins to a site and then should see all of his data on the following page.</p>
  
  <p><strong>backing beans:</strong> </p>
  
  <ol>
  <li><p><em>loginDetailsController</em> - to support
  login process. Can access user's
  password and username. Backing bean
  for Login.xhtml.</p></li>
  <li><p><em>customerController</em> - to access the
  rest of user details. It also has a customer_id field. It is the Backing bean
  for Home.xhtml. It is possible to initialize customerController entirely from customer_id.</p></li>
  </ol>
  
  <p>On Home.xhtml it is possible to get customer_id this way:</p>
  
  <pre><code> #{loginDetailsController.customer_id}
  </code></pre>
  
  <p>Is there a way to initialize customerController with the above value on page load?</p>
  
  <p>Regards,</p>
  
  <p>Daniel</p>