This content has been marked as final.
Show 3 replies
-
1. Re: On Tree Seletion go to other Page
maksimkaszynski Sep 27, 2007 6:19 AM (in response to maxmustang)Max,
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, useFacesContext context = FacesContext.getCurrentInstance(); Application application = context.getApplication(); NavigationHandler navHandler = application.getNavigationHandler(); navHandler.handleNavigation(context, null, outcome); context.renderResponse();
-
2. Re: On Tree Seletion go to other Page
maksimkaszynski Sep 27, 2007 6:20 AM (in response to maxmustang)However, I recommend you second approach as it's more straightforward.
-
3. Thank you - Re: On Tree Seletion go to other Page
maxmustang Sep 28, 2007 2:33 PM (in response to maxmustang)maksimkaszynski,
Thank you very much for your help. I will just try it - thanks again !
Max