title: JSF : how to display search results?
body: <p>i want to implement a small search engine , i have index page where user enter search keyword then he redirected to search results page so how to display the search results since they are dynamically generated
  i am using lucene and i have this page implemented in jsp (i want to redesign it in jsf) :</p>
  
  <pre><code>&lt;p style=" color: green"&gt; &lt;%=Srchr.HitsCount() %&gt; Searching result(s) for :  &lt;%= SearchText %&gt;
  &lt;p&gt;------------------------------------------------------------------
  &lt;% for (int i = 0 ; i&lt;Srchr.HitsCount() ; i++){ %&gt;
       &lt;p&gt; &lt;%= (i+1) %&gt; : &lt;a href=   &lt;%= Srchr.getHits()[i]  %&gt; &gt; &lt;%= Srchr.getHits()[i] %&gt; &lt;/a&gt;
  </code></pre>
  
  <p>where srchr is the searcher class that access lucene db.</p>
  
  <p>please help me .</p>
  
  <p>thanks </p>