AjaxSortableList goes bad on second row movement.
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; }
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