title: @ManagedProperty(value = "#{param.id}") in a non-request Scope Bean
body: <p>I need to pass a parameter (POST) to a @managedBean, I used managed properties like this:</p>
  
  <pre><code>@ManagedProperty(value = "#{param.id}")
  private int id;
  </code></pre>
  
  <p>And the scope of the Bean is ViewScope</p>
  
  <p>I end up with this error: </p>
  
  <blockquote>
    <p>Unable to create managed bean receipt. The following problems were found: - The scope of the object referenced by expression #{param.id}, request, is shorter than the referring managed beans scope of view</p>
  </blockquote>
  
  <p>What can I do?</p>
  
  <p><strong>arjan take a look:</strong></p>
  
  <p>My page:
  
  
  
    
      Facelet Title
    
    </p>
  
  <pre><code>&lt;form method="post" action="faces/index.xhtml"&gt;
    &lt;input name="id" value="4" /&gt;
    &lt;input type="submit" value="submit" /&gt;
  &lt;/form&gt;
  
  &lt;h:form&gt;
    &lt;h:commandLink value="click" action="index"&gt;
      &lt;f:param id="id" name="id" value="20"/&gt;
    &lt;/h:commandLink&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>
  </p>