You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by anita nichols <an...@gmail.com> on 2007/08/04 00:32:56 UTC

ListView + AjaxEditableLabel + move down and move up

I have a list view (to do list sample) with AjaxEditableLabel.
But I also would like to be able to move the items on the list up or down.
Is that possible?

Thanks

Re: ListView + AjaxEditableLabel + move down and move up

Posted by Gerolf Seitz <ge...@gmail.com>.
if the last suggestion is too costly (rendering the whole listview), you
could just change the order of the backing list without redrawing it and add
some javascript to the requesttarget (target.appendjavascript) which does
the dom manipulation...

On 8/4/07, Gerolf Seitz <ge...@gmail.com> wrote:
>
> maybe this is something for you:
> at
> http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView
>
> what you could also do is the following:
> + add two ajaxbuttons "up" and "down" (or images)
> + change the position of the row-data in the backing list in the onSubmit
> method of the ajaxbuttons
> + add the parent container of the listview to the ajaxrequesttarget
>
> i haven't tried the approach myself, but maybe it's something to get you
> started.
>
> hth,
>   gerolf
>
> On 8/4/07, anita nichols <an...@gmail.com> wrote:
> >
> > I have a list view (to do list sample) with AjaxEditableLabel.
> > But I also would like to be able to move the items on the list up or
> > down.
> > Is that possible?
> >
> > Thanks
> >
>
>

Re: ListView + AjaxEditableLabel + move down and move up

Posted by anita nichols <an...@gmail.com>.
Ok. Actually my code already have ajaxrequest target, how do I use this
http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListViewcode?

Also anyone know where the wicket extension and javadoc go after they move
their web site to apache?

Anita


On 8/3/07, Gerolf Seitz <ge...@gmail.com> wrote:
>
> maybe this is something for you:
> at
>
> http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView
>
> what you could also do is the following:
> + add two ajaxbuttons "up" and "down" (or images)
> + change the position of the row-data in the backing list in the onSubmit
> method of the ajaxbuttons
> + add the parent container of the listview to the ajaxrequesttarget
>
> i haven't tried the approach myself, but maybe it's something to get you
> started.
>
> hth,
>   gerolf
>
> On 8/4/07, anita nichols <an...@gmail.com> wrote:
> >
> > I have a list view (to do list sample) with AjaxEditableLabel.
> > But I also would like to be able to move the items on the list up or
> down.
> > Is that possible?
> >
> > Thanks
> >
>

Re: ListView + AjaxEditableLabel + move down and move up

Posted by Gerolf Seitz <ge...@gmail.com>.
maybe this is something for you:
at
http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView

what you could also do is the following:
+ add two ajaxbuttons "up" and "down" (or images)
+ change the position of the row-data in the backing list in the onSubmit
method of the ajaxbuttons
+ add the parent container of the listview to the ajaxrequesttarget

i haven't tried the approach myself, but maybe it's something to get you
started.

hth,
  gerolf

On 8/4/07, anita nichols <an...@gmail.com> wrote:
>
> I have a list view (to do list sample) with AjaxEditableLabel.
> But I also would like to be able to move the items on the list up or down.
> Is that possible?
>
> Thanks
>