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

Reply via email to