<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">Could you tell if the html generated in that
      one case was actually not working correctly in some way (as in
      your original problem)?<br>
      <br>
      Cheers,<br>
      Bob<br>
    </font><br>
    On 4/6/12 4:18 PM, Lawrence Kellogg wrote:
    <blockquote cite="mid:4DC1E99A-B05B-4085-BCEB-C429F7BDFEFA@me.com"
      type="cite">
      <pre wrap="">Hello Bob,
  I installed this code and went though all of the interfaces on my site. I only hit the halt once so I guess most of my code is ok. 
I took out the extra form and don't hit this halt anymore. Thanks.

Regards,

Larry


On Apr 6, 2012, at 9:17 AM, Bob Arning wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">This might help spot such problems:

WAFormTag&gt;&gt;with:

with: aBlock

   | uniqueMessage |

   uniqueMessage _ 'starting a form'.
   Notification signal: uniqueMessage.
   [
       super with: aBlock
   ] on: Notification do: [ :ex |
       ex messageText = uniqueMessage ifTrue: [self halt].
       ex pass
   ]

Cheers,
Bob

On 4/6/12 7:38 AM, Lawrence Kellogg wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">On Apr 6, 2012, at 7:05 AM, Johan Brichau wrote:

</pre>
          <blockquote type="cite">
            <pre wrap="">Larry,

I'm really answering off the top of my head now, but nested html forms are indeed not allowed. It's likely that this is causing the trouble.

You might consider replacing the cancel button with a cancel link (i.e. an anchor with 'cancel'). That probably will give you the behavior you are looking for.
I'm never using a cancel button because we do it with links throughout the application.
</pre>
          </blockquote>
          <pre wrap="">  Yes, that is it! It works after I changed the 'html cancelButton' to 'html anchor'. Thanks, I never would have gotten that on my own.

  I am a little confused about whether I nest html forms or not. I have so many different components with html form in them that I must be nesting forms. So, there should only one html form: for the entire page? Perhaps I can refactor my code to make that happen, although everything seems to work pretty well as it is written. What goes wrong when forms are nested?

  Regards,

  Larry



</pre>
          <blockquote type="cite">
            <pre wrap="">

On 06 Apr 2012, at 12:48, Lawrence Kellogg wrote:

</pre>
            <blockquote type="cite">
              <pre wrap="">Johan,
 Unfortunately, changing it from value: to with: does not make any difference, the bug is still there. I looked through my code and it looks like I am calling html form: for all the resources I am rendering, as far as I can tell.

 Does this snippet of code provide any clue?
.
&lt;form accept-charset="utf-8" method="post" action="/PracticeJournalLoginTask?_s=MQjCWJGC8kOo0deT&amp;amp;_k=ZS373GZpYr33sacc"&gt;&lt;br/&gt;
&lt;input class="btn submit" name="12" value="Back" type="submit"/&gt;
&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;
&lt;form accept-charset="utf-8" method="post" action="/PracticeJournalLoginTask?_s=MQjCWJGC8kOo0deT&amp;amp;_k=ZS373GZpYr33sacc"&gt;&lt;object&gt;
&lt;param name="width" value="586"&gt;&lt;/param&gt;
&lt;param name="height" value="355"&gt;&lt;/param&gt;
&lt;param name="movie" value=<a class="moz-txt-link-rfc2396E" href="http://www.youtube.com/v/PIlDmg2iFgA?fs=1&amp;amp;hl=es&amp;amp;rel=0&amp;amp;cc_load_policy=1&amp;amp;cc_lang_pref=es&amp;amp;version=3">"http://www.youtube.com/v/PIlDmg2iFgA?fs=1&amp;amp;hl=es&amp;amp;rel=0&amp;amp;cc_load_policy=1&amp;amp;cc_lang_pref=es&amp;amp;version=3"</a>&gt;&lt;/param&gt;&lt;param name="cc_load_policy" value="1"&gt;&lt;/param&gt;
&lt;param name="allowFullScreen" value="false"&gt;&lt;/param&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;/param&gt;
&lt;embed src=<a class="moz-txt-link-rfc2396E" href="http://www.youtube.com/v/PIlDmg2iFgA?fs=1&amp;amp;hl=es&amp;amp;rel=0&amp;amp;cc_load_policy=1&amp;amp;cc_lang_pref=es&amp;amp;version=3">"http://www.youtube.com/v/PIlDmg2iFgA?fs=1&amp;amp;hl=es&amp;amp;rel=0&amp;amp;cc_load_policy=1&amp;amp;cc_lang_pref=es&amp;amp;version=3"</a> type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="586" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;/form&gt;&lt;br/&gt;

&lt;input class="btn submit" name="13" value="Back" type="submit"/&gt;&lt;br/&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="wa-toolbar"&gt;&lt;/div&gt;

&lt;script type="text/javascript"&gt;/*&lt;![CDATA[*/function onLoad(){};/*]]&gt;*/&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;

Regards,

Larry
<a class="moz-txt-link-abbreviated" href="http://www.practicemusic.com">www.practicemusic.com</a>

On Apr 6, 2012, at 6:35 AM, Johan Brichau wrote:

</pre>
              <blockquote type="cite">
                <pre wrap="">It's a guess but did you try replacing

        value: 'Back'

with

        with: 'Back'

?

Otherwise, a snippet of the 'weird rendering' might help

Johan

On 05 Apr 2012, at 23:10, Lawrence Kellogg wrote:

</pre>
                <blockquote type="cite">
                  <pre wrap="">Hello,
I noticed a weird issue with rendering the Back button. If I have

renderBackButtonOn: html
        html break.
        html cancelButton
                class: 'btn';
                callback: [ self back ];
                value: 'Back'.
        html break

and this:

back
        self answer: false

and then this:

        html
                form: [
                        self renderBackButtonOn: html.

                        self resources do: [: each | html render: each].
                        
                        self renderBackButtonOn: html].
                

I often see the case where the first rendering of the Back button works correctly, but the last render does not work. I press the button and nothing happens. Any idea what is going on here?

Regards,

Larry Kellogg
<a class="moz-txt-link-abbreviated" href="http://www.practicemusic.com">www.practicemusic.com</a>
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
                </blockquote>
                <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
              </blockquote>
              <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
            </blockquote>
            <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
          </blockquote>
          <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

</pre>
        </blockquote>
        <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
      </blockquote>
      <pre wrap="">
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

</pre>
    </blockquote>
  </body>
</html>