[seam-commits] Seam SVN: r11004 - examples/trunk/servlet-permalink/src/main/webapp/WEB-INF.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue May 26 12:45:02 EDT 2009
Author: dan.j.allen
Date: 2009-05-26 12:45:01 -0400 (Tue, 26 May 2009)
New Revision: 11004
Modified:
examples/trunk/servlet-permalink/src/main/webapp/WEB-INF/faces-config.xml
Log:
add navigation case for view action
remove unnecessary navigation cases
Modified: examples/trunk/servlet-permalink/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- examples/trunk/servlet-permalink/src/main/webapp/WEB-INF/faces-config.xml 2009-05-26 16:44:26 UTC (rev 11003)
+++ examples/trunk/servlet-permalink/src/main/webapp/WEB-INF/faces-config.xml 2009-05-26 16:45:01 UTC (rev 11004)
@@ -7,18 +7,6 @@
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
- <from-outcome>home</from-outcome>
- <to-view-id>/home.xhtml</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>entry</from-outcome>
- <to-view-id>/entry.xhtml</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>category</from-outcome>
- <to-view-id>/category.xhtml</to-view-id>
- </navigation-case>
- <navigation-case>
<from-action>#{blog.search}</from-action>
<to-view-id>/home.xhtml</to-view-id>
<redirect include-view-params="true"/>
@@ -32,6 +20,12 @@
<to-view-id>#{view.viewId}</to-view-id>
<redirect include-view-params="true"/>
</navigation-case>
+ <navigation-case>
+ <from-action>#{blog.loadLatestEntriesInCategory}</from-action>
+ <if>#{blog.category eq null}</if>
+ <to-view-id>/home.xhtml</to-view-id>
+ <redirect/>
+ </navigation-case>
</navigation-rule>
<navigation-rule>
More information about the seam-commits
mailing list