> - Since "onRemoveRow" event can only return void (cant return a
> multizoneupdate), would be possible to capture when i delete a row and
> update several zones from it?

You can only return a multizoneupdate if you are inside of an ajax
request. If you are using an eventlink/actionlink then you need to add
the zone parameter with the client id of one of the zones you are
going to update (has to be a zone that exists on the page for the link
to get setup properly on the client)

<t:zone t:id="zone1" id="zone1">
    ${now}
</t:zone>

<t:zone t:id="zone2" id="zone2">
    ${last}
</t:zone>

<t:eventlink event="rotate" zone="zone1">Rotate</t:eventlink>


    MultiZoneUpdate onRotate() {
        _last = _now;
        _now = new Date();
        return new MultiZoneUpdate("zone1",
_zone1.getBody()).add("zone2", _zone2.getBody());
    }


Josh

On Thu, Aug 19, 2010 at 11:49 AM, Elin <polit...@gmail.com> wrote:
>
> I have a custom component based on an "ajaxformloop" that displays rows with
> a delete buttom for them.
>
> I need to update several zones afer deleting a row from the ajaxformloop and
> cant find a way to do it. From here i have some questions about events (im
> sorry im starting with tapestry and im a bit newbie)
>
>
> - Since "onRemoveRow" event can only return void (cant return a
> multizoneupdate), would be possible to capture when i delete a row and
> update several zones from it?
>
> - Is it possible to generate custom events on my custom components so i can
> capture them into the pages i insert them into?
>
> If you link me examples where i can see this and analize them it would be
> enough. I couldnt find any by myself.
>
> Thx in advance.
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Events-and-multizone-update-tp2641385p2641385.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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

Reply via email to