PopupView with a list of link buttons displays only the last

Hi

I try to create a popup view with 3 link buttons but when opening the popup only the last one is displayed.
image

With chrome devtools I can see that the slots for the 2 others were created but as empty
image

Attached sample project.

poplink.zip (77.9 KB)

Hi,

Just a copypaste bug: you set different captions three times for one and the same button1 here:

        LinkButton button1 = factory.createComponent(LinkButton.class);
        button1.setCaption("button1");

        LinkButton button2 = factory.createComponent(LinkButton.class);
        button1.setCaption("button2");

        LinkButton button3 = factory.createComponent(LinkButton.class);
        button1.setCaption("button3");

        box.add(button1);
        box.add(button2);
        box.add(button3);

Just fix the numbers, and it will work as should.

Oh my… Thanks Olga