Re: multipage grid with "select all" button

2010-04-16 Thread Norman Franke
I've actually done things like this for queries and adding a query to a list of items to process. I have a checkbox to select all on the screen, which is just pure Prototype javascript. I then have a link called "add entire query" that re-runs the query and adds the results to the queue. Wo

Re: multipage grid with "select all" button

2010-04-16 Thread Andreas Andreou
that's the fun part with cookies - you dont have to make them interact during form submittion - they are sent to the server on every request (even images, e.t.c. of course that also has pitfalls... and explains why most high traffic sites choose to server resources from a cookieless (sub)domain)!

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> i've done something like this once (outside tapestry) using cookies to store > the selections (which were basically the entity ids) - then added some js > to make each checkbox checked if needed. > This keeps each page's selections fine. > Additionally, as soon as a page's checkboxes are all ch

Re: multipage grid with "select all" button

2010-04-15 Thread Andreas Andreou
i've done something like this once (outside tapestry) using cookies to store the selections (which were basically the entity ids) - then added some js to make each checkbox checked if needed. This keeps each page's selections fine. Additionally, as soon as a page's checkboxes are all checked, i w

Re: multipage grid with "select all" button

2010-04-15 Thread Matheus Eduardo Machado Moreira
2010/4/15 Thiago H. de Paula Figueiredo > On Thu, 15 Apr 2010 10:38:19 -0300, Yury Luneff wrote: > > yes, sure, but you can't select elements by class that are physically >> not on this page now (another page of grid, both inline=true or false) >> > > Why would you want to select something that

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> i guess i just need a persisted property on the page of default > selection value and use it in "get" property for checkbox value. And > change this property from action link or smth. A page reload, but it > seem to be right thing. It is almost ok, but when grid switches pages, noone on serve

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> i've meant not quite that, but it is close. The topic is "select all > button" -- select all once, then user deselects uninteresting rows. > For ex, there maybe 50 rows on two pages and user may want not to have > just 2 or 3 of them in the report. So he presses "select all", all of > 50 recor

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> On Thu, 15 Apr 2010 10:55:20 -0300, Yury Luneff wrote: >> I have rows i'd like to see in my report. Most probably, I would like >> to select them all, but perhaps I just need to drop out some >> uninteresting records (such as guys that already had their payment or >> so). So that user would dec

Re: multipage grid with "select all" button

2010-04-15 Thread Thiago H. de Paula Figueiredo
On Thu, 15 Apr 2010 10:55:20 -0300, Yury Luneff wrote: I have rows i'd like to see in my report. Most probably, I would like to select them all, but perhaps I just need to drop out some uninteresting records (such as guys that already had their payment or so). So that user would decide if he ne

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
Actually use case is something like that: I have rows i'd like to see in my report. Most probably, I would like to select them all, but perhaps I just need to drop out some uninteresting records (such as guys that already had their payment or so). So that user would decide if he needs that reco

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
i'll see if ioko-tapestry-commons/tapestry-mixins/ BoundCheckBox helps :) Other ideas are in great welcome. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.ap

Re: multipage grid with "select all" button

2010-04-15 Thread Thiago H. de Paula Figueiredo
On Thu, 15 Apr 2010 10:38:19 -0300, Yury Luneff wrote: yes, sure, but you can't select elements by class that are physically not on this page now (another page of grid, both inline=true or false) Why would you want to select something that is not shown? It seems quite error-prone and not in

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> Maybe the info is in this list, but I seem to be blind to that. > I want to make a grid of entities with checkbox column. That's easy -- > jumpstart proposes "set..." that is called for each row so I could see > what rows are selected. > But I want also something to select all rows in a grid an

multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
Maybe the info is in this list, but I seem to be blind to that. I want to make a grid of entities with checkbox column. That's easy -- jumpstart proposes "set..." that is called for each row so I could see what rows are selected. But I want also something to select all rows in a grid and select