我想使用primefaces outpulabel和一个带有“required”和“rendered”属性的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
有没有人知道这里有什么问题?
谢谢