• 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
Re: Refreshing a Page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refreshing a Page


  • Subject: Re: Refreshing a Page
  • From: MJE <email@hidden>
  • Date: Fri, 24 Jan 2003 11:19:39 +1100

You need to bind the action of your delete button/link to something like this:

    public WOComponent doDeleteLine()
    {
	someDisplayGroup.selectObject(item);
	someDisplayGroup.delete();
         session().defaultEditingContext().saveChanges();

        return null; // re-load page
    }

where item is a EOEnterpriseObject and someDisplayGroup is a WODisplayGroup.

MJE

On Friday, January 24, 2003, at 06:45 AM, Jonathan Fleming wrote:
Hi Guys,
I have an NSMutableArray Array of objects which have a delete link in the list, however, when i delete the object it remains in the list even after a save to the database. When i look at the database (openBase) the object has been deleted. It's only when I click on the object that I had originally deleted that it disappears or if I use the refresh button on the browser.


So, it seems that my answer to this problem would be to refresh the page progmatically, however, I have tried to use both a refresh and refetch method (below) to no avail:
refetch() - Method in class com.webobjects.eocontrol.EOEditingContext
Sends editingContextWillSaveChanges messages to the this EOEditingContext's editors, and invokes the invalidateAllObjects method.
refresh() - Method in class com.webobjects.woextensions.WOLongResponsePage


Does anyone know how to refresh a page progmatically, I'd be really pleased to know how this works or how it is done.

Many thanks
Jonathan

_________________________________________________________________
Stay in touch with MSN Messenger http://messenger.msn.co.uk
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Refreshing a Page (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: Re: Refreshing a Page
  • Next by Date: Re: Refreshing a Page
  • Previous by thread: Re: Refreshing a Page
  • Next by thread: Re: Refreshing a Page
  • Index(es):
    • Date
    • Thread