scriptaculous SortableListView

2010-06-27 Thread Sebastian Gabriel
Hello, My problem is that I have multiple SortableListViews, all of them work fine, but I want to have the ability to drag the items between the different ListView also. I have tried to work with SortableListViews an DragTargets but then I can't sort the list furthermore I don't know how to

Re: inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-27 Thread Sam Zilverberg
vov: adding this behavior doesn't solve the problem. with this behavior the ddc never reaches the getDataGrid().setRowsPerPage(newSelection); line in the code.

Re: inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-27 Thread Sam Zilverberg
I've remove the filter-form and toolbar to see if they affect this situation, sadly they dont. When the rows-per-page DDC is outside the toolbar (and outside the grid markup) choosing a value will correctly change the DDC's model object and then the grid is rendered again using the correct DDC

Dependent Models

2010-06-27 Thread Andrei Razin
Hello. I have a problem: 1.There are 3 forms on the Page: GroupsForm, UsersForm, DocumentsForm. Each of them reflects a Dcorrespoding Domain object and supposed to have a Model. 2.Functionality: Selecting a Group in GroupsForm should force other 2 forms to show a list of corresponding

Re: Dependent Models

2010-06-27 Thread Martin Makundi
Do you use hollywood principle? ** Marti 2010/6/27 Andrei Razin rukusv...@hotmail.com: Hello. I have a problem: 1.There are 3 forms on the Page: GroupsForm, UsersForm, DocumentsForm. Each of them reflects a Dcorrespoding Domain object and supposed to have a Model. 2.Functionality:

Re: Dependent Models

2010-06-27 Thread Andrei Razin
Martin. Thanks for reply. 1. Yes, I think I do use Hollywood principle. The children do not call Parent. So, I do not call Form method from the other Form (through Parent hierarchy) 2. I also do not have references to the Parent (Page, Panel) inside the Form. 3. I try to synchronize forms

Re: Dependent Models

2010-06-27 Thread Martin Makundi
Hi! 1. Yes, I think I do use Hollywood principle. The children do not call Parent. I think you have it the wrong way around. The dependants should call the parent to ask status. Otherwise you have the parents running all around trying to find all the dependants. It's easier for the dependants

Re: Dependent Models

2010-06-27 Thread Andrei Razin
Martin. Thanks for clarification. This will solve the problem for sure and I'll continue this way. The only problem I can envision is - it will make the children not reusable. They will have the references to the parent (Page or/and Panel) and to use them on another page I have to modify the

Re: Dependent Models

2010-06-27 Thread Andrei Razin
One more thing. Just forgot to mention: If I implement the proper interfaces in Parent objects, that will help to make children component reusable. Thanks again for the idea. Andrei. -- View this message in context: