• 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: Seejo Pylappan <email@hidden>
  • Date: Thu, 23 Jan 2003 19:27:33 -0500

Hi,

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.

How are you deleting it? do you click the link, which is bound to a method which deletes its and then returns the page? You should also be deleting it from your array which is displayed. How are you displaying the array?


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

Refetch in the database will not refresh the page. It will just refetch from the db and update the eos in the editingcontext.


Sends editingContextWillSaveChanges messages to the this EOEditingContext's editors, and invokes the invalidateAllObjects method.
refresh() - Method in class com.webobjects.woextensions.WOLongResponsePage

The WOLongResponsePage is used if you want are running a query on the db or anything which would take a long time to complete it wont help you here. What you need is the WOMetaRefresh component which you can set a interval when the page would be refreshed.


But from what you have described, it looks like you are not properly removing the object from your array to be displayed. More information on what/where the delete happens would help.

-Seejo
_______________________________________________
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