8 Replies Latest reply on Jul 15, 2009 6:19 AM by Neerou b

    Disable dates within calendar control

    Neerou b Newbie

      Hello
      I would like to disable dates(retrieved from a table) for each month from the calendar control.

      Can i have some suggestions as to how to go about it?

      Also whenever i try out some simple javascript statement (a simple alert statement) the calendar gets disabled.

      Thanking you in advance for any help

        • 1. Re: Disable dates within calendar control
          Ilya Shaikovsky Master

          explore richfaces-demo and documentation please. you should use CalendarDataModel(seems preferable for your case) or could use just client side solution as shown at demo.

          • 2. Re: Disable dates within calendar control
            Neerou b Newbie

            Thank you for your reply

            i have to use the calendar control in different pages and the dates to be disabled for each month is stored in a table.

            do you have an example of the calendarDataModel which i can refer for my codes?

            Thanks..

            • 3. Re: Disable dates within calendar control
              Ilya Shaikovsky Master

              we have dataModel usage at demosite. it not uses disabled property for model objects but you could add it easily.

              • 4. Re: Disable dates within calendar control
                Neerou b Newbie

                I have referred to the demo of the calendar control. Are there some examples as to how to access the data model of the calendar at run time and modifiy it. I am using seam project for the implementation

                • 5. Re: Disable dates within calendar control
                  Ilya Shaikovsky Master

                  the example of dealing with model data on server side already there. and sources for demo available. visit link in my signature.

                  • 6. Re: Disable dates within calendar control
                    Neerou b Newbie

                    I have followed the example at the demosite for the CalendarDataModel but when i run the project the exception quoted below appears on the console.

                    Could you please advise me what should be done in that case

                    thanks in advance


                    08:36:20,226 WARN [ExceptionFilter] handling uncaught exception
                    javax.servlet.ServletException: Servlet execution threw an exception
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                    at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
                    at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
                    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
                    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                    at java.lang.Thread.run(Unknown Source)
                    Caused by: java.lang.NoClassDefFoundError: org/apache/commons/beanutils/PropertyUtils
                    at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:121)
                    at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:66)
                    at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:105)
                    at org.richfaces.renderkit.CalendarRendererBase.writePreloadBody(CalendarRendererBase.java:439)
                    at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:474)
                    at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:485)
                    at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
                    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
                    at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:190)
                    at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                    at org.jboss.seam.ui.renderkit.ValidateAllRendererBase.doEncodeChildren(ValidateAllRendererBase.java:33)
                    at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                    at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)
                    at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                    at org.jboss.seam.ui.renderkit.DecorateRendererBase.doEncodeChildren(DecorateRendererBase.java:146)
                    at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                    at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
                    at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
                    at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
                    at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
                    at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
                    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                    at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                    at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
                    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    ... 42 more
                    Caused by: java.lang.ClassNotFoundException: org.apache.commons.beanutils.PropertyUtils from BaseClassLoader@125e41e{VFSClassLoaderPolicy@a382ac{name=vfsfile:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/deploy/seamTutorial-ear.ear/ domain=ClassLoaderDomain@487d7a{name=seam.jboss.org:loader=seamTutorial-ear.ear parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@138b4ed{DefaultDomain}} roots=[MemoryContextHandler@14165773[path= context=vfsmemory://5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgof7-20 real=vfsmemory://5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgof7-20], FileHandler@15465537[path= context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/], DelegatingHandler@16659399[path=jboss-seam.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/jboss-seam.jar], DelegatingHandler@23230984[path=seam.deployer/lib-int/jboss-seam-int-jbossas.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/deployers/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/deployers/seam.deployer/lib-int/jboss-seam-int-jbossas.jar], FileHandler@15941551[path=seamTutorial-ejb.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/seamTutorial-ejb.jar/], DelegatingHandler@31074511[path=antlr-runtime.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/antlr-runtime.jar], DelegatingHandler@16776501[path=drools-compiler.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/drools-compiler.jar], DelegatingHandler@20973046[path=drools-core.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/drools-core.jar], DelegatingHandler@27767899[path=jboss-el.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/jboss-el.jar], DelegatingHandler@27998583[path=jbpm-jpdl.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/jbpm-jpdl.jar], DelegatingHandler@27431208[path=mvel14.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/mvel14.jar], DelegatingHandler@300491[path=richfaces-api.jar context=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/ real=file:/C:/Program%20Files/JBoss/jboss-5.0.1.GA-jdk6/server/default/tmp/5c4ok5l-3dkj2d-fx5jfzzl-1-fx5jgk1f-o/seamTutorial-ear.ear/richfaces-api.jar]] delegates=null exported=[, org.jbpm.jpdl, org.jboss.seam.contexts, org.jbpm.security.permission, org.jbpm.graph.node, org.mvel.optimizers, org.jbpm.msg.db, org.drools.conflict, org.jboss.seam.annotations.datamodel, org.jboss.seam.init, org.jboss.el.parser, org.jbpm, org.drools.ruleflow.common.core.impl, org.drools.base.field, org.jbpm.module.def, org.jbpm.context.log.variableinstance, org.drools.ruleflow.core, org.jbpm.calendar, org.jbpm.logging.db, org.jbpm.db.hibernate, org.jbpm.configuration, org.antlr.runtime, org.domain.seamtutorial.session, org.jboss.seam.core, org.jbpm.command, org.jbpm.jpdl.el.impl, org.ajax4jsf, org.jboss.seam.servlet, org.jboss.seam.persistence, org.jbpm.module.exe, org.jboss.seam.security.digest, org.jbpm.job, org.jboss.seam.text, org.jboss.seam.faces, org.jbpm.mail, org.jbpm.db, org.jboss.seam.jmx, org.jboss.seam.jms, org.drools.brms.server.rules, org.jbpm.context.log, org.richfaces.event.sort, org.jbpm.taskmgmt.def, org.jboss.seam.async, org.ajax4jsf.resource, org.jboss.seam.annotations.security.management, org.jboss.seam.integration.jbossas.jms, org.jboss.seam.bpm, org.drools.asm.attrs, org.domain.seamtutorial.entity, org.jboss.seam.security, org.ajax4jsf.javascript, org.jboss.seam.web, org.drools.reteoo.builder, org.jboss.el, org.jboss.seam.databinding, org.jboss.seam.security.management.action, org.jboss.seam.annotations.security, org.drools.asm, org.mvel.integration, org.drools.agent, org.mvel.tests.main.res, org.drools.lang, org.drools.ruleflow.common.datatype, org.jboss.seam.document, org.jboss.seam.mock, org.antlr.runtime.debug, org.mvel.debug, org.jboss.seam.mail, org.drools.objenesis.instantiator.jrockit, org.drools, org.drools.util, org.jbpm.context.exe, org.jboss.seam.navigation, org.richfaces.model, org.jboss.seam.international, org.jbpm.ant, org.drools.rule.builder.dialect.mvel, org.jbpm.instantiation, org.drools.reteoo, org.jbpm.jpdl.par, org.mvel.tests, org.drools.xml, org.jbpm.util, org.ajax4jsf.renderkit, org.mvel.ast.cache, org.jbpm.security.authentication, org.jbpm.logging, org.jbpm.job.executor, org.ajax4jsf.context, org.jbpm.logging.exe, org.jboss.seam.cache, org.jboss.seam.jsf, org.mvel.optimizers.impl.refl, org.jboss.seam.intercept, org.jboss.seam.annotations.intercept, org.drools.objenesis, org.jboss.seam.annotations.async, org.drools.asm.signature, org.drools.base.mvel, org.jbpm.msg, org.antlr.runtime.misc, org.drools.lang.descr, org.drools.base.accumulators, org.drools.asm.util.attrs, org.jbpm.jcr, org.drools.brms.server.util, org.jboss.seam.annotations.web, org.drools.facttemplates, org.jboss.seam, META-INF.maven.org.drools.drools-compiler, org.drools.rule.builder.dialect.java, org.drools.rule.builder.dialect.java.parser, org.jbpm.context.def, org.jbpm.svc, org.jboss.seam.annotations.exception, org.jboss.seam.util, org.drools.commons.jci.problems, org.jbpm.jpdl.xml, org.ajax4jsf.cache, org.drools.commons.jci.readers, META-INF, org.drools.asm.util, org.jboss.seam.annotations.security.permission, org.jbpm.graph.def, org.jboss.el.lang, org.mvel.optimizers.impl.asm, org.jbpm.jpdl.convert, org.drools.concurrent, org.jbpm.graph.node.advanced, org.jbpm.logging.log, org.jboss.seam.theme, org.jboss.seam.security.management, org.jboss.seam.el, org.richfaces.model.filter, org.jboss.seam.exception, org.drools.ruleflow.common.datatype.impl.type, org.jbpm.db.compatibility, org.mvel.asm, org.jbpm.graph.action, org.drools.objenesis.instantiator.sun, org.mvel.ast, org.jbpm.context.exe.matcher, org.jboss.seam.security.jaas, org.richfaces.model.selection, org.jboss.seam.annotations.bpm, org.drools.base.extractors, org.jboss.seam.framework, org.jbpm.persistence.db, org.drools.brms.client.modeldriven, org.drools.ruleflow.common.instance.impl, org.ajax4jsf.event, org.drools.base.evaluators, org.jboss.seam.captcha, org.jboss.seam.log, org.drools.ruleflow.common.instance, org.drools.objenesis.strategy, org.jbpm.taskmgmt, org.drools.objenesis.instantiator, org.jbpm.context.exe.converter, org.jbpm.security.authorization, org.jboss.seam.drools, org.jboss.seam.annotations, org.jbpm.jcr.jackrabbit, org.drools.asm.commons, org.jbpm.scheduler, org.jboss.seam.pageflow, org.mvel.math, org.ajax4jsf.resource.util, org.mvel.tests.main, org.jboss.seam.deployment, org.mvel.integration.impl, org.jbpm.graph.exe, org.drools.base, org.jbpm.web, org.drools.lang.dsl, org.mvel.tests.perftests, org.mvel, org.drools.ruleflow.common.core, org.jboss.seam.integration.jbossas.vdf, org.jboss.el.util, org.richfaces.event, org.ajax4jsf.model, org.drools.common, org.richfaces.event.extdt, org.richfaces.component.xml, org.jbpm.security, org.drools.commons.jci.stores, org.jboss.seam.transaction, org.jbpm.command.impl, org.drools.audit.event, org.drools.util.asm, org.drools.base.dataproviders, META-INF.maven.org.richfaces.framework.richfaces-api, org.mvel.util, org.drools.brms.client.modeldriven.brl, org.jbpm.jcr.jndi, org.jboss.seam.integration.jbossas.servlet, org.jbpm.scheduler.def, org.drools.rule, org.drools.spi, org.jboss.seam.webservice, org.drools.audit, org.jbpm.svc.save, org.jbpm.jpdl.el, org.jbpm.file.def, org.drools.compiler, META-INF.maven.org.jboss.seam.integration.jboss-seam-int-jbossas, org.jbpm.scheduler.db, org.mvel.optimizers.impl.refl.collection, org.drools.ruleflow.common.datatype.impl, org.jbpm.persistence.jta, org.jboss.seam.integration.jbossas.vfs, org.jbpm.context.exe.variableinstance, org.jbpm.jpdl.el.parser, org.mvel.conversion, org.jboss.seam.ejb, org.drools.util.concurrent.locks, org.jbpm.bytes, org.antlr.runtime.tree, org.jbpm.graph.log, org.drools.objenesis.instantiator.gcj, org.drools.event, org.jbpm.jpdl.exe, org.jbpm.persistence, org.jbpm.taskmgmt.impl, org.drools.commons.jci.compilers, org.richfaces.skin, org.ajax4jsf.application, org.jbpm.tx, org.jboss.seam.annotations.faces, org.jboss.seam.security.openid, org.jboss.seam.security.permission, org.ajax4jsf.component, org.drools.ruleflow.core.impl, META-INF.maven.org.drools.drools-core, org.drools.ruleflow.instance, org.richfaces.event.scroll, org.drools.objenesis.instantiator.basic, org.jbpm.taskmgmt.exe, org.jbpm.jcr.impl, org.jboss.seam.security.permission.action, org.drools.semantics.java.parser, org.drools.ruleflow.instance.impl, org.richfaces.component, org.jbpm.taskmgmt.log, org.drools.rule.builder] <IMPORT-ALL>NON_EMPTY}}
                    at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:422)
                    at java.lang.ClassLoader.loadClass(Unknown Source)
                    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
                    ... 79 more
                    08:36:20,226 WARN [ExceptionFilter] exception root cause


                    • 7. Re: Disable dates within calendar control
                      Neerou b Newbie

                      It was an issue of jars, which got solved when i added the common-collection jar to the project

                      • 8. Re: Disable dates within calendar control
                        Neerou b Newbie

                        I am trying the example at the demosite. Below are the extract of codes.

                        I am getting the error at console

                        Could you plz help me on the error
                        Thanx in advance



                        14:12:42,935 ERROR [viewhandler] Error Rendering View[/LmsHolidaysEdit.xhtml]
                        java.lang.IllegalArgumentException: Cannot convert org.domain.seamtutorial.session.CalendarDataModelImpl@177600e of type class org.domain.seamtutorial.session.CalendarDataModelImpl_$$_javassist_4 to interface org.richfaces.model.CalendarDataModel
                        at org.jboss.el.lang.ELSupport.coerceToType(ELSupport.java:358)
                        at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188)
                        at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                        at org.richfaces.component.html.HtmlCalendar.getDataModel(HtmlCalendar.java:843)
                        at org.richfaces.component.UICalendar.getPreload(UICalendar.java:613)
                        at org.richfaces.renderkit.CalendarRendererBase.writePreloadBody(CalendarRendererBase.java:445)
                        at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:478)
                        at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:489)
                        at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
                        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
                        at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:190)
                        at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                        at org.jboss.seam.ui.renderkit.ValidateAllRendererBase.doEncodeChildren(ValidateAllRendererBase.java:33)
                        at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                        at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)
                        at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
                        at org.jboss.seam.ui.renderkit.DecorateRendererBase.doEncodeChildren(DecorateRendererBase.java:146)
                        at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
                        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                        at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
                        at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
                        at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
                        at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
                        at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
                        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                        at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                        at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                        at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                        at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                        at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                        at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                        at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                        at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                        at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                        at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                        at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                        at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                        at java.lang.Thread.run(Unknown Source)



                        @Name("CalendarDataModelItemImpl")
                        public class CalendarDataModelItemImpl implements CalendarDataModelItem {

                        /**
                        * Default constructor.
                        */
                        public CalendarDataModelItemImpl() {
                        // TODO Auto-generated constructor stub
                        }



                        @Name("CalendarDataModelImpl")
                        public class CalendarDataModelImpl implements CalendarDataModel {
                        private CalendarDataModelItem[] items;

                        private String currentDescription;
                        private String currentShortDescription;
                        private Date currentDate;
                        private boolean currentDisabled;


                        <rich:calendar id="hldDate"
                        value="#{lmsHolidaysHome.instance.hldDate}" datePattern="dd/MM/yyyy"
                        dataModel="#{CalendarDataModelImpl}" />