You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Piotr Tarsa <pi...@gmail.com> on 2010/01/08 23:42:17 UTC
Serious problem with swapping two items in a list (GAEJ/ JDO)
Hello,
I've tried virtually everything. I'm looking for someone who has experience
with GAEJ.
Running site is at: http://data-compression.appspot.com/
Source code (need wicket-guice): http://code.google.com/p/data-compression/
Page address:
http://data-compression.appspot.com/Administration/HomePagePanel
Re: Serious problem with swapping two items in a list (GAEJ/ JDO)
Posted by nino martinez wael <ni...@gmail.com>.
I don't see why the ajaxdefaultfallback table won't work.. Just add up
/ down arrows.. Just remember it will be persisted when you click up
or down. Even using a detachable model should work.
I had something similar where you could click an edit or delete
button, it just requires that the backing model are a List.
2010/1/11 Piotr Tarsa <pi...@gmail.com>:
> It doesn't work out of the box, because it creates copy of a list. That list
> is backed by JDO and attached to PersistenceManager, so cloning it makes
> straightforward persistence impossible.
>
> I also want to make instant changes, ie. when I click "Move Down" I expect
> the items be swapped in database before page reload (and the entire form
> revalidated before swapping).
>
> 2010/1/8 Igor Vaynberg <ig...@gmail.com>
>
>> it usually helps to describe the problem....
>>
>> but out of curiousity is this applicable?
>> http://wicketinaction.com/2008/10/building-a-listeditor-form-component/
>>
>> -igor
>>
>> On Fri, Jan 8, 2010 at 2:42 PM, Piotr Tarsa <pi...@gmail.com> wrote:
>> > Hello,
>> >
>> > I've tried virtually everything. I'm looking for someone who has
>> experience
>> > with GAEJ.
>> >
>> > Running site is at: http://data-compression.appspot.com/
>> > Source code (need wicket-guice):
>> http://code.google.com/p/data-compression/
>> >
>> > Page address:
>> > http://data-compression.appspot.com/Administration/HomePagePanel
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Serious problem with swapping two items in a list (GAEJ/ JDO)
Posted by Piotr Tarsa <pi...@gmail.com>.
It doesn't work out of the box, because it creates copy of a list. That list
is backed by JDO and attached to PersistenceManager, so cloning it makes
straightforward persistence impossible.
I also want to make instant changes, ie. when I click "Move Down" I expect
the items be swapped in database before page reload (and the entire form
revalidated before swapping).
2010/1/8 Igor Vaynberg <ig...@gmail.com>
> it usually helps to describe the problem....
>
> but out of curiousity is this applicable?
> http://wicketinaction.com/2008/10/building-a-listeditor-form-component/
>
> -igor
>
> On Fri, Jan 8, 2010 at 2:42 PM, Piotr Tarsa <pi...@gmail.com> wrote:
> > Hello,
> >
> > I've tried virtually everything. I'm looking for someone who has
> experience
> > with GAEJ.
> >
> > Running site is at: http://data-compression.appspot.com/
> > Source code (need wicket-guice):
> http://code.google.com/p/data-compression/
> >
> > Page address:
> > http://data-compression.appspot.com/Administration/HomePagePanel
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Serious problem with swapping two items in a list (GAEJ/ JDO)
Posted by Piotr Tarsa <pi...@gmail.com>.
I want to swap two elements in a ListView. The problem is that I want to
persist all changes on every request (with validation etc). List should be
ordered by a special field (I called it "position").
I've taken various different approaches, always used ListView as a basis,
not RepeatingView. I had different results but the list never worked
properly.
I'll look deeper at your article tommorow.
2010/1/8 Igor Vaynberg <ig...@gmail.com>
> it usually helps to describe the problem....
>
> but out of curiousity is this applicable?
> http://wicketinaction.com/2008/10/building-a-listeditor-form-component/
>
> -igor
>
> On Fri, Jan 8, 2010 at 2:42 PM, Piotr Tarsa <pi...@gmail.com> wrote:
> > Hello,
> >
> > I've tried virtually everything. I'm looking for someone who has
> experience
> > with GAEJ.
> >
> > Running site is at: http://data-compression.appspot.com/
> > Source code (need wicket-guice):
> http://code.google.com/p/data-compression/
> >
> > Page address:
> > http://data-compression.appspot.com/Administration/HomePagePanel
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Serious problem with swapping two items in a list (GAEJ/ JDO)
Posted by Igor Vaynberg <ig...@gmail.com>.
it usually helps to describe the problem....
but out of curiousity is this applicable?
http://wicketinaction.com/2008/10/building-a-listeditor-form-component/
-igor
On Fri, Jan 8, 2010 at 2:42 PM, Piotr Tarsa <pi...@gmail.com> wrote:
> Hello,
>
> I've tried virtually everything. I'm looking for someone who has experience
> with GAEJ.
>
> Running site is at: http://data-compression.appspot.com/
> Source code (need wicket-guice): http://code.google.com/p/data-compression/
>
> Page address:
> http://data-compression.appspot.com/Administration/HomePagePanel
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org