Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf h:渲染为赋值的输出文本_Jsf_Primefaces - Fatal编程技术网

Jsf h:渲染为赋值的输出文本

Jsf h:渲染为赋值的输出文本,jsf,primefaces,Jsf,Primefaces,我使用的是Primefaces 5.1,当outputText渲染到时,我需要为更多字段赋值 <p:outputPanel> <h:outputText id="StatusId" value="#{student.Status}" rendered="#{student.statusFieldsRendered}"> <f:setPropertyActionListener value="#{common.rightHeader}" target="#{st

我使用的是Primefaces 5.1,当outputText渲染到时,我需要为更多字段赋值

<p:outputPanel>
<h:outputText id="StatusId" value="#{student.Status}"
rendered="#{student.statusFieldsRendered}">
<f:setPropertyActionListener  value="#{common.rightHeader}"  
target="#{student.addMoreField}"/>
</h:outputText>
</p:outputPanel>


我尝试将f:setPropertyActionListener设置为error,然后在将ouputText设置为rendered时为任何其他对象赋值

为什么是用例?非常罕见的问题,当th OUTPUTEXT变为真,将rightHeader分配给AddMoreField时,问题已经很清楚了。但是为什么呢?完整的非技术性用例pleaseController逻辑不在视图中。你这样只会让你自己更难受。只需在某些操作侦听器方法中将
statusfieldsrended
属性更改为
true
时执行此操作。