listeners never worked that way. They never perform navigation, nor do they return anything.
If you need to perform some navigation, then I see two ways.
First - simple. Put h:commandLinks inside treeNodes, and assign action to them. Because they'll be simple commandLinks, you can return the desired outcome and navigate wherever you want.
Second - a bit more difficult. In nodeSelectionListener method, use
FacesContext context = FacesContext.getCurrentInstance(); Application application = context.getApplication(); NavigationHandler navHandler = application.getNavigationHandler(); navHandler.handleNavigation(context, null, outcome); context.renderResponse();
However, I recommend you second approach as it's more straightforward.
Thank you very much for your help. I will just try it - thanks again !