title: richfaces suggestionBox passing additional values to backing bean
body: <p>When using the RichFaces <code>suggestionBox</code> how can you pass more than one id or value from the page with the text input to the <code>suggestionBox</code> backing bean.  ie: to show a list of suggested cities within a selected state?  Here is my <code>autoComplete</code> method.</p>
  
  <pre><code>public List&lt; Suburb &gt; autocomplete(Object suggest)
  {
      String pref = (String) suggest;
      ArrayList&lt; Suburb &gt; result = new ArrayList&lt; Suburb &gt;();
  
      Iterator&lt; Suburb &gt; iterator = getSuburbs().iterator();
      while( iterator.hasNext() )
      {
          Suburb elem = ((Suburb) iterator.next());
          if( (elem.getName() != null &amp;&amp; elem.getName().toLowerCase().indexOf( pref.toLowerCase() ) == 0) || "".equals( pref ) )
          {
              result.add( elem );
          }
      }
      return result;
  }
  </code></pre>
  
  <p>As you can see there is one value passed from the page, <code>Object</code> suggest, which is the text of the <code>h:inputText</code> (in the faceLets <code>m:textFormRow</code>)</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;m:textFormRow id="suburb" label="#{msgs.suburbPrompt}" 
      property="#{bean[dto].addressDTO.suburb}"
      required="true" maxlength="100" size="30" /&gt;
  
  &lt;rich:suggestionbox height="200" width="200" usingSuggestObjects="true"
      suggestionAction="#{suburbsMBean.autocomplete}" var="suburb" for="suburb"
      fetchValue="#{suburb.name}" id="suggestion"&gt;
      &lt;h:column&gt;
          &lt;h:outputText value="#{suburb.name}" /&gt;
      &lt;/h:column&gt;
  &lt;/rich:suggestionbox&gt;
  </code></pre>
  
  <p>Earlier in the page you can select a state which I'd like to use to pare down the list of suburbs that the suggestion box displays. </p>