[Yanel-dev] First prototype re commenting resources
Michael Wechner
michael.wechner at wyona.com
Wed Mar 9 23:08:58 CET 2011
Hi
The commenting is working now. Please pull the latest version from
http://hg.wyona.com/personal-michi/
One can now add comments and the comments also get displayed, whereas for
peformance/scalability reasons I have introduced two properties for the
XML resource (src/resources/xml/resource.xml)
- check-comments: only if this is set to true, then the XML resource
will actually call the comment manager
- aggregate-comments: only if this is set to true, then the comments get
aggregated with the rest of the XML/XHTML
I have made now some experience re JAXB and it's really great how simple
one can "read/write" XML.
Please have a look at
src/core/java/org/wyona/yanel/core/util/YarepXMLBindingUtil.java which
was contributed by Balz. Maybe we should move this into another package
though to make it more re-usable.
Thanks
Michael
On 3/8/11 4:45 PM, Michael Wechner wrote:
> Hi
>
> Based on the interfaces which Balz and I have created and based on
> Balz' src/core/java/org/wyona/yanel/core/util/YarepXMLBindingUtil.java
> class I have now created Comment Resource in order to comment
> (commentable) resources (like for example the XML resource).
>
> Please find a first prototype within my personal Mercurial repository
>
> http://hg.wyona.com/personal-michi/
>
> whereas you can give it a try on the pages of the yanel website realm,
> e.g.
>
> http://127.0.0.1:8280/yanel/yanel-website/en/about.html
>
> (see at the bottom of the page the link "Add comment")
>
> whereas with the current implementation an XML will be saved at
>
> src/realms/yanel-website/data-repo/data/comments/en/about.html
>
> Cheers
>
> Michael
More information about the Yanel-development
mailing list