title: Set confirmation link parameter in bean using PrettyFaces
body: <p>I'm trying to send an email confirmation link in JSF 2.0.  The correct link is sending to the user's email without any problems, but I'm struggling to have the link redirect to the correct page when the user clicks on it.  I am trying to use pretty faces for URL mapping.</p>
  
  <p>The confirmation link looks something like:</p>
  
  <p><code>/confirm?param=1xfib3e</code></p>
  
  <p>My code in pretty faces:</p>
  
  <pre><code>&lt;url-mapping id="confirm"&gt;
      &lt;pattern value="/confirm?param=#{ iid : emailConfirmation.param}" /&gt;
      &lt;action&gt;#{emailConfirmation.confirmationLink}&lt;/action&gt;
  &lt;/url-mapping&gt;
  </code></pre>
  
  <p>I've also tried changing <code>{ iid : emailConfirmation.param}</code> to <code>{emailConfirmation.param}</code> and <code>{ param : emailConfirmation.param}</code></p>
  
  <p>and I've tried</p>
  
  <pre><code>&lt;url-mapping id="confirm"&gt;
      &lt;pattern value="/confirm" /&gt;
      &lt;query-param name="param"&gt;#{emailConfirmation.param}&lt;/query-param&gt;
      &lt;action&gt;#{emailConfirmation.confirmationLink}&lt;/action&gt;
  &lt;/url-mapping&gt;
  </code></pre>
  
  <p>I also have a RequestScoped bean that looks something like:</p>
  
  <pre><code>    @Named("emailConfirmation")
      @RequestScoped
      public class EmailConfirmation implements Serializable{
  
          private String param;
          ....
          public String confirmationLink() {
                log("param value: " + param);
          }
  
          public String getParam() {
             return param;
          }
  
          public void setParam(String param) {
             this.param = param;
         }
  
  }
  </code></pre>
  
  <p>Whenever the user clicks on the link right now, the param value is null. How is this caused and how can I solve it?</p>