This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RichFaces how to add calendar  RSS feed

wadha alketbi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm using Eclipse to develop my web app. and I download the rich Faces to add calendar and I find an example when I'm searching and I apply the example but I did not get the same result and the calendar dose not show with me, it show like a label and inside it (rich:calendar). In the console i have this error :

SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.ajax4jsf.renderkit.ChameleonRenderKitFactory.<clinit>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(
at javax.faces.FactoryFinder.getImplementationInstance(
at javax.faces.FactoryFinder.access$400(
at javax.faces.FactoryFinder$FactoryManager.getFactory(
at javax.faces.FactoryFinder.getFactory(
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(
at com.sun.faces.config.processor.FactoryConfigProcessor.process(
at com.sun.faces.config.ConfigManager.initialize(
at com.sun.faces.config.ConfigureListener.contextInitialized(
at org.apache.catalina.core.StandardContext.listenerStart(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase$
at org.apache.catalina.core.ContainerBase$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
... 23 more

Also I have question, can I use different beans in the same jsp page?

my jsp:

thank you.
Tim Holloway
Posts: 18709
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The root of your problem isn't actually in RichFaces or in JSF, it's in how your WAR is built. You are missing the Apache Commons Logger.

But there's another serious problem as well. Your sample page is coded for JSF version 1, which has been obsolete for several years now. JSF 2 is the current architecture and it doesn't use or support JSP page templates. It uses Facelets View Templates (.xhtml files).
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!