[英]Jsf composite component not working
I am getting "/pages/addressBook.xhtml @171,105 Tag Library supports namespace: http://java.sun.com/jsf/composite/compositeComponents , but no tag was defined for name: mailInputText" error. 我收到“ /pages/addressBook.xhtml @ 171,105标记库支持名称空间: http : //java.sun.com/jsf/composite/compositeComponents ,但没有为名称定义任何标记:mailInputText”错误。
here is my xhtml; 这是我的xhtml;
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:bzn="http://java.sun.com/jsf/composite/compositeComponents"
xmlns:f="http://java.sun.com/jsf/core">
//some stuff
<bzn:mailInputText id="mailInputId"
value="#{addressBookController.selectedContact.electronicMail}"/>
here is my composite component: 这是我的复合组件:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<composite:interface>
<composite:attribute name="id"/>
<composite:attribute name="value"/>
<composite:attribute name="required" required="false" default="false"/>
</composite:interface>
<composite:implementation>
<p:inputText id="#{cc.attrs.id}"
value="#{cc.attrs.value}"
required="#{cc.attrs.required}">
<f:validateRegex
pattern="^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$" />
</p:inputText>
</composite:implementation>
Saxon.jar causing this problem. Saxon.jar导致此问题。 I removed it from libs and now It's working perfectly.
我从库中删除了它,现在它运行良好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.