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-Select-All-or-Reload-Grid-tp3456685p3457355.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 the grid to AjaxRequestTarget,
> so target.addComponent(grid) is not necessary
> +++
> Regards
> --
> Marc Nuri
> 
> On Mon, Apr 18, 2011 at 10:15, GJT <taulant.gju...@helvetic.com>
> wrote:
> 
>> 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(grid)). That's what I mean with refresh.
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456877.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3457237.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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(grid)). That's what I mean with refresh. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456877.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Inmethod Grid Select All or Reload Grid

2011-04-17 Thread 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 to
implement hashCode in the model. After that it worked, but the grid didn't
refresh anymore after I had changed the model. 

To sum up, if I use the hashCode, I the table doesn't refresh after I change
the model. If I don't use hashCode, the selection doesn't work properly.

The code for hashCode() and equals I'm using:

  public int hashCode() {
 return new Long(id).hashCode();
  }

  public boolean equals(final Object obj) {
 if (obj == this) {
return true;
 } else if (obj == null) {
return false;
 } else if (obj instanceof DetachableModel) {
DetachableModel other = (DetachableModel) obj;
return other.id == this.id;
 }
 return false;
  }

Thanks for your help.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inmethod-Grid-Select-All-or-Reload-Grid-tp3456685p3456685.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



after user closes application

2010-12-10 Thread GJT

Hi all..

I want to do something after (before) the user closes the wicket
application. How can I do that? I've found out that there was a method caled
renderOnBeforeUnloadJavascript.. but it doesn't exist anymore..

thx for your help

your Swiss buddy
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/after-user-closes-application-tp3081536p3081536.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DatePicker for a DropDownChoice

2010-11-15 Thread GJT

It works!! Thx a lot. I didn't know that there is a HiddenField component in
wicket.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DatePicker-for-a-DropDownChoice-tp3042941p3042992.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DatePicker for a DropDownChoice

2010-11-15 Thread GJT

Hi

I'm new in Wicket. I have 3 DropDownChoices for a date (day, month and
year). Now, I want to add a DatePicker for these 3 DropDownChoices. Is that
possible? I have no idea how to do that. I've tried several things, but with
no success.

Thx
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DatePicker-for-a-DropDownChoice-tp3042941p3042941.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org