JSF、RichFaces 中的 limitToList
是什么?它在 RichFaces 4.x 中被删除了吗? limitToList
和 limitRender
相同吗?
最佳答案
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/