• 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
fire a AUC from adjacent component?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fire a AUC from adjacent component?


  • Subject: fire a AUC from adjacent component?
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 05 Oct 2011 06:20:11 -0700 (PDT)

I am viewing and editing some object meta data in a new window. I create this new window with:

<wo:link action = "$viewVendor" target = "_blank"><wo:WOString value = "$vendor.vendorName"/></wo:link> and my java:

public WOActionResults viewVendor() {
    AVendor nextPage = pageWithName(AVendor.class);
    nextPage.setTheVendor(vendor);
    return nextPage;
}

I realize that some of the meta data could cause what is viewed on the original component (named: VendorList) to be stale. so I wrapped it in an AjaxUpdateContainer. I want to fire the AUC from the AVendor component.

AVendor has a save method:

public WOActionResults saveVendorEdits() {
   
    try {
        theVendor().editingContext().saveChanges();
    } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
   
   
    return null;
}

How can I refer to the original component and fire the AUC?

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

  • Prev by Date: [MEET] Toronto Cocoaheads / tacow - October 11
  • Next by Date: class loader deadlock in thread (apparently)
  • Previous by thread: [MEET] Toronto Cocoaheads / tacow - October 11
  • Next by thread: class loader deadlock in thread (apparently)
  • Index(es):
    • Date
    • Thread