• 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
AjaxModalContainer help...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AjaxModalContainer help...


  • Subject: AjaxModalContainer help...
  • From: Theodore Petrosky <email@hidden>
  • Date: Fri, 17 Apr 2009 09:24:35 -0700 (PDT)

I am attempting to use this wonderful Wonder stuff...

I have a table and I want the user to be able to mark rows as deleted. Actually they are updating the row and setting the isDeleted boolean to true and saving the row.

I am trying to use the AjaxModalContainer to show the currently selected row. I have used the AjaxExample2 as  a template for the container. So far the user can click the delete column and the AjaxModalContainer comes up...


DeleteContact : AjaxModalContainer {
	ajax = true;
	id = current.companyName;
	label = "delete";

}

Here is the row/column to delete the record:

<webobject name = "DeleteContact">
<wo:AjaxUpdateContainer>
<wo:form>
<b>Delete Company</b>
<p>
<wo:WOString value = "$current.companyName" size = "30" />
<wo:AjaxSubmitButton action = "$deleteContact" value = "Delete" updateContainerID = "tableBody" />
</p>
</wo:form>
</wo:AjaxUpdateContainer>
</webobject>

My problem is that the modal dialog is not dismissing after the user clicks the delete button. (the current record is indeed marked as deleted. Here is the java:

public WOActionResults deleteContact() {
NSLog.out.appendln("top of deleteContact +++++++++++++++++++++++++++++");
dg.setSelectedObject(current);
dg.selectedObject().setIsDeleted(true);
try {
contactEO.saveChanges();
			//jobListEO.saveChangesInEditingContext(jobListEO);
} catch (ValidationException e) {
NSLog.out.appendln("ValidationException e = " + e.getMessage());

} catch (EOGeneralAdaptorException e) {
NSLog.out.appendln("EOGeneralAdaptorException e = " + e.getMessage());
}

contactList = null;
contactList = Contact.fetchNotDeleted(contactEO);
dg.setObjectArray(contactList);
//this.sortByCompany(); //so it has an initial value
current = null;
dg.setSelectedObject(null);
dg.qualifyDisplayGroup();

deleteContactBoolean = false;
return null;
}

Why doesn't this dialog dismiss when you click the submit button....

Ted






 _______________________________________________
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: AjaxModalContainer help...
      • From: Amedeo Mantica <email@hidden>
  • Prev by Date: ERXObjectStoreCoordinator and database channels
  • Next by Date: JavaClient: does the eomodel file need to be included with the client app?
  • Previous by thread: Re: ERXObjectStoreCoordinator and database channels
  • Next by thread: Re: AjaxModalContainer help...
  • Index(es):
    • Date
    • Thread