When open ExtGroup browse screen the first time, all entries in the tree are displayed correctly. But when create a new group by clicking menu “Create->New”, fill in elements on Edit screen and return to Browse screen, the newly created group is NOT at the expected position of “order by g.numberOfUsers DESC” (I assume the ordering applies to all children group entries). My questions are:
How to update ExtGroup Browse screen to reflect “order by g.numberOfUsers DESC” when Edit screen is closed?
Why groupsDs is NOT available in ExtGroup Browse controller (It is NOT in the list when using Alt+Inject). Is there any way to access groupsDs and get the list of entries from it?
I found on forum this thread looks similar, but I still can not figure out the problem I am facing:
Let me quickly answer your second question, and having the datasource you should be able to refresh it when needed.
You certainly can inject the datasource into your controller, just do it manually, by specifying a variable of appropriate type and name and annotating it with @Inject. Probably the IDEA plugin that shows you possible injection options just cannot read the components and datasources from the base screen.
Or even better: the base screen GroupBrowser already contains the needed field with protected access:
First of all remove everything unneded from the XML descriptor. In the simplest case when you don’t want to add any visual components, it can be almost empty: