Ben
Ben

Reputation: 10288

Can I Turn Off Implicit Navigation in Jsf 2.0?

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!

Upvotes: 2

Views: 512

Answers (1)

BalusC
BalusC

Reputation: 1108802

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.

Upvotes: 1

Related Questions