On 2/8/07, Sergiu Dumitriu <sergiu.dumitriu(a)gmail.com> wrote:
> The error I'm currently getting is:
>
> java.lang.ClassNotFoundException:
> com.xpn.xwiki.plugin.charts.source.XWikiComments
>
> Which is because I'm trying to use the ObjectDataSourceFactory and I
don't
know how
to use it.
Sorry, but ObjectDataSourceFactory seems not to be working any more
(don't even know if it ever did). In the most cases a table data
source should be enough.
Indeed, the code for this is completely wrong, and it only shows how poor
was owr knowledge of XWiki was two years ago.
Not really, it's just a different use case. And maybe the name of the
class is not really informative in this case. Here is the use case we
had in mind back then (it took a while to remember): We wanted to have
a way to store data sources in the wiki and then reuse them for more
than one chart. We accomplished this by storing the arguments for a
usual table data source has in an xwiki object. So maybe a better name
for this would have been PersistentDataSource since we were using this
only to have a persistent and reusable representation of a table data
source (actually that is the only kind of basic data source we support
anyway).
And now I remember that this worked very well for the charting wizard,
where defining a data source was decoupled from using it for the
chart. We actually allow reusing data sources in the wizard which is
quite nice. Still totally useless for what Shawn needs.
Catalin