3 Replies Latest reply: Jun 12, 2012 11:02 AM by jmighion RSS

Nested composite compounds not working in combination with ui:include

valentinx Newbie

Hello everyone,

 

since we updated from 7.1.0.Final to 7.1.1.Final we ran into some troubles with nested composite compounts. (7.1.0.Final everythings works like a charm). Maybe someone got a bright moment and can help me with that.

 

we have several composite components created for our jsf2.1 page within several maven projects.

we have combined everything that is in common in a single jar such as the templates for our page and we are using them as reference.

After the patch our page revokes to work with the message:

 

javax.servlet.ServletException: /resources/composites/test.xhtml @19,33 <lib:greet1> Tag Library supports namespace: http://java.sun.com/jsf/composite/composites, but no tag was defined for name: greet1

javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)

common.web.filter.SessionFilter.doFilter(SessionFilter.java:25)

org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

 

based on composite.zip (https://community.jboss.org/thread/196737) i have used lib:useboth with the nested greet1 and greet2 (composite on its own works fine) and put them into our template schema.

IF and only if we are using the tag <ui:include> before the call of the component. if the component is the first in line it is rendered as it should be.

 

<head>

<!-- some css imports-->

</head>

<body>

     <lib:greet/>

</bod>

 

working like a charm

 

<head>

<!-- some css imports-->

</head>

<body>

     <ui:include src="some.xhmtl>

     <lib:test/>

</bod>

 

not working EVEN if the some.xhtml is like

<html

xmlns="http://www.w3.org/1999/xhtml"

    xmlns:h="http://java.sun.com/jsf/html"

    xmlns:f="http://java.sun.com/jsf/core"

    xmlns:ui="http://java.sun.com/jsf/facelets"

    xmlns:c="http://java.sun.com/jsp/jstl/core"

><ui:composition></ui:composition></html>

 

anyone anyidea plz?

regards,

Mo