Author: dan.j.allen
Date: 2009-04-02 16:06:40 -0400 (Thu, 02 Apr 2009)
New Revision: 10277
Modified:
trunk/seam-gen/icefaces/view/edit.page.xml.ftl
trunk/seam-gen/view/edit.page.xml.ftl
Log:
explicitly check outcome value of CRUD operation before navigating
Modified: trunk/seam-gen/icefaces/view/edit.page.xml.ftl
===================================================================
--- trunk/seam-gen/icefaces/view/edit.page.xml.ftl 2009-04-02 18:01:34 UTC (rev 10276)
+++ trunk/seam-gen/icefaces/view/edit.page.xml.ftl 2009-04-02 20:06:40 UTC (rev 10277)
@@ -37,21 +37,21 @@
</#if>
<navigation from-action="${'#'}{${homeName}.persist}">
- <rule>
+ <rule if-outcome="persisted">
<end-conversation/>
<redirect view-id="/${pageName}.xhtml"/>
</rule>
</navigation>
<navigation from-action="${'#'}{${homeName}.update}">
- <rule>
+ <rule if-outcome="updated">
<end-conversation/>
<redirect view-id="/${pageName}.xhtml"/>
</rule>
</navigation>
<navigation from-action="${'#'}{${homeName}.remove}">
- <rule>
+ <rule if-outcome="removed">
<end-conversation/>
<redirect view-id="/${masterPageName}.xhtml"/>
</rule>
Modified: trunk/seam-gen/view/edit.page.xml.ftl
===================================================================
--- trunk/seam-gen/view/edit.page.xml.ftl 2009-04-02 18:01:34 UTC (rev 10276)
+++ trunk/seam-gen/view/edit.page.xml.ftl 2009-04-02 20:06:40 UTC (rev 10277)
@@ -30,21 +30,21 @@
</#if>
<navigation from-action="${'#'}{${homeName}.persist}">
- <rule>
+ <rule if-outcome="persisted">
<end-conversation/>
<redirect view-id="/${pageName}.xhtml"/>
</rule>
</navigation>
<navigation from-action="${'#'}{${homeName}.update}">
- <rule>
+ <rule if-outcome="updated">
<end-conversation/>
<redirect view-id="/${pageName}.xhtml"/>
</rule>
</navigation>
<navigation from-action="${'#'}{${homeName}.remove}">
- <rule>
+ <rule if-outcome="removed">
<end-conversation/>
<redirect view-id="/${masterPageName}.xhtml"/>
</rule>
Show replies by date