Re: Inmethod Grid Select All or Reload Grid

2011-04-20 Thread Marc Nuri San Félix
Hello. Of course, objects updated in the database shouldn't be equal to those previously displayed in the table (they aren't equal). If you don't comply to this you'll have problems not only with inmehtod grid. The equals method of my beans always include at least this: if (this.id !=

RE: Inmethod Grid Select All or Reload Grid

2011-04-20 Thread Chris Colman
. } Hmmm, I'll try that first thing tomorrow morning when I hit the office. >-Original Message- >From: Attila Király [mailto:kiralyattila...@gmail.com] >Sent: Tuesday, 19 April 2011 3:26 AM >To: users@wicket.apache.org >Subject: Re: Inmethod Grid Select All or Rel

Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Attila Király
Can you provide a minimal example webapp showing the problem? Attila 2011/4/18 GJT > After debugging, I found out the with the hashCode method, the columns > don't > load. If I take out the hashCode method, the columns loads the data again. > But as I said, the selection doesn't work anymore. >

Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Marc Nuri San Félix
For what you're saying, I believe you've got something messed up in your Bean's hashCode and equals method. Inmethod's Datagrid keeps a Set (HashSet) of IModel objects to keep track of which items are selected. If you've implemented correctly the equals method in your bean and believe that there's

Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread GJT
After debugging, I found out the with the hashCode method, the columns don't load. If I take out the hashCode method, the columns loads the data again. But as I said, the selection doesn't work anymore. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Sel

Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Marc Nuri San Félix
Have you debugged your project to see if the IDatasource is queried when you perform the Ajax reload?? If you reload the page does the data update?? -- Marc Nuri On Mon, Apr 18, 2011 at 13:19, GJT wrote: > I tried that before and I tried it again, but it doesn't work. I think the > problem is so

Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread GJT
I tried that before and I tried it again, but it doesn't work. I think the problem is somewhere with my LoadableDetachableModel which contains a constructor, equals(Object), hashCode() and load() Marc Nuri wrote: > > Try this: > +++ > grid.markAllItemsDirty(); > grid.update(); // <- This adds th

Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Marc Nuri San Félix
Try this: +++ grid.markAllItemsDirty(); grid.update(); // <- This adds the grid to AjaxRequestTarget, so target.addComponent(grid) is not necessary +++ Regards -- Marc Nuri On Mon, Apr 18, 2011 at 10:15, GJT wrote: > I am using wicket 1.4.16 and inmethod-grid 1.4.17 > > For example, I have a lis

Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread GJT
I am using wicket 1.4.16 and inmethod-grid 1.4.17 For example, I have a list of flights. I select every flight I want to change. So I press a button which opens a modal window. There I change the times of the selected flights. After saving, the table should load the new data (target.addComponent(g

Re: Inmethod Grid Select All or Reload Grid

2011-04-18 Thread Attila Király
2011/4/18 GJT > Hi there > > I started using the Inmethod DataGrid because I need resizable tables and I > need to be able to select multi entries. > > First, I had the problem that I couldn't select all entries and the multi > select didin't work properly. In this forum I found out that I have t