-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It does, unfortunately.

When the form is initially rendered, Tapestry assigns it the id I
assign in the .tml file. On subsequent *AJAX* refreshs, Tapestry
appends some number to the initial id.

I have

<t:zone t:id="zone" id="zone" show="show" update="show">
  <t:form t:id="dynamicForm" id="dynamicForm" zone="zone"
     autofocus="false">

  ...
  </t:form>
</t:zone>

in the .tml file, and a DOM inspection after an AJAX refresh of the
zone shows

<div id="zone" class="t-zone tapestry-zone">
  <form id="dynamicForm_13741814fec" class="t-prevent-submission"
      method="post" action="/webbib/de/versesearch.dynamicform">

  ...

  </form>
</div>




Am 12.05.2012 17:17, schrieb Thiago H. de Paula Figueiredo:
> On Sat, 12 May 2012 11:59:42 -0300, Arno Haase 
> <arno.ha...@haase-consulting.com> wrote:
> 
>> So referencing the form by its ID is out, since the form is
>> assigned a new and different ID after each AJAX zone refresh.
> 
> This won't happen if you give an explicit id (not t:id, id) for the
> form.
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+uhagACgkQbmZsMyUPuXSQAACfVqA6b1xznOhFejgcFAa0YK5U
oCEAoIItYMBqHRPjk4fwfgmDHW1T3dzB
=ron1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to