Re: [t5] Creating an event to another page

2007-11-06 Thread Massimo Lusetti
On Nov 6, 2007 7:14 PM, Dan Adams <[EMAIL PROTECTED]> wrote:

> So I have a link that, when clicked, I want to fire an 'add' event in
> some page. The way I'm currently doing this is as follows:
>
> Page page = pageCache.get("nameofthepage");
> Link link = page.createActionLink(page.getRootElement(), "add", false);
>
> When running this through PageTester I get an exception that the
> component id is not found. I'm assuming this means that when using
> action links you have to specify a component. Am I doing something
> wrong? How do you fire a named event in other page?

I've always used page activation context trying to re-factorize when
things get complicated, RequestPageCache is an internal service/class
so I've avoided dealing with it.
But this is something I've always wanted to know.

-- 
Massimo
http://meridio.blogspot.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[t5] Creating an event to another page

2007-11-06 Thread Dan Adams
So I have a link that, when clicked, I want to fire an 'add' event in
some page. The way I'm currently doing this is as follows:

Page page = pageCache.get("nameofthepage");
Link link = page.createActionLink(page.getRootElement(), "add", false);

When running this through PageTester I get an exception that the
component id is not found. I'm assuming this means that when using
action links you have to specify a component. Am I doing something
wrong? How do you fire a named event in other page?

-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]