>From Spencer Crissman <[EMAIL PROTECTED]>: > 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);
Are you defining a callback property in the jwc? Try persisting it in the session.It's getting cleared when the login form submits > > 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]
