jsf - JSF、RichFaces 中的 LimitToList 是什么?它在 RichFaces 4.x 中被删除了吗?

标签 jsf richfaces

JSF、RichFaces 中的 limitToList 是什么?它在 RichFaces 4.x 中被删除了吗? limitToListlimitRender 相同吗?

最佳答案

RichFaces 4.x 中的

limitRender 与 RichFaces 3.x 中的 limitToList 相同。

除了limitReder是通过render属性实现的,limitToList是通过reRender属性实现的

以下是 RichFaces 引用指南 3.x 对 limitToList 的解释。

"limitToList" attribute allows to dismiss the behavior of the "ajaxRendered" attribute. limitToList = "true" means to update only the area(s) that mentioned in the "reRender" attribute explicitly. All output panels with ajaxRendered="true" is ignored. An example is placed below:

...
<h:form>
    <h:inputText value="#{person.name}">
        <a4j:support event="onkeyup" reRender="test" limitToList="true"/>
    </h:inputText>
    <h:outputText value="#{person.name}" id="test"/>
</form>
...

下面是 RichFaces 开发指南中对 limitRender 的解释。

RichFaces Ajax-enabled components and Ajax behaviors with limitRender="true" specified will not cause components with ajaxRendered="true" to re-render, and only those components listed in the render attribute will be updated. This essentially overrides the ajaxRendered attribute in other components.

下面可以找到 RichFaces 3.x 和 4.x 的引用。

关于jsf - JSF、RichFaces 中的 LimitToList 是什么?它在 RichFaces 4.x 中被删除了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16332492/

相关文章:

Java Bean getter 不返回值

java - JSF/RichFaces 4 问题 : initiating component while rendering is false

java - 如何从渲染的 h :outputText? 将参数传递给方法

java - JSF 错误 "Expected a child component type ... Found null."

java - Richfaces文件上传: How to set path of temp files and how to clean it

xhtml - richfaces IE10 "Object doesn' t 支持此属性或方法”

当托管 bean 构造函数发送 404 错误代码时,JSF 调用方法

java - Eclipse Kepler 不想在 ctrl 键上打开 jsf 中的 java 代码

json - 如何从 JSF 生成 JSON 响应?

jsf - 如何以编程方式创建命令链接