We use composite components inside other components in our project. Everything works fine on JBoss 7.1.0 , but on JBoss 7.1.1 we get errors like this:
No handlers found for exception javax.faces.view.facelets.TagException: /resources/components/my/bigComponent.xhtml @21,47 <my:nestedComponent> Tag Library supports namespace: http://java.sun.com/jsf/composite/components/my, but no tag was defined for name: nestedComponent
We tried the solution proposed in this community of the JBoss community , but it did not change anything to our problem (we are not the only seams in this case , and the solution may not work, because we are also in the ui:define tag from the template file).
Here are two of our components:
Nesting:
<!DOCTYPE html PUBLIC ...> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:my="http://java.sun.com/jsf/composite/components/my" > <cc:interface componentType="..."> <h:panelGroup> <cc:attribute name="someAttribute" /> </h:panelGroup> </cc:interface> <cc:implementation> <my:nestedComponent content="a text" /> </cc:implementation> </html>
Nested:
<!DOCTYPE html PUBLIC ...> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:cc="http://java.sun.com/jsf/composite"> <cc:interface> <cc:attribute name="content" /> </cc:interface> <cc:implementation> <h:outputText value="#{cc.attrs.content}" /> </cc:implementation> </html>
Is this a regression? Are we doing something wrong? In the 1st link, the proposed solution implies something like this in the nesting component:
<composite:interface> <composite:facet name="greet1"/> <composite:facet name="greet2"/> </composite:interface> <composite:implementation> <lib:greet1 name="Stan" /> <lib:greet2 name="Silvert" /> </composite:implementation>
What is this composite:facet without composite:renderFacet for?
source share