xPages error message in designer

After adding a “pager” on a custom control I’m no longer able to edit the design. When I try to open my design-elements (both custom controls and corresponding xPage) I get the message: " Could not open the editor: Index does not exist ".There is also a detail button which gives a long list of eclipse/java errors. The first one is “java.lang.IndexOutOfBoundsException: Index does not exist”.

If I open the xPage in a browser it looks ok. So it seems to “be there”, but unable to open in designer.

Any suggestions?

Subject: Same here

I know this is an old post but I am having the same issue. After adding a pager to a tabbed panel I am getting the "Could not open the editor: Index does not exist " error. There are other tabbed panels that have a pager that are not causing the issue. I can compare the custom control to a blank one and remove the pager and the error is gone. Are there any written rules on using pagers and issues they may cause?

Subject: Partly solution

I don’t know how to fix the “corrupt” design elements, but I found a way to re-create them.

From the outline-entry ‘Custom controls’ in the designer I could right-click on my corrupt element and select ‘Compare with’ - ‘Local history’. By selecting an entry the source-code was displayed. I copied the text, created a new custom control and removed my pager before I saved it.

OK!

Subject: Another pager-problem

Just in case someone searches on ’ pager and problem '.

I added two pagers on one xPage. Both connected to repeater-controls referencing the same notes-view.

This resulted in problems for the second pager. It resulted in a blank list when I clicked on ‘page 2’.

One solution was to duplicate the view and let the repeaters reference separate views.

Maybe I could do this another way?

Subject: another option

I had this problem yesterday, don’t really know why, but another way to solve this is to open the Java perspective and from there you’ll have access to the socurce of your control. Remove the pager part, save the control, and in theory you’ll be able to open it in the Designer perspective again (you’ll have to add the pager again).

Subject: Package Explorer/XML Editor

I have the same problem in 8.5.1. I have a custom control with a customized pager (XPages: Adding controls inside a pager | DontPanic - a blog about Lotus Notes / Domino) that I can’t edit using the standard editor any more.

I use the XML editor to edit the source code. To do this: Window->Show Eclipse Views->Other…->Java->Package Explorer, find the XPage/Custom Control and double click it.