-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello I need to make a grid with checkbox anyone have any examples of how to do this? would like both. zul as java, I appreciate the help already provided.
Thanks.
Sorry, maybe I didn't got your question properly, but here are examples for a checkbox in a grid:
ZUL-Version:
<zk> <grid> <rows> <row> Checkbox: <checkbox /> </row> </rows> </grid> </zk>
Java-Version:
<window id="container"> <zscript> Row row = new Row(); row.appendChild(new Label("Checkbox")); row.appendChild(new Checkbox()); Rows rows = new Rows(); rows.appendChild(row); Grid grid = new Grid(); grid.appendChild(rows); container.appendChild(grid); </zscript> </window>
HTH, Maik
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>
Asked: 2011-04-10 21:16:22 +0800
Seen: 373 times
Last updated: Apr 11 '11