Re: Using a checkbox in a grid component

2011-12-19 Thread Paulo Ricardo Ribeiro
Hello, I'm trying to add a Select All / Select None button at the end (or top) of the grid. I'll, probably create a mixin to do so, but, since i don't want to reinvent the wheel, I'm wondering if there's a simple way to do it. Cheers, Paulo Ricardo -- View this message in context:

Re: Using a checkbox in a grid component

2011-12-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Dec 2011 09:04:30 -0200, Paulo Ricardo Ribeiro paulo.rica...@gmail.com wrote: Hello, Hi! I'm trying to add a Select All / Select None button at the end (or top) of the grid. I'll, probably create a mixin to do so, but, since i don't want to reinvent the wheel, I'm

Re: Using a checkbox in a grid component

2011-12-19 Thread antalk
You could checkout my Tapestry Module : Weaves, it has a 'improved' grid component with paging and checkboxes per row and also a 'checkall' box. See: http://intercommitweavesdemo.intercommit.cloudbees.net/pagedgriddemo for demo And: https://github.com/intercommit/Weaves for code -- View this

Re: Using a checkbox in a grid component

2011-12-19 Thread Paulo Ricardo Ribeiro
Olá Thiago :) and Hello Antalk I've just looked to the demo, and it appears to be exactly what I'm looking for. Thank you both for your help Cheers, (e um abraço :)) Paulo Ricardo On Mon, Dec 19, 2011 at 11:38 AM, antalk [via Tapestry] ml-node+s1045711n5085856...@n5.nabble.com wrote: You

RE: Using a checkbox in a grid component

2009-08-11 Thread Alfie Kirkpatrick
As Sebastian points out if the boolean selected field is part of your pojo it is trivial to bind this to a checkbox in the grid. This was my initial approach for simplicity but in my case the pojos were Hibernate entities and I didn't want this field to be persisted or to clutter up the entity as

Re: Using a checkbox in a grid component

2009-08-11 Thread Geoff Callender
Here's a working example of a similar technique. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1 HTH, Geoff On 11/08/2009, at 7:24 PM, Alfie Kirkpatrick wrote: As Sebastian points out if the boolean selected field is part of your pojo it

Re: Using a checkbox in a grid component

2009-08-10 Thread Sebastian Hennebrueder
Scot Mcphee schrieb: Hello Does any one have a short recipe how to use a checkbox in a grid component? What I need to do is fairly simple - let the use select (for example) three of five available options presented in a grid component, and submit their selections, which are then processed. A

Re: Using a checkbox in a grid component

2009-08-10 Thread raucha
You might not even need any chenillekit on this. I use: t:parameter name=nameCell t:checkbox t:id=name t:value=row.name/ /t:parameter Sebastian Hennebrueder wrote: Scot Mcphee schrieb: Hello Does any one have a short recipe how to use a checkbox in a grid component? What I need

Re: Using a checkbox in a grid component

2009-08-10 Thread Scot Mcphee
On 10/08/2009, at 23:22 , raucha wrote: You might not even need any chenillekit on this. I use: t:parameter name=nameCell t:checkbox t:id=name t:value=row.name/ /t:parameter Yes indeed. In the end I got this to work t:grid source=contacts row=contact p:selectedcell

Re: Using a checkbox in a grid component

2009-08-10 Thread Thiago H. de Paula Figueiredo
Em Mon, 10 Aug 2009 21:42:56 -0300, Scot Mcphee scot.mcp...@gmail.com escreveu: BTW Is there any effective difference in using the t:parameter name=propertynameCell style versus the p:propertynameCell style of controlling the cell render? No difference. t:parameter name=property was the