Jsf 带绑定的facelet合成控件(自定义标记)

Jsf 带绑定的facelet合成控件(自定义标记),jsf,facelets,icefaces,custom-tag,Jsf,Facelets,Icefaces,Custom Tag,我在创建Facelet合成控件(=自定义标记)时遇到问题 这是组件的模板(numberinput.jspx)。我在custom-taglib.xml中声明了 到目前为止,包含使用以下代码: <ft:numberInput nullablenumber="true" cid="myId" bind="#{myBean.mySpecialComponent}" value="#{myBean.li

我在创建Facelet合成控件(=自定义标记)时遇到问题

这是组件的模板(numberinput.jspx)。我在custom-taglib.xml中声明了

到目前为止,包含使用以下代码:

<ft:numberInput nullablenumber="true" cid="myId" 
                        bind="#{myBean.mySpecialComponent}"
                        value="#{myBean.license.myProperty }" 
                            label="My Label"/>

这就是模板:

<div id="c_#{cid}"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:ft="http://www.mycomp.com/facelets"
    xmlns:c="http://java.sun.com/jsp/jstl/core" style="overflow:auto" >
    <ui:composition>    
    <ice:message for="#{cid}"></ice:message>
    <ice:outputLabel for="#{cid}">#{label }</ice:outputLabel>

    <ice:inputText          
        id="#{cid}"
        value="#{value}"        
        style="#{style }"   
        required="false"
        disabled="#{disabled }"
        binding="#{ bind}"
        >       
        <f:validator validatorId="notnull"/>    
        <f:converter converterId="nullableNumber"/>

    </ice:inputText> 
    </ui:composition>


</div>

#{label}
当我的页面上有多个这样的标签时,我的问题就会出现。我觉得Facelets很混乱,只显示了其中的一组,这真的很奇怪

我的代码有什么问题吗?还是Facelets就像看起来一样有问题

非常感谢

根据我目前的经验,我只能劝阻任何人使用Facelets自定义标记(至少在使用组件绑定时)

环境信息:我正在使用ICEFaces 1.8.2和Tomcat 6发现问题! 出现问题的原因是 我还有第二个ice:inputText控件,它绑定到同一个后端bean proberty。这似乎给JSF组件树的生成带来了很多问题

我的错,但如果JSF给出任何提示或错误消息,而不是表现得很怪异,那还是很好的…

请详细说明“我的问题”。谢谢,我(相当短)的详细说明被一个未关闭的标记吃掉了。。。