Hi
Not sure if I understand the problem correctly. One thing you could do to inform the server side what item the user clicked is by adding an additional server call.
app/controller/Viewport.js
The onSelectionChange method is called when the user clicks a menu item. Instead of opening the view directly the application first calls a server method and if successful opens the view.
onSelectionChange: function(treePanel, selected) {
var me = this;
if (selected && selected.length === 1) {
navigationService.treeItemClicked(selected[0].raw.view, function() {
me.pushHistoryState(selected[0]);
});
}
},
The server method looks something like this and adds the name of the view into the session
@ExtDirectMethod
public void treeItemClicked(HttpSession session, String view) {
System.out.println(view);
session.setAttribute("aKey", view);
}
The AppLocaleResolver class has access to the session and is able to read the value 'aKey'.
The disadvantage of this solution is that there is a delay between the click on the menu item and the view opening because of the server roundtrip.
Hope this helps.
Happy Holidays
Ralph