Revision history [back]

click to hide/show revision 1
initial version

answered 2011-04-11 09:30:56 +0800

cristianrm gravatar image cristianrm

Bold Texthttp://www.zkoss.org/zkdemo/grid/paging

I am following this example, I have a method that would populate the list, the problem that has no error but returns nothing. I think the problem is the completion of each, someone can tell me what I'm doing right?

public List<Biblioteca> listaBibliotecaCop() {

        List<Biblioteca> lBibliotecas = new ArrayList<Biblioteca>();

        try {
            lBibliotecas = DAOFactory.getDAOFactory().getBibliotecaDAO().pesquisaBibliotecaCopia(instituicao.getCodigo());

        } catch (SQLException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            logger.error(e.getMessage(), e);
        } catch (ConexaoRecusadaException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            logger.error(e.getMessage(), e);
        }

        return lBibliotecas;

    }


 <row forEach="${listaBibliotecaCop}">
            <label value="${each}" />
            <timebox cols="12" format="a hh:mm:ss" onCreate="self.value = new Date()" mold="rounded" />
            <checkbox label="No" onCheck='self.label= self.isChecked()?"Yes" : "No" ' />
        </row>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More