JSF navigation rule doesn't work on production server

This commit is contained in:
Tim Holloway 2022-01-11 09:00:30 -05:00
parent 8224c5eb31
commit 2d2109c17c
4 changed files with 9 additions and 8 deletions

View File

@ -7,7 +7,7 @@
<groupId>com.mousetech.gourmet</groupId> <groupId>com.mousetech.gourmet</groupId>
<artifactId>gourmetj</artifactId> <artifactId>gourmetj</artifactId>
<version>0.1.1-SNAPSHOT</version> <version>0.1.3-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>GourmetJ</name> <name>GourmetJ</name>

View File

@ -8,10 +8,11 @@
> >
<name>GourmetJ</name> <name>GourmetJ</name>
<navigation-rule> <navigation-rule>
<from-view-id>*</from-view-id> <from-view-id>/*</from-view-id>
<navigation-case> <navigation-case>
<from-outcome>home</from-outcome> <from-outcome>home</from-outcome>
<to-view-id>/main.jsf</to-view-id> <to-view-id>main.jsf</to-view-id>
<redirect/>
</navigation-case> </navigation-case>
</navigation-rule> </navigation-rule>
</faces-config> </faces-config>

View File

@ -390,7 +390,7 @@
<p:commandButton id="doHome" value="Home" <p:commandButton id="doHome" value="Home"
icon="ui-icon-home" icon="ui-icon-home"
ajax="false" immediate="true" ajax="false" immediate="true"
action="home" action="main.jsf"
/> />
</h:form> </h:form>
</p:panel> </p:panel>

View File

@ -47,7 +47,7 @@
<p:commandButton <p:commandButton
value="Back" ajax="false" value="Back" ajax="false"
icon="ui-icon-arrowthick-1-w" icon="ui-icon-arrowthick-1-w"
action="home" action="main.jsf"
immediate="true" immediate="true"
/> />
<p:commandButton ajax="false" <p:commandButton ajax="false"