[jboss-user] [JBoss Seam] - Re: PhaseListener in Seam 2.0
wachtda
do-not-reply at jboss.com
Tue Jan 22 04:11:20 EST 2008
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#4122090
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122090
More information about the jboss-user
mailing list