fire a AUC from adjacent component?
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