title: Cant display values from a bean method into <table>
body: <p>I have this problem. i implemented this table in my xhtml:</p>
  
  <pre><code>              &lt;table id="tbResult" class="table table-bordered table-striped"&gt;
                  &lt;thead&gt;
                  &lt;tr&gt;
                    &lt;th&gt;#{msg.Sgc001tbcod}&lt;/th&gt;
                    &lt;th&gt;Browser&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;/thead&gt;
  
                  &lt;tfoot&gt;
                  &lt;tr&gt;
                    &lt;th&gt;Rendering engine&lt;/th&gt;
                    &lt;th&gt;Browser&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;/tfoot&gt;
                &lt;/table&gt;
  </code></pre>
  
  <p>And this select on my BEAN:</p>
  
  <pre><code>public void select(int first, int pageSize, String sortField, Object filterValue) throws SQLException, ClassNotFoundException, NamingException {
  
                      //System.out.println("entre al metodo SELECT"); 
                      Context initContext = new InitialContext();     
                      DataSource ds = (DataSource) initContext.lookup(JNDI);
                      con = ds.getConnection();       
  
                      //Consulta paginada
                   String query = "SELECT * FROM"; 
                      query += "(select query.*, rownum as rn from";
                      query += "(SELECT A.CODIGO, A.DESCR ";
                      query += " FROM PRUEBA1 A";
                      query += " GROUP BY A.CODIGO, A.DESCR";
                      query += ")query ) " ;
                      query += " WHERE ROWNUM &lt;="+pageSize;
                      query += " AND rn &gt; ("+ first +")";
                      query += " ORDER BY  " + sortField.replace("z", "");
  
                  pstmt = con.prepareStatement(query);
                  //System.out.println(query);
  
                  r =  pstmt.executeQuery();
  
                  while (r.next()){
                  Prueba select = new Prueba();
                  select.setZcodigo(r.getString(1));
                  select.setZdesc(r.getString(2));
  
                      //Agrega la lista
                      list.add(select);
                  }
                  //Cierra las conecciones
                  pstmt.close();
                  con.close();
  
                  }
  </code></pre>
  
  <p>How can i make it so that i can display the values of the Select() method in the table?</p>
  
  <p>so far i havent made any progress.</p>