Hi,

check the value of the context; if it is not set (null) only
onActionFromPlay() will be called; use the EventContext if you want to
catch this use case;

g,
Kris

On Thu, Oct 18, 2012 at 9:14 AM, dinesh707 <dinesh...@gmail.com> wrote:
> Follofwing are some of my code parts. The system.out even do not create any
> output on ActionLink click. what am i doing wrong?
>
> Object onActionFromPlay(int videoId){
>                 System.out.println("onActionFromPlay(int videoId) CLICKED
> ===============");
>                 Video _v;
>                 for (int i=0; i<videos.size();i++){
>                         _v = videos.get(i);
>                         if (_v.getId() == videoId)
>                                 currentVideo = _v;
>                 }
>
>                 if(request.isXHR())
>                         return videoZone.getBody();
>                 else
>                         return null;
>
>         }
>
>
> &lt;p><t:actionlink
>         t:id="play"
>         context="video.id"
>         t:zone="videoZone">Play Video</t:actionlink></p>
>
> <t:zone t:id="videoZone" id="videoZone">
>         The Video IDDDD = ${currentvideo.name}
> </t:zone>
>
>
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Why-ActionLink-Click-is-not-working-tp5717030.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
>

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

Reply via email to