Reputation: 117
What is limitToList
in JSF, RichFaces? Is it removed in RichFaces 4.x? Are limitToList
and limitRender
the same?
Upvotes: 2
Views: 3274
Reputation: 3186
limitRender
in RichFaces 4.x is what limitToList
is for RichFaces 3.x.
Except for limitReder
is achieved through render
attribute and limitToList
is achieved through reRender
attribute
Below is the explanation from RichFaces reference guide 3.x for 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>
...
Below is the explanation for limitRender
from RichFaces development guide.
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.
References for RichFaces 3.x and 4.x can be found below.
Upvotes: 3