I'm using JBoss AS / WildFly with JSF 2.2. This is an example of my faces-config.xml file. From outcome of my starting page (the menu page) I want to call the next one, to-view-id uses EL.
<navigation-rule>
<from-view-id>/index.xhtml</from-view-id>
<!-- Sales -->
<navigation-case>
<from-outcome>AUFTRAGSSUCHE</from-outcome>
<to-view-id>#{salesOrders.start()}</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>AUFTRAGSERFASSUNG</from-outcome>
<to-view-id>#{salesOrderEntry.start()}</to-view-id>
</navigation-case>
</navigation-rule>
Works, but problem is, that user chose AUFTRAGSERFASSUNG the EL for all cases before, here only AUFTRAGSSUCHE get evaluated. Although the from-outcome is different. In reality the list of navigation-cases is much longer. If user chose to start the last entry, all others before get evaluated. Means the beans get instantiated, ... Not a lightweight thing. So you can feel the difference, first menu entries start fast, last ones very slow.
Why are those EL expressions evaluated? Do I have a chance to switch this off? Any other hint how to improve this?