Community
Participate
Working Groups
Currently all views that are used in Riena are required to be shared views even if they are only used in one place. The reason is that we allways supply a secondID when we actually create the view, see: class SwtViewProvider private SwtViewId createAndRegisterSwtViewId(INavigationNode<?> node) { .... swtViewId = new SwtViewId(viewId, getNextSecondaryId(viewId)); So views must be shared even so we only use one instance of an RPC View and bind that instance again and again.
hho: I dont't think this is the case ... anyway there is a bug in class SwtViewProvider that makes all views of a type shared views if the first view of that type is shared. After appliying the attached fix have a look at the "Shared View Demo" module of the "SWT Example Application", subapplication "Playground". There a 3 views of the same type (ie they use the same navigation node typeId and the same view class). The first and third submodule use the same instance of that class (= a shared view), the second submodule uses its own instance (see instance counter in the upper left work area)
Created attachment 120166 [details] shared view fix
patch applied