Reputation: 2359
I have a Custom Control with with 4 repeat controls. One of the repeat controls is nested inside another, so it's much like this:
<repeat...>
</repeat...>
<repeat... var="row" value="calculations...">
<repeat... var="cell" value="more calculations...">
<field label="cell.label">
</field>
</repeat...>
</repeat...>
<repeat...>
</repeat...>
Now, if I use repeatControls=false, it almost works except that I get "cell not found" when partially refreshing the entire control. When I use repeatControls=true, the calculations above happen AFTER the load of the repeats, so nothing is displayed. And I have to be able to do a partial refresh of the entire control if needed.
How can I address this limitation? Where is that variable 'cell'? Why cannot XPages find it?
Thanks for your great help!
Update
The error also occurs when saving the document. The document is opened, a button is used to place it in edit-mode, a field is changed and then the save-button is clicked. Somehow, the repeat-var is 'not found'.
Upvotes: 1
Views: 398
Reputation: 15729
I've seen this happen with nested repeat controls in the ApplyRequestValues phase of a partial refresh. It might be worth confirming if that's what you're encountering here.
One way to check is to use XPages OpenLog Logger with a custom error page. That will capture a stack trace which will include the phase the error first occurs in. The lines that start "com.sun.faces.lifecycle" are the ones that pinpoint the current phase.
If so, this is the solution I use http://www.intec.co.uk/dataviews-and-nested-repeats/
Upvotes: 2