问题
我正在使用JSF 2.1.13创建一个原型来展示JSF对我们当前使用JSP和struts 1.1构建的webapp的好处.我使用JSF 2.2.6的代码跟踪代码,但是一旦我发现Oracle Weblogic 12c还不支持JSF 2.2,我就不得不降级.使用2.1.13运行代码时收到以下错误:
/pages/sites/tab-details.xhtml @27,90 Tag Library supports namespace: http://java.sun.com/jsf/composite/ccc,but no tag was defined for name: codedType
码
摘录自pom.xml
com.sun.faces
jsf-api
2.1.13
com.sun.faces
jsf-impl
2.1.13
Composite Compontent:webapp / WEB-INF / resources / ccc / codedType.xhtml
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:cc="http://java.sun.com/jsf/composite">
shortDescription="Instance of CodedType to be properly rendered"
type="company.prototype.uireplacement.presenter.CodedType" />
shortDescription="Whether or not the rendeder type should include the code"
type="boolean" default="false"/>
#{cc.attrs.value.label} (#{cc.attrs.value.code})
使用复合组件的页面:webapp / pages / sites / tab-details.xhtml
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:ccc="http://java.sun.com/jsf/composite/ccc">