I have the following scenario:

<t:zone t:id="zone">
  <t:form p:zone="zone">
     <t:checkbox p:value="showFragment" t:mixins="triggerfragment"
p:fragment="fragment"/>
     <t:formfragment t:id="fragment" p:visible="showFragment">
     ...
     </t:formfragment>
  </t:form>
</t:zone>

Everything works fine up until first submit. After zone gets refreshed via
AJAX (I'm using multiple zone update), FormFragment is displayed correctly
but isn't *handled* correctly on next submit attempt.

When FormFragment is initially visible, everything is OK.
When FormFragment is initially hidden, validation events are still
triggered on enclosed fields.

If I click checkbox twice, showing and then hiding form fragment,
everything starts to work normally (that is, it's no longer trying to
validate enclosed fields). After next zone refresh the problem is here
again.

Looks like it's not correctly initializing some internal state during zone
refresh? I can code a workaround, manually checking showFragment in a form
validation event of course.

I'm using Tapestry 5.3.7

-- 
Ilya Obshadko

Reply via email to