title: JSF navigation parameter dependency
body: <p>I'm trying to implement this simple example in JSF: There is a user.xhtml page which can be accessed with an <em>id</em> parameter (user.xhtml?id=3 / user.xhtml?id=12). Depending on the id The page should display the info of the user who has that specified id.</p>
  
  <pre><code>@ManagedBean
  @RequestScoped
  public class OverviewController extends BaseController{
  
  private UserDetails details;
  
  @PostConstruct
  @SuppressWarnings("unused")
  private void init(){
      Integer userId = getIntegerParam(Constants.PARAMETER_USER); //this brings the value of the user parameter as an Integer
      if (userId != null){
          UserService userService = new UserService();
          details = userService .getDetails(userId);
      }
  }
  
  //GET &amp; SET
  </code></pre>
  
  <p>}</p>
  
  <p>In the xhtml file I have the followings:</p>
  
  <pre><code>&lt;div&gt;
      Name: #{overviewController.details.name}
      City: #{overviewController.details.city}
  &lt;/div&gt;
  </code></pre>
  
  <p>The link which guided the control here:</p>
  
  <pre><code>&lt;h:link outcome = "user.xhtml" value = "details"&gt;
      &lt;f:param name = "user" value = "2"&gt;
  &lt;/h:link&gt;
  </code></pre>
  
  <p>I was under the impression that when accessing the overviewController via EL the ManagedBean will get Constructed and in the @PostConstruct the <em>details</em> would get initialised. But I get no results and the overviewController isn't even constructed.
  I'm going further with my question and I ask how can a search depending on multiple parameters or a sort can be implemented?</p>