i guess you should make different id's for all the zones you create
dynamically.

> Hello,

> This is my simple example code,

> tml:

> <t:loop source="comment" value="comment" >

> <t:zone t:id="commentRating">${comment.rating}</t:zone>

> <t:actionlink t:id="voteUp" context="comment.id"
> t:zone="commentRating">+</t:actionlink>
> <t:actionlink t:id="voteDown" context="comment.id"
> t:zone="commentRating">-</t:actionlink>

> </t:loop>

> java:

> @InjectComponent
> private Zone commentRating;

> public Object onActionFromVoteUp(Long commentId) {
>    voteService.voteUp(user, commentId);
>    comment = commentDao.findById(commentId);
>    return commentRating.getBody();
> }

> When I click on any t:actionlink updated rating for a context comment
> written in first rating "zone-div" element( which was rendered during the
> first iteration )

> What to do in such situations?



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

Reply via email to