• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AjaxSortableList goes bad on second row movement.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AjaxSortableList goes bad on second row movement.


  • Subject: AjaxSortableList goes bad on second row movement.
  • From: James Cicenia <email@hidden>
  • Date: Wed, 06 Jun 2012 08:16:37 -0500

Hello-

My list works great on the first use. Move a row. Perfect.
However, when you move a second row, the saved sort goes all fubar'd.

I have a basic setup and my action code is as follows:

public WOActionResults sortList(){
for(int i=0;i<theList.count();i++){
EOEnterpriseObject object = (EOEnterpriseObject) theList.objectAtIndex(i);
object.takeValueForKey(new Integer( i+1), "sequenceOrder");
}
ec().saveChanges();
return null;
}

My Bindings:

Sortable: AjaxSortableList {
list = theList;
item = theItem;
listItemIDKeyPath = "sequenceOrder";
id = "list-container-id";
listClass = "sortableList";
listItemClass = "sortableListItem";
ghosting = true;
action = sortList;
index = index;
handle = "sub-col-item drag";
}

Does this all look correct, wrong, or I should be looking somewhere else for my issue?

Thanks
James
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AjaxSortableList goes bad on second row movement.
      • From: Lon Varscsak <email@hidden>
  • Prev by Date: Re: D2W: Property level component for truncating a string?
  • Next by Date: Re: AjaxSortableList goes bad on second row movement.
  • Previous by thread: Re: WOInject: harmed twice by classloader manipulation
  • Next by thread: Re: AjaxSortableList goes bad on second row movement.
  • Index(es):
    • Date
    • Thread