Your welcome :) For the records: It's the show and hide parameter of the FormFragment and I think the javascript method name should be all lowercase.
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/FormFragment.html 2012/3/16 Anuj Mittal <anmit...@adobe.com>: > Thanks a lot Beat issue is fixed at my end :) > > -----Original Message----- > From: Anuj Mittal [mailto:anmit...@adobe.com] > Sent: Friday, March 16, 2012 11:04 AM > To: Tapestry users > Subject: RE: FormFragment issue with radiobutton > > Thanks Beat for your reply. I am new to tapestry can you please point me to > how\where to add these custom effects. > > -----Original Message----- > From: Beat Durrer [mailto:bdur...@gmail.com] > Sent: Friday, March 16, 2012 12:12 AM > To: Tapestry users > Subject: Re: FormFragment issue with radiobutton > > Hi all, > > Have you tried using a custom show/hide effect, which is faster? > > I'm using this one: > Tapestry.ElementEffect = { > fastfade: function(element){ > Effect.Fade(element, { duration: 0.1 }); > }, > fastshow: function(element){ > Effect.Appear(element, { duration: 0.5 }); > } > }; > > > I had similar issues with that one (dunno if I already mentioned already on > the mailing list): > Some browser store the user input, and when you reload the page, they > preselect the previous input... but the formfragments stay in their initial > state. > With IE8 all validators for all FormFragments triggered, regardless of which > FormFrament was visible (I fixed that by discarding all validators and doing > a manual validation in the onValidate method). > > Cheers > Beat > > > 2012/3/15 Anuj Mittal <anmit...@adobe.com>: >> HI All, >> >> I have created a RadioButton group with to radio buttons and associated two >> different formfragment to these radio button. >> My intention is when user toggle between the two radio button I display >> different formfragment. >> But issue is when use toggles radio buttons very fast both the formfragment >> disappears, whereas if you toggling slowly both the fragment toggles >> smoothly. >> >> Here is the tml snippet >> ---------------------------------------------------------------------- >> ---------------------------------------------------------------------- >> ---------------------- >> <div class="t-beaneditor-row"> >> <t:label for="createAction"></t:label> >> <t:RadioGroup t:id="createAction" label="Have the Codex >> XML?" value="productBuild.codexMessageAvailable"> >> <t:Radio t:id="radioY" value="true" label="Yes" >> t:mixins="triggerfragment" fragment="codexXMLFragment"/>Yes >> <t:Radio t:id="radioN" value="false" label="No" >> t:mixins="triggerfragment" fragment="manualFragment" />No >> </t:RadioGroup> >> </div> >> <div class="t-beaneditor-row"> >> <t:formfragment t:id="codexXMLFragment" >> visible="productBuild.codexMessageAvailable" t:show="show" >> t:hide="fade"> >> <t:label >> for="codexMessageXML"></t:label> >> <input t:type="TextArea" t:id="codexMessageXML" >> value="productBuild.codexMessage" t:validate="required" cols="35" >> rows="20"/> >> </t:formfragment> >> </div> >> <div class="t-beaneditor-row"> >> <t:formfragment t:id="manualFragment" >> visible="productBuild.codexMessageUnAvailable" t:show="show" >> t:hide="fade"> >> <div class="t-beaneditor-row"> >> <t:label for="productName"></t:label> >> <input t:type="textfield" t:id="productName" >> t:value="productBuild.productName" t:validate="required"/> >> </div> >> <div class="t-beaneditor-row"> >> <t:label for="subProduct"></t:label> >> <input t:type="textfield" t:id="subProduct" >> t:value="productBuild.subProduct" t:validate="required"/> >> </div> >> </div> >> ---------------------------------------------------------------------- >> ---------------------------------------------------------------------- >> ------------------------------------------------- >> >> Any help will be appreciated. >> >> Thanks and Regards, >> Anuj Mittal >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org