简体   繁体   English

f:ajax渲染接受哪些值

[英]Which values do f:ajax render accept

In JSF I can update components with ajax: 在JSF中,我可以使用ajax更新组件:

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

I found some of these values in the web: @form @this @parent @none @region @all . 我在网上找到了其中一些值: @form @this @parent @none @region @all

Is there a complete list of the standard values which come with <f:ajax> ? 是否有<f:ajax>随附的标准值的完整列表? And do these values have a special name which I could lookup? 这些值是否有我可以查找的特殊名称?

Just look in <f:ajax> tag documentation . 只需查看<f:ajax>标记文档

render 渲染

Evaluates to Collection<String> . 评估为Collection<String> The clientIds of components that will participate in the "render" portion of the Request Processing Lifecycle. 将参与请求处理生命周期的“呈现”部分的组件的clientIds。 If a literal is specified the identifiers must be space delimited. 如果指定了文字,则标识符必须以空格分隔。 Any of the keywords " @this ", " @form ", " @all ", " @none " may be specified in the identifier list. 可以在标识符列表中指定任何关键字“ @this ”,“ @form ”,“ @all ”,“ @none ”。 If not specified, the default value of " @none " is assumed. 如果未指定,则假定默认值为“ @none ”。 For example, @this clientIdOne clientIdTwo . 例如,@ @this clientIdOne clientIdTwo

The others you mentioned ( @region and @parent ) are recognizable as from PrimeFaces <p:ajax> . 从PrimeFaces <p:ajax>可以识别您提到的其他对象( @region@parent )。 So if you were actually facing problems while trying that on <f:ajax> , you should now understand why. 因此,如果在<f:ajax>上尝试操作时确实遇到问题,则现在应该了解原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM