Patrick Casey wrote:
        What's the point of the callback then if you have to persist the
callback yourself anyway?

I relly don't understand the question. The point is:
you pass a callback, and use it later. to make it "stay" between requests, you have to persist it, just like anything else you want to "stay" between requests.


        --- Pat


-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ron Piterman
Sent: Tuesday, December 13, 2005 3:51 PM
To: [email protected]
Subject: Re: Cycle not activating pages/callbacks

too quick a replay - sorry -
you have to persist the callback in a way of your choice, because it
probably dissapears after the login page renders...


Spencer Crissman wrote:

I have an T4 (b11) app where I am implementing some redirection for the
authentication portion of my pages.  When the user attempts to access

the

first page, it redirects them to login if they aren't logged in, and

then

after they've logged in, it redirects them to the original page.  Pretty
standard fare.

Well, I have some code along the following lines:

Login loginPage = cycle.getPage( "Login" );
loginPage.setCallback( new PageCallback(getPageName() ) );
cycle.activate(loginPage);
return;

When the above runs, the login page never gets activated.  The original

page

just finishes rendering, and that's it.
Changing:
    cycle.activate(loginPage);
To:
    throw new PageRedirectException(login);

Caused the login page to come up successfully, however in the login

page,

the following code:

// Authentication checks out...
getCallback().performCallback(cycle);

Also does nothing.  The login page renders, and that is it.

It seems like my cycle(s) are not redirecting to the pages they are

supposed

to.  Can anyone offer some insight as to why that would happen, and what

I

could do about it?


Thanks in advance!



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





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




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

Reply via email to