Is there anybody who can help me with this ?

In the tapestry doc page for the component Zone, I found this :
Not shown here, but fully valid, is to include JavaScript libraries and 
generate initialization JavaScript. This fully consistent with ordinary 
full-page renders.

It said it was fully valid but it doesn't work with me. How can I initialize 
the Javascript for the form.

Many thanks in advance.

Emmanuel

---------------------------
De : De Saint Steban Emmanuel
Envoyé : lundi 20 juillet 2009 17:46
À : 'users@tapestry.apache.org'
Objet : 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.

Emmanuel



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.


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

Reply via email to