title: f:viewParam with multiple values
body: <p>I have a <code>&lt;f:viewParam&gt;</code> driven search screen. I am trying to implement it to take multiple values for a single <code>&lt;f:viewParam&gt;</code>.</p>
  
  <p>I believe the correct URL would look something like</p>
  
  <pre><code>&lt;url&gt;?state=COMPLETE&amp;state=PENDING
  </code></pre>
  
  <p>The XHTML section is as follows:</p>
  
  <pre><code>&lt;f:metadata&gt;
     &lt;f:viewParam name="state"
        value="#{backingBean.state}"
        converter="#{stateNameConverter}" /&gt;
  &lt;/f:metadata&gt;
  </code></pre>
  
  <p>I have tried the following 2 method signatures on backingBean:</p>
  
  <pre><code>public void setState(State... state)
  </code></pre>
  
  <p>Was hopeful that JSF implementation would build an array for the values and set on the backing bean. JSF implementation failed with error stating it cannot convert enum to array of enums.</p>
  
  <pre><code>public void setState(State state)
  </code></pre>
  
  <p>Thought that maybe the JSF implementation would set the converted values as it found them in the URL. Only the first value was set.</p>
  
  <p>The <code>stateNameConverter</code> converts between <code>String</code> and <code>enum</code> value.</p>
  
  <p>Is it possible to have multiple values for <code>&lt;f:viewParam&gt;</code> in JSF 2?</p>