[xwiki-dev] Charting macro

Sergiu Dumitriu sergiu.dumitriu at gmail.com
Thu Feb 8 22:38:09 CET 2007


> 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.

> Finally, if there's any help that I can provide, I'm certainly available.
> > Thanks ...
>
> Yes, it would be great to have this for xwiki. However, at the time
> this is just not implemented. It would be great if you could help us
> implementing this. I will have a look at the options we have for this
> and then come back to you. Until then it would be great if you could
> create a JIRA issue for this where you detail your use case.
>
> Catalin
>
>
The right behavior would be to have parameters for ClassName (the name of
the type of the XWiki objects to use), the property name (the property that
should be used as a data source), and the optiona document name and object
number selection (range or set). Then, the datasource would extract from the
[selected] objects the property and construct a proper data set. If you can
write this and submit a patch, you would be of great help, as we are all
busy with the 1.0 release.

Thank you,
Sergiu
-- 
http://purl.org/net/sergiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070208/11b2a65e/attachment.htm 


More information about the devs mailing list