template not showing added facts

Gregg Reynolds <[email protected]> Mon, 04 Apr 2005 11:06:34 -0500
Newsgroups gmane.comp.mozilla.devel.rdf
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi,

I'm having trouble getting my listbox template display added facts. 
I've tried lb.database.rebuild(), lb.builder.rebuild(), resetting the 
datasources and ref attributes on the listbox, and various other 
desperate measures, but nothing works.  My understanding is that I 
shouldn't have to do anything, that a change to a datastore will 
automatically cause templates to redisplay.

I know the facts are being added successfully, because I can see them in 
the rdf file, and if I close the app and restart it they show up properly.

Any debugging suggestions?

Background:  this is a simple contact manager idiom, with a list of 
people (with various static data) and a list of contact notes for each 
person.  The top half of the window holds a listbox (templated) 
displaying a few data items per person; selecting an item in the listbox 
causes the remaining data to be displayed in the lower half of the 
window.  The lower right quarter has another templated listbox showing 
the contact note items.  All data comes from a single rdf file.  A "New 
Note" button pops up a dialog box that gathers info for a new note; the 
onOK action asserts the note to the datastore.  But the contact notes 
listbox on the main window doesn't show the new facts.

thanks,

-gregg