2016-07-27 1 views
0

内にある場合は、ここでの複合体は次のとおりです。P:必要に応じてマークされていないoutputLabel目標入力は非常に単純な方法では、複合

<ui:component 
    xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:f="http://xmlns.jcp.org/jsf/core" 
    xmlns:h="http://xmlns.jcp.org/jsf/html" 
    xmlns:cc="http://xmlns.jcp.org/jsf/composite" 
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets" 
    xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" 
    xmlns:fn="http://xmlns.jcp.org/jsp/jstl/functions" 
    xmlns:p="http://primefaces.org/ui" 
> 
    <cc:interface> 
     <cc:attribute name="value" /> 
     <cc:attribute name="required" /> 
     <cc:editableValueHolder name="calendar" /> 
    </cc:interface> 

    <cc:implementation> 
     <p:calendar id="calendar" value="#{cc.attrs.value}" required="#{cc.attrs.required}" showOn="button"/> 
    </cc:implementation> 
</ui:component> 

ここで私はそれを使用する方法:

<p:outputLabel for="rat:calendar" value="Hello" /> 
<my:calendar id="rat" required="true"/> 

Aは=必要真のアイコンは表示されますが、表示されません。 OutputLabelRendererでは、118行目を除いてうまく見えますが、明示的にtrueを設定している間はinput.isRequired()はfalseを返します。私はそれがPrimefacesに関連していると思いますが、JSFの問題のように見える(私はクロサギ科2.2.13を使用して、同様のMyFaces 2.2.4に再現しています)のMyFacesによって提供さ

+0

問題PrimeFacesに実際にあります。 – BalusC

+0

それによると、それはPFの問題ではありません。https://github.com/primefaces/primefaces/issues/1633 – Rapster

+0

さらに、私は 'h:outputText'の問題を再現しました。 – Rapster

答えて

関連する問題