Dang, this is really quite spiffy. Thanks for the idea!<div><br><br><div class="gmail_quote">On Mon, Feb 7, 2011 at 1:42 PM, Francisco Obispo <span dir="ltr">&lt;<a href="mailto:fobispo@isc.org">fobispo@isc.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Well, what I would do, is keep the underlying &#39;save&#39; and &#39;close&#39; methods as private:<br>
<br>
<br>
sub save : Private {<br>
  my ($self,$c)=@_;<br>
<br>
  # your save code goes here<br>
<br>
}<br>
<br>
sub close : Private {<br>
  my ($self,$c)=@_;<br>
<br>
  # your close code goes here<br>
<br>
}<br>
<br>
<br>
That way you could have:<br>
<br>
sub action : Local {<br>
  my ($self,$c)=@_;<br>
  $c-&gt;forward(&#39;save&#39;);<br>
  $c-&gt;forward(&#39;close&#39;) if $c-&gt;request-&gt;param(&quot;close&quot;); # or something<br>
}<br>
<br>
<br>
Francisco<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Feb 7, 2011, at 11:29 AM, Len Jaffe wrote:<br>
<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Feb 7, 2011 at 11:41 AM, will trillich &lt;<a href="mailto:will.trillich@serensoft.com">will.trillich@serensoft.com</a>&gt; wrote:<br>
&gt; Catalystry:<br>
&gt;<br>
&gt; So there&#39;s a second page where they fill out some finalization options (with the original data in hidden fields) and there they have a final &quot;submit&quot; button for the purpose. And they should be able to use their browser&#39;s &quot;back&quot; button to get back to the edit form.<br>

&gt;<br>
&gt;<br>
&gt; The problem we&#39;re wrestling with is that the &quot;edit&quot; action should have a URL distinct from the close action so that the user can hit the &quot;back&quot; button if need be.<br>
&gt;<br>
&gt; /item/# &lt;= view item<br>
&gt; /item/#/edit &lt;= edit form<br>
&gt; /item/#/close &lt;= confirm-close form<br>
&gt;<br>
&gt;<br>
&gt; Nah. I wouldn&#39;t have two URLs.  I&#39;d have one URL, and determine whether to save or save+close based on the value of the submit button.<br>
&gt; Furthernore, after a successful submit (assuming http POST) I&#39;d redirect the user to a new display page via GET so that they can hit the refresh button all the like without attempting to repost the submission.<br>

&gt;<br>
&gt; Len.<br>
&gt;<br>
&gt; --<br>
&gt; <a href="mailto:lenjaffe@jaffesystems.com">lenjaffe@jaffesystems.com</a>   614-404-4214<br>
&gt; Asst. Scoutmaster Troop 156 - <a href="http://www.bsatroop156.org" target="_blank">www.bsatroop156.org</a> - <a href="mailto:webmaster@bsatroop156.org">webmaster@bsatroop156.org</a><br>
&gt; Proprietor: <a href="http://www.theycomewithcheese.com/" target="_blank">http://www.theycomewithcheese.com/</a> - An Homage to Fromage<br>
</div></div>&gt; _______________________________________________<br>
&gt; List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
&gt; Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
&gt; Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
&gt; Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br>
Francisco Obispo<br>
Hosted@ Programme Manager<br>
email: <a href="mailto:fobispo@isc.org">fobispo@isc.org</a><br>
Phone: +1 650 423 1374 || INOC-DBA *3557* NOC<br>
Key fingerprint = 532F 84EB 06B4 3806 D5FA  09C6 463E 614E B38D B1BE<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>The first step towards getting somewhere is to decide that you are not going to stay where you are.  -- J.P.Morgan<br>
</div>