I am getting the following error in Eclipse:
The action value does not match a navigation case outcome
on the following line:
<h:commandLink value="Add person" action="add?faces-redirect=true" />
I am using JSF 2, Tomcat 6, Glassfish el.
Any ideas, why I am getting this, and how to solve it?
Ignore and run it. Eclipse is relying on it being present as <navigation-case> declaration in faces-config.xml the JSF 1.x way. It does by default not recognize new JSF 2.x implicit navigation and likes yet and therefore gives false warnings.
It's likely fixed in a newer Eclipse release. In the meanwhile, you could consider to turn off JSF validation in Eclipse preferences, it will only lead to more confusion and annoyances.
Note that this is in no way related to EL. You aren't using #{} anywhere.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With