Also mixed in with this was using forEach's varStatus property...something I have had bad luck with in the past.
Basically what was happening, was this forEach was not even on a part of the screen that was getting rendered, but it was causing components to render multiple times and get all mixed up. Pretty hard to track down.
So in this particular case I would get this doubling when I used the following inside of an af:selectOneChoice...
<af:forEach begin="1"
end="#{bindings.SomeIterator.estimatedRowCount}"
var="priorityRow"
varStatus="priorityLoop">
<f:selectItem itemLabel="#{priorityLoop.index}"
itemValue="#{priorityLoop.index}"/>
</af:forEach>
...instead of using someting like the following...
<f:selectItems
value="#{SomeBackingBean.someHashMapProperty[bindings.SomeIterator.estimatedRowCount]}"/>
The use-case for this problem was a bit odd, but nothing too bad...
No comments:
Post a Comment