2
votes

I'm migrating old projects from JSF 1.2 to JSF 2.0. The projects are JSP based.

I'm having trouble with implicit navigation after the migration. The action methods that return values (Let's say, for internal use) cause JSF to try to navigate to non existing pages.

For example, a method that return "Error" will make the browser try to access /Error.jsp which will result in a 404.

I would like, for these projects, to turn off implicit navigation. Is that possible?

Thanks!

1

1 Answers

1
votes

No, that's not possible. It's however planned for JSF 2.2, see also JSF spec issue 937.

What is it, the internal use for which you're trying to (ab?)use navigation outcomes? Exception handling? You might want to throw a normal exception instead and handle it the usual way.