On 2. Can you just retrieve the URL and use that to decide? Best,
Ernesto On Mon, May 3, 2010 at 2:40 PM, Ayodeji Aladejebi <[email protected]> wrote: > On 1. Thanks > > On 2. yeah which link was clicked or in another way, the component path > which the ongoing request will refers to > > What am trying to do: I allocate resources to each call from each request > however some resources are not needed to be allocated during some ajax > calls. i need to filter such requests by knowing who called them? > > On Mon, May 3, 2010 at 12:43 PM, Ernesto Reinaldo Barreiro < > [email protected]> wrote: > >> Hi, >> >> > >> > 1. is there a way to know from RequestCycle if a call is Ajax? >> >> Â AjaxRequestTarget.get() != null >> >> or >> >> ((WebRequestCycle)WebRequestCycle.get()).getWebRequest().isAjax(); >> >> >> >> > 2. is there a way to know which Link reference initiated a call from >> > RequestCyclle? >> >> >> Do you mean which Link was clicked? Isn't this encoded as a component >> path on the URL? >> >> Ernesto >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Aladejebi Ayodeji A., > DabarObjects Solutions > Phone: +234 9 875 1763 > Mobile: +234 803 589 1780 > Email: [email protected] > Web: www.dabarobjects.com > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
