You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Thiago H de Paula Figueiredo <th...@gmail.com> on 2014/03/11 15:21:41 UTC
Re: Event link gets changed after outer zone/table refresh
Answering in the users mailing list, as it's the right place for this
discussion.
On Tue, 11 Mar 2014 10:09:59 -0300, Swapna <sw...@yahoo.com> wrote:
> I have an eventLink inside the table, the event link id gets changed
> once the table zone is refreshed. once zone refreshed, event handler
> doesn't get called.
You can provide an id yourself to avoid problems, but I don't think that's
related to the problem.
> For what I have seen, is the event link id getting changed.
>
> Any help is appreciated.
>
> <t:zone t:id="tableZone" id="tableZone">
> <t:jquery.datatable ........
> rowIndex = "currentIndex"
> ---------------------
> <p:btnCell>
> <t:eventLink t:event="balExpand" t:zone="balZone"
> t:context="${currentIndex}" ></t:eventLink>
Never, never, never ever use ${} expansions to bind parameters. It's wrong
or useless in 100% of the times. It should have been
t:context="currentIndex".
> public Object onBalExpand(String currentIndex) {
> return balZone;
> }
Never return a zone instance directly: return zone.getBody(). That's
probably the source of your problem.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org