You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mike Oestereter <mi...@gmail.com> on 2007/08/30 21:24:23 UTC
[4.1.2] EventListener and Effects
Hi
I'm upgrading an app from 4.0 to 4.1.2.
In the 4.0 app I have a PropertySelection that has eventListener
pointing to a @tacos:EventSubmit that has a
effects="template:{highlight:{any:'[255,255,184], 500, 500'}}"
How do I get the effect thing to work in 4.1.2? My onchnage
EventListener annotation works well - I'm just missing the effects.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [4.1.2] EventListener and Effects
Posted by Andreas Andreou <an...@di.uoa.gr>.
FYI, here are the js docs:
http://tapestry.apache.org/tapestry4.1/jsdoc/index.html
On 9/13/07, Mike Oestereter <mi...@gmail.com> wrote:
>
> thanks a lot i will try this
>
> On 8/30/07, Igor Drobiazko <ig...@gmail.com> wrote:
> > You can use the tapestry js api to attach the effects:
> >
> > <script type="text/javascript">
> > dojo.require("tapestry.fx");
> > dojo.require("dojo.lfx");
> > tapestry.fx.attachPostEffect("some_client_id_1",
> function(){return
> > dojo.lfx.highlight("some_client_id_2", [255, 255, 184]) });
> > </script>
> >
> > "some_client_id_1" is the id of the updated component. When the
> component is
> > updated, the effect is triggered.
> > "some_client_id_2" is the id of the component to attach the effect to.
> >
> > Igor
> >
> > On 8/30/07, Mike Oestereter <mi...@gmail.com> wrote:
> > >
> > > Hi
> > >
> > > I'm upgrading an app from 4.0 to 4.1.2.
> > >
> > > In the 4.0 app I have a PropertySelection that has eventListener
> > > pointing to a @tacos:EventSubmit that has a
> > > effects="template:{highlight:{any:'[255,255,184], 500, 500'}}"
> > >
> > > How do I get the effect thing to work in 4.1.2? My onchnage
> > > EventListener annotation works well - I'm just missing the effects.
> > >
> > > Thanks
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
Re: [4.1.2] EventListener and Effects
Posted by Mike Oestereter <mi...@gmail.com>.
thanks a lot i will try this
On 8/30/07, Igor Drobiazko <ig...@gmail.com> wrote:
> You can use the tapestry js api to attach the effects:
>
> <script type="text/javascript">
> dojo.require("tapestry.fx");
> dojo.require("dojo.lfx");
> tapestry.fx.attachPostEffect("some_client_id_1", function(){return
> dojo.lfx.highlight("some_client_id_2", [255, 255, 184]) });
> </script>
>
> "some_client_id_1" is the id of the updated component. When the component is
> updated, the effect is triggered.
> "some_client_id_2" is the id of the component to attach the effect to.
>
> Igor
>
> On 8/30/07, Mike Oestereter <mi...@gmail.com> wrote:
> >
> > Hi
> >
> > I'm upgrading an app from 4.0 to 4.1.2.
> >
> > In the 4.0 app I have a PropertySelection that has eventListener
> > pointing to a @tacos:EventSubmit that has a
> > effects="template:{highlight:{any:'[255,255,184], 500, 500'}}"
> >
> > How do I get the effect thing to work in 4.1.2? My onchnage
> > EventListener annotation works well - I'm just missing the effects.
> >
> > Thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [4.1.2] EventListener and Effects
Posted by Igor Drobiazko <ig...@gmail.com>.
You can use the tapestry js api to attach the effects:
<script type="text/javascript">
dojo.require("tapestry.fx");
dojo.require("dojo.lfx");
tapestry.fx.attachPostEffect("some_client_id_1", function(){return
dojo.lfx.highlight("some_client_id_2", [255, 255, 184]) });
</script>
"some_client_id_1" is the id of the updated component. When the component is
updated, the effect is triggered.
"some_client_id_2" is the id of the component to attach the effect to.
Igor
On 8/30/07, Mike Oestereter <mi...@gmail.com> wrote:
>
> Hi
>
> I'm upgrading an app from 4.0 to 4.1.2.
>
> In the 4.0 app I have a PropertySelection that has eventListener
> pointing to a @tacos:EventSubmit that has a
> effects="template:{highlight:{any:'[255,255,184], 500, 500'}}"
>
> How do I get the effect thing to work in 4.1.2? My onchnage
> EventListener annotation works well - I'm just missing the effects.
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>