MovieEdit.page.xml 1.12 KB
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://jboss.com/products/seam/pages"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
      no-conversation-view-id="/MovieList.xhtml"
      login-required="true">

   <begin-conversation join="true" flush-mode="MANUAL"/>

   <action execute="#{movieHome.wire}"/>

   <param name="movieFrom"/>
   <param name="movieId" value="#{movieHome.movieId}"/>


   <navigation from-action="#{movieHome.persist}">
      <rule if-outcome="persisted">
         <end-conversation/>
         <redirect view-id="/view/example/Movie.xhtml"/>
      </rule>
   </navigation>

   <navigation from-action="#{movieHome.update}">
      <rule if-outcome="updated">
         <end-conversation/>
         <redirect view-id="/view/example/Movie.xhtml"/>
      </rule>
   </navigation>

   <navigation from-action="#{movieHome.remove}">
      <rule if-outcome="removed">
         <end-conversation/>
         <redirect view-id="/view/example/MovieList.xhtml"/>
      </rule>
   </navigation>

</page>