Controller – navigace

Volání akce:

...
<h:commandButton value="press me" action="#{helloAction.send}"/>
...		

Do pages.xml přidat:


<rule view-id="/index.xhtml">
        <navigation>
                <rule if-outcome="success">
                        <redirect view-id="/hello.xhtml"/>
                </rule>
        </navigation>
</rule>
12/42