Closed Bug 18631 Opened 20 years ago Closed 20 years ago

datasource refresh with javascript

Categories

(Core Graveyard :: RDF, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: janv, Assigned: waterson)

Details

Attachments

(4 files)

unable to refresh datasource
see attached files
Attached file template-example.rdf
Status: NEW → ASSIGNED
OS: Linux → All
Priority: P3 → P2
Hardware: PC → All
Target Milestone: M13
need to do two things.

1. add accessor interfaces to nsIRDFCompositeDataSource
2. possibly make nsCompositeDataSource supports nsIRDFRemoteDataSource.

varga: in the mean time, you can work around this bug by explicitly creating an
RDF/XML datasource using the component manager, initializing it to the correct
URL by hand, and then adding it to the tree's ".database" via AddDataSource().

See
http://lxr.mozilla.org/mozilla/source/xpfe/components/sidebar/resources/customi
ze.[xul|js] for examples.
scott: to do this, I think I'm going to just add a the following method to
nsIRDFCompositeDataSource:

  /** @return an enumerator that enumerates all the datasources in
      the composite datasource */
  nsISimplEnumerator datasources();

I'll need to tweak your mini-composite datasource stuff that you use for mail
views. Sound ok?
Yes, that's fine.  The datasource never gets used and I've meant to get rid of
it in the past.
rjc: can you code review this fix? I added a GetDataSources() method to
nsIRDFCompositeDataSource (cleaned up the docs in that file, as well), and to
the composite datasource implementation.
scottip: could you review the changes to nsMessageViewDataSource.cpp? thanks!
the change to nsMessageViewDataSource.cpp looks fine.
Go for it, looks good.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
fix checked in
development issues - marking verified
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.