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 !=
.
}
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
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.
>
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
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
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
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
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
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
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
10 matches
Mail list logo