You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/05/03 16:06:56 UTC

svn commit: r534870 - /lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx

Author: andreas
Date: Thu May  3 07:06:55 2007
New Revision: 534870

URL: http://svn.apache.org/viewvc?view=rev&rev=534870
Log:
Use POST forms with submit buttons instead of links to trigger workflow usecases.

Modified:
    lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx

Modified: lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx?view=diff&rev=534870&r1=534869&r2=534870
==============================================================================
--- lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx (original)
+++ lenya/trunk/src/modules-core/workflow/usecases/multiWorkflow.jx Thu May  3 07:06:55 2007
@@ -106,11 +106,12 @@
           </jx:choose>
           <td>
             <jx:forEach var="usecaseName" items="${doc.getUsecases()}">
+              <!-- Use this if you prefer links to buttons. Caution: they don't use POST requests.
               <a href="?lenya.usecase=${usecase.getName()}&amp;lenya.continuation=${continuation.id}&amp;submit=Submit&amp;style=${style}&amp;usecaseName=${usecaseName}&amp;url=${doc.getUrl()}">
                 <i18n:text><jx:out value="${usecaseName}"/></i18n:text>
               </a>
               &#160;&#160;
-              <!-- Use this if you prefer form buttons
+              -->
               <form method="POST" id="form-overview" style="display: inline;">
                 <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
                 <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
@@ -119,7 +120,6 @@
                 <input type="hidden" name="url" value="${doc.getUrl()}"/>
                 <input type="submit" name="submit" value="${usecaseName}" i18n:attr="value"/>
               </form>
-              -->
             </jx:forEach>
           </td>
         </tr>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org