richfaces tag rich:contextMenu throws exception as tag not defined
------------------------------------------------------------------
Key: RF-9923
URL:
https://jira.jboss.org/browse/RF-9923
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.0.Milestone4
Environment: Red Hat Linux 5.5, JBoss Application server 6.0.0 M4
Reporter: Devinder Singh
I'm trying to use rich:contextMenu to add right click options to JSF components.
However, it fails with exception "tag not defined". Exception stack trace is
below:
------------------------------
javax.servlet.ServletException: javax.faces.view.facelets.TagException:
/resources/utils/calendar.xhtml @30,27 <rich:contextMenu> Tag Library supports
namespace:
http://richfaces.org/rich, but no tag was defined for name: contextMenu
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
root cause
java.util.concurrent.ExecutionException: javax.faces.view.facelets.TagException:
/resources/utils/calendar.xhtml @30,27 <rich:contextMenu> Tag Library supports
namespace:
http://richfaces.org/rich, but no tag was defined for name: contextMenu
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
java.util.concurrent.FutureTask.get(FutureTask.java:83)
com.sun.faces.util.Cache.get(Cache.java:132)
com.sun.faces.application.view.FaceletViewHandlingStrategy.getComponentMetadata(FaceletViewHandlingStrategy.java:209)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:936)
org.jboss.weld.integration.webtier.jsf.ForwardingApplication.createComponent(ForwardingApplication.java:116)
com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler.createComponent(CompositeComponentTagHandler.java:154)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:311)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:145)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:120)
org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:55)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:204)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:97)
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:172)
com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:386)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:357)
com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:102)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:120)
org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:55)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:204)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:301)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:360)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:339)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:191)
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:149)
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:145)
com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:716)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
root cause
javax.faces.view.facelets.TagException: /resources/utils/calendar.xhtml @30,27
<rich:contextMenu> Tag Library supports namespace:
http://richfaces.org/rich, but no
tag was defined for name: contextMenu
com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:285)
com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:225)
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:385)
com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:361)
com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:117)
com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:331)
com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:215)
com.sun.faces.application.view.FaceletViewHandlingStrategy.createComponentMetadata(FaceletViewHandlingStrategy.java:245)
com.sun.faces.application.view.FaceletViewHandlingStrategy$2.newInstance(FaceletViewHandlingStrategy.java:757)
com.sun.faces.application.view.FaceletViewHandlingStrategy$2.newInstance(FaceletViewHandlingStrategy.java:755)
com.sun.faces.util.Cache$1.call(Cache.java:113)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)
com.sun.faces.util.Cache.get(Cache.java:128)
com.sun.faces.application.view.FaceletViewHandlingStrategy.getComponentMetadata(FaceletViewHandlingStrategy.java:209)
com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:936)
org.jboss.weld.integration.webtier.jsf.ForwardingApplication.createComponent(ForwardingApplication.java:116)
com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler.createComponent(CompositeComponentTagHandler.java:154)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:311)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:145)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:120)
org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:55)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:204)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:97)
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:172)
com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:386)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:357)
com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:102)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:120)
org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:55)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:204)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:301)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:360)
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:339)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:191)
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:149)
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:145)
com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:716)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:68)
note The full stack trace of the root cause is available in the JBoss Web/3.0.0-beta-6
logs.
JBoss Web/3.0.0-beta-6
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira