Hi,
I created a simple composite compenent test.xhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:cc="http://java.sun.com/jsf/composite">
<cc:interface>
<cc:attribute name="inValue" required="true"/>
</cc:interface>
<cc:implementation>
<h:outputText value ="#{cc.attrs.inValue}"/>
</cc:implementation>
</html>
I placed the file under a directory components, such that after deployment it can be found under WEB-INF/components/test.xthml.
I am trying to access it in another test2.xhtml with namespace as:
xmlns:util="http://java.sun.com/jsf/composite/components"
I refer the component in test2 as follows:
<util:
test inValue="123456"/>
My issue is that when I run the application I get the following error:
Warning: This page calls for XML namespace
http://java.sun.com/jsf/composite/components declared with prefix util but no taglibrary exists for that namespace.
What am I missing?