Unable to reach UiEvent

Hi all
I used previously, in a former project, UiEvents to fire information from a Fragment to a Screen.
The code was exactly like:

package com.company.budget2.entity.demand;

import com.haulmont.cuba.gui.events.UiEvent;
import org.springframework.context.ApplicationEvent;

public class CloseEvent extends ApplicationEvent implements UiEvent {
    public CloseEvent(Object source) {

I used this again in a new project, and was stuck on the error message

error: package com.haulmont.cuba.gui.events does not exist
import com.haulmont.cuba.gui.events.UiEvent;

even if the auto-completion helped me to type this line.

Any idea on what I missed ? Thanks in advance for your help on this.
Have a nice day.


UiEvent is located in the cuba-gui module. This class isn’t available in the global module of your project, because gui depends on global, not opposite.

1 Like

Understood, thanks.