You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Krashan Brahmanjara (JIRA)" <de...@myfaces.apache.org> on 2014/03/23 14:23:44 UTC
[jira] [Commented] (MYFACES-3750) Allow to reference composite
components directly from facelets taglib file using
[ https://issues.apache.org/jira/browse/MYFACES-3750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944420#comment-13944420 ]
Krashan Brahmanjara commented on MYFACES-3750:
----------------------------------------------
I suppose it doesn;t work correctly.
In Myfaces 2.2.2 i got exception for this code (working perfectly in Mojarra 2.2.6)
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facelettaglibary_2_2.xsd"
version="2.2">
<namespace>test</namespace>
<tag>
<tag-name>compositepure</tag-name>
<component>
<resource-id>JavaServerFaces_pure_html_in_composite_component_in_jsf.xhtml</resource-id>
</component>
</tag>
</facelet-taglib>
{noformat}
exception
{noformat}
type Exception report
message Error Instantiating Component from <resource-id> declaration: JavaServerFaces_pure_html_in_composite_component_in_jsf.xhtml
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error Instantiating Component from <resource-id> declaration: JavaServerFaces_pure_html_in_composite_component_in_jsf.xhtml
javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
root cause
javax.faces.view.facelets.FaceletException: Error Instantiating Component from <resource-id> declaration: JavaServerFaces_pure_html_in_composite_component_in_jsf.xhtml
org.apache.myfaces.view.facelets.tag.AbstractTagLibrary$UserComponentFromResourceIdHandlerFactory.createHandler(AbstractTagLibrary.java:815)
org.apache.myfaces.view.facelets.tag.AbstractTagLibrary.createTagHandler(AbstractTagLibrary.java:113)
org.apache.myfaces.view.facelets.compiler.TagLibraryConfig$TagLibraryImpl.createTagHandler(TagLibraryConfig.java:234)
org.apache.myfaces.view.facelets.tag.CompositeTagLibrary.createTagHandler(CompositeTagLibrary.java:93)
org.apache.myfaces.view.facelets.compiler.TagUnit.createFaceletHandler(TagUnit.java:56)
org.apache.myfaces.view.facelets.compiler.TextUnit.createFaceletHandler(TextUnit.java:112)
org.apache.myfaces.view.facelets.compiler.CompilationUnit.getNextFaceletHandler(CompilationUnit.java:82)
org.apache.myfaces.view.facelets.compiler.NamespaceUnit.createFaceletHandler(NamespaceUnit.java:46)
org.apache.myfaces.view.facelets.compiler.CompilationUnit.getNextFaceletHandler(CompilationUnit.java:82)
org.apache.myfaces.view.facelets.compiler.DoctypeUnit.createFaceletHandler(DoctypeUnit.java:64)
org.apache.myfaces.view.facelets.compiler.CompilationUnit.getNextFaceletHandler(CompilationUnit.java:82)
org.apache.myfaces.view.facelets.compiler.CompilationUnit.createFaceletHandler(CompilationUnit.java:70)
org.apache.myfaces.view.facelets.compiler.CompilationManager.createFaceletHandler(CompilationManager.java:430)
org.apache.myfaces.view.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:765)
org.apache.myfaces.view.facelets.compiler.Compiler.compile(Compiler.java:91)
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory._createFacelet(DefaultFaceletFactory.java:381)
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.access$000(DefaultFaceletFactory.java:57)
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:124)
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:121)
org.apache.myfaces.view.facelets.impl.FaceletCacheImpl.getFacelet(FaceletCacheImpl.java:83)
org.apache.myfaces.view.facelets.impl.FaceletCacheImpl.getFacelet(FaceletCacheImpl.java:50)
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:264)
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:246)
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage._getFacelet(FaceletViewDeclarationLanguage.java:2570)
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.buildView(FaceletViewDeclarationLanguage.java:477)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:78)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 logs.
{noformat}
> Allow to reference composite components directly from facelets taglib file using <resource-id>
> -----------------------------------------------------------------------------------------------
>
> Key: MYFACES-3750
> URL: https://issues.apache.org/jira/browse/MYFACES-3750
> Project: MyFaces Core
> Issue Type: Task
> Components: JSR-344
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
> Fix For: 2.2.0-beta
>
>
> Allow to reference composite components directly from facelets taglib file using <resource-id>
--
This message was sent by Atlassian JIRA
(v6.2#6252)