「required」および「rendered」属性を持つprimefaces outpulabelとinputtextを使用したいと思います。
この組み合わせは機能しています:
<p:outputLabel value="Input" for="input" />
<p:inputText id="input" required="true" value="#{myBean.input}"
保存をクリックしても何も入力されなかった場合、推定エラー メッセージが表示されます。
しかし、「レンダリング」属性を追加すると、機能しなくなります。
<p:outputLabel value="Input" for="input" rendered="<some option is true>"/>
<p:inputText id="input" required="true" value="#{myBean.input}" rendered="<some option is true>"/>
これらの要素はタグでラップされています。バージョン3.5でprimefacesを使用しています
誰かがここで何が悪いのか考えていますか?
ありがとう