title: Jsf2 view parameters and viewscoped beans
body: <p><br/>
  How can I access the view parameters from a viewscoped bean? <br/>
  I have a page almost with the same content as this:<br/></p>
  
  <pre><code>&lt;f:metadata&gt;
      &lt;f:viewParam name="name" value="#{goToUserpageRequest.name}" /&gt;
  &lt;/f:metadata&gt;
  
  &lt;ui:define name="content"&gt;
      &lt;h:outputText value="#{user.name}" styleClass="text"&gt;&lt;/h:outputText&gt;
      &lt;h:outputText value="#{user.description}" styleClass="text"&gt;&lt;/h:outputText&gt;
  &lt;/ui:define&gt;
  </code></pre>
  
  <p>GoToUserpageRequest is a bean which I use to redirect to this page, so I can send the value for name.<br/>
  User is my viewscoped bean. I want to pass the value of viewParam name to user.name. How can I do that?<br/>
  Thanks in advance!</p>