The NPE comes from the FacesContext self.
It's always the first beforePhase which throws the NPE!
As a workaround I surround the call of the trim-method with a if-check!
| //Check if the Context has no ViewRoot
| if (context.getViewRoot() != null) {
| trimUIInputStrings(context.getViewRoot().getChildren());
| }
|
Now It works without throwing a NPE...
It seems, that the ViewRoot of the context is null in the first beforePhase call.
Maybe you have a propper solution
Cheers
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122090#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...