java 控件命名_java – 找不到JSF 2.1.13自定义组件:标签库支持命名空间:但没有为名称定义标记:...

问题

我正在使用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">

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值