A JSF component that allows quick realization of a comment functionality with many features.
Screenshot
Promo Video
Features
Replies
You can reply to comments (and reply those, and so on).
Live Features
Other users are notified on new comments, replies and when other users type.
Dependencies
- Primefaces
Optional Dependencies
- Primefaces push (Atmosphere framework) – You need this when you want to use the live features (enabled by default)
- Add prettyTime and prettytime-integration-jsf to your project and commentbox will automatically use it to display time
Download
Here you can download the latest jar.
Source
You can grab the Sources from the CommentBox Project Site at Github.
Documetation
Download the documentation here.
First Steps
I recomend to take a look at the demo at first.
Just deploy the demo project in any AS with eclipse or your IDE of choice, and try out some features!
Extended Demo
After you played around with the demo you can start to use it immediatly or you can take a look at the extended demo.
In the extended demo a real database is used via JPA.
Because of that you need to create a datasource (commentboxDS) in the configs of your AS or rename the used datasource to one of yours (in persistence.xml).
Then deploy the demo project in any AS with eclipse or your IDE of choice.
Notice for JBoss usage
In case you use JBoss and want to use the live features you need to adjust the standalone.xml to support atmosphere:
change the line:
<subsystem xmlns="urn:jboss:domain:web:1.1" native="false" [...]>
to:
<subsystem xmlns="urn:jboss:domain:web:1.1" native="true" [...]>
Why should i use it, i could use some external chat service?
- You keep your data where it belongs, on your server !
- Also you can (and are allowed to) make modifications to adapt to your special needs.
- You can connect this component to your own user-system and your users don’t need to have an account on your site and an additional account for the external system.
License
This project is open source and free, it is available under the Apache v2 License.
Credits
- Fugue Icons – Yusuke Kamiyamane – http://p.yusukekamiyamane.com/
- CLEditor YouTube Plugin v1.0.0 – Markus Horowski – http://www.terapix.de
- TeamRot – The Group that developed the initial commentBox component at RWTH Aachen University. Members: Ahmet Yüksektepe, Arthur Otto, Kristjan Liiva, Nick Russler, Thomas Müller
Hello Nick Russler,
Although you said that “THIS PROJECT IS NOT MAINTAINED ANYMORE” but I still like this component very much.
Could the show me the way to use it?
I have tried the demo in Netbean IDE but has error message below:
The component library http://whitebyte.info/components does not contain component commentBox
Thanks,
Best Regards,.
You can try to include the component via the composite components URI (see here and here).
Hello,
I get the following error when trying to use this:
info.whitebyte.component.commentbox not found
Any idea why?
Somehow the component could not be found, did you add the namespace? Take a look at the example source code.
I’m working on a web Maven project with primefaces jsf 2.0 and primefaces 3.5. like table i have comment and article. I want to integrate commentBox up in my project to manage my comments like demo.
How? what sources that i must token? and what are the steps?
thank you very much.
Just include the jar (link) in your web project (in most cases this means putting it into your lib folder), then you can use commentBox.
I suggest you to take a look at the demo (link).
Thank you,
1 – I added a dependence CommentBox in my maven project
CommentBox
commentBox
0.0.1-SNAPSHOT
2-I took the index page demosource. but I have this error.
a: the component librarary http://whitebyte.info/components Does not Contain commentBox component. (in jsf page)
b: an exception of type:
Caused by: java.util.MissingResourceException: Can not find bundle for base name info.whitebyte.component.commentbox.messages local en_US.
You have an idea and I think it is an IDE problem knowing that I work in NETBEANS..
Thank you,
Thank you,
1 – I added a dependence CommentBox in my maven project
CommentBox
commentBox
0.0.1-SNAPSHOT
2-I took the index page demosource. but I have this error.
a: the component librarary http://whitebyte.info/components Does not Contain commentBox component. (in jsf page)
b: an exception of type:
Caused by: java.util.MissingResourceException: Can not find bundle for base name info.whitebyte.component.commentbox.messages local fr_FR.
You have an idea and I think it is an IDE problem knowing that I work in NETBEANS..
Thank you,
Are you here Nick?
javax.faces.view.facelets.TagException: /index.xhtml @27,74 Tag Library supports namespace: http://java.sun.com/jsf/composite/composites, but no tag was defined for name: commentBox
at com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:304)
at com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:255)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:788)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
Please report this Bug to the Issues on Github and provide additional details (Application Server, JSF Implementation, JSF Implementation Version, Primefaces Version,…). If you can’t use Github please post more Details here on the Blog. Thanks!