Blame view

war/src/main/webapp/view/example/MovieEdit.page.xml 1.12 KB
Krzysztof Miksa authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<?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>