Invoking a window extension

Hello, i’m extending a screen in my app, and i’m sure to use AbstractWindow
Screenshot_2
but as i invoke it with openWindow(“my-fancy-window”, OpenType.THIS_TAB) method, i get an exception which i cannot understand…
Screenshot_1
I cleaned a project and sure that i never used AbstractEditor extensions in this case. I think I have this cos i use WindowActions at the bottom of my frame, and it’s full name is editWindowActions. But i don’t have multiple entities to edit in my screen, so that i want them to be saved on OK and discarded on Cancel… Should i make my own custom buttons then?

Hi, @ocrio.box

it seems that you use <frame id="windowActions" screen="editWindowActions"/> in your screen descriptor, don’t you?

If it is so you should add windowCommit and windowClose actions in screen controller:

addAction(new AbstractAction("windowCommit") {
    @Override
    public void actionPerform(Component component) {
        // commit action
    }
});

addAction(new AbstractAction("windowClose") {
    @Override
    public void actionPerform(Component component) {
        // close action
    }
});

Regards,
Daniil.

1 Like

True. Thank you. I was thinking of overriding these actions, but came to a conclusion that it would be more simple to make my own buttons frame