You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by De Saint Steban Emmanuel <em...@atosorigin.com> on 2009/07/20 17:46:05 UTC

Using Form fragment into a tapestry Zone

Hi all,

If someone could help to this issue it will be great.
I want to use a form fragment into a Tapestry Zone. But when the zone is updated, the form fragment doesn't work.

<t:Zone t:id="myZone">
// here my form
<t:form t:Zone="myZone">
                <t:radiogroup t:id="fragmentGroupRadio" value="fragmentGroupRadio">

                  <t:radio
                      t:id="fragment1Radio"
                      value="fragment1RadioValue"
                      t:mixins="triggerfragment"
                      fragment="fragment1"/>
                  <t:label for="productCondition">
                    fragment1
                  </t:label>


                  <t:radio
                      t:id="fragment2Radio"
                      value="fragment2RadioValue"
                      t:mixins="triggerfragment"
                      fragment="fragment2"/>
                  <t:label for="fragment2Radio">
                    fragment2
                  </t:label>
      </t:radiogroup>


      </t:formfragment t:id="fragment1" >
            // Here code fragment
      </t:formfragment>

      </t:formfragment t:id="fragment2" >
            // Here code fragment
      </t:formfragment>
</t:form>


</t:Zone>

In the server when the form was submited in ajax (with Zone). I reload my Zone (myZone) to get a new formulaire, and also show some other stuff in my zone.  For this I return myZone.getBody().
But when my zone is updated the form fragment doesn't work. I can't change my formfragment by clicking in the form Radio.  but in the first time (when I refresh the entire page), it's work perfectly.

It seems it was because the init javascript code from tapestry isn't relaoded. Because this code is at the end of page and was not reloaded when the zone is upadated.

Do you have an id how I could init again the javacript, or enable the form fragment.

Many thanks in advance for your help.

Manu


________________________________

Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.