Issues in extending UI to add custom client side connector

We want to extend the main App instance that extends from UI to send some custom events.

For example we have app


public class App extends UI ... {

}

Then I have the App connector as following:


@Connect(App.class)
public class AppConnector extends UIConnector {
...
}

Then I created AppState as following:


public class AppState extends UIState {
...
}

In the App class I override following methods


@Override
public AppState getState() {
    return (AppState) super.getState();
}
    
@Override
public Class<? extends UIState> getStateType() {
   return AppState.class;
}

I register RPC handlers as required.

The widgets compile fine but when I open the app in the browser it does not show anything in the browser and neither any error.

We have successfully extended using similar RPC/Shared Sate based for various of our UI components but only UI instance it is creating this problem.

Please suggest!

Nobody?

It is not possible due to an explicit if (connectorClass != UIConnector.class) check in ApplicationConnection. Created
#10868