users@glassfish.java.net

Re: GF3.1 NullPointerException in NavigationHandlerImpl

From: <forums_at_java.net>
Date: Mon, 25 Jul 2011 01:29:41 -0500 (CDT)

 

Try the below workaround code:

if (fc.getViewRoot() == null) {
                        UIViewRoot root = new
UIViewRoot();
                        root.setViewId("");
                        fc.setViewRoot(root);
                    }
fc.getApplication().getNavigationHandler().handleNavigation(fc, null,
"notlogged");

Best,
Mateus


--
[Message sent by forum member 'mateus']
View Post: http://forums.java.net/node/788365