f:ajax渲染接受的值

时间:2015-03-09 10:37:11

标签: ajax jsf render

在JSF中,我可以使用ajax更新组件:

<h:commandButton ...>
    <f:ajax render="@form" />
</h:commandButton>

我在网络上找到了其中一些值:@form @this @parent @none @region @all

是否有<f:ajax>附带的标准值的完整列表?这些值是否有一个我可以查找的特殊名称?

1 个答案:

答案 0 :(得分:3)

只需查看<f:ajax> tag documentation

  

呈现

     

评估为Collection<String>。将参与&#34;呈现&#34;的组件的clientIds。请求处理生命周期的一部分。如果指定了文字,则标识符必须以空格分隔。任意关键字&#34; @this&#34;,&#34; @form&#34;,&#34; @all&#34;,&#34; @none&#34;可以在标识符列表中指定。如果未指定,则默认值为&#34; @none&#34;假设。例如,@this clientIdOne clientIdTwo

您提到的其他人(@region@parent)可以从PrimeFaces <p:ajax>中识别出来。因此,如果您在<f:ajax>上尝试时遇到问题,那么您现在应该了解原因。

相关问题