title: ViewParam vs @ManagedProperty(value = "#{param.id}")
body: <p>What is the difference between defining View Params like this:</p>
  <pre><code>&lt;f:metadata&gt;
    &lt;f:viewParam name=&quot;id&quot; value=&quot;#{someBean.id}&quot;/&gt;
  &lt;/f:metadata&gt;
  </code></pre>
  <p>And defining the property in the ManagedBean like this:</p>
  <pre><code>@Inject @ManagedProperty(value = &quot;#{param.id}&quot;)
  private Integer id;
  </code></pre>