Hi Igor, A use case is already mentioned here: http://www.nabble.com/forum/ViewPost.jtp?post=18157269&framed=y
Another case which brought me to this jira is a mixin which can be added to a link component to discard persistent values of a page. @InjectContainer private Component container; @Inject private ComponentResources resources; @Environmental private EventContext context; @Event(value = "submit") void discard() { if(context.getSource().equals(container)) { resources.discardPersistentFieldChanges(); } } regards Taha On Wed, Jul 20, 2011 at 1:16 PM, Igor Drobiazko <igor.drobia...@gmail.com> wrote: > If we want to access the event source, then it should be accessible through > context. > > But honestly I'm wondering if there is a use case for accessing event > source. > > On Wed, Jul 20, 2011 at 9:00 AM, Taha Hafeez <tawus.tapes...@gmail.com>wrote: > >> Hi Thiago !! >> >> As you had reported the issue, do you find the below mentioned >> solution to be something we can work on >> >> regards >> Taha >> >> On Tue, Jul 12, 2011 at 5:06 AM, Taha Hafeez <tawus.tapes...@gmail.com> >> wrote: >> > Hi >> > I was looking at https://issues.apache.org/jira/browse/TAP5-146 and had >> an >> > idea. What if you could push a service (say EventContext, or some other >> name >> > as it is already in use) onto the environment which contains the >> component >> > triggering the action. This can easily be done >> > in ComponentEventRequestHandlerImpl and AjaxComponentEventRequestHandler. >> So >> > we would be able to do something like >> > @Environmental >> > private EventContext context; >> > void onMyEvent() >> > { >> > context.getSource() ... >> > } >> > regards >> > Taha >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > -- > Best regards, > > Igor Drobiazko > http://tapestry5.de > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org