Bookmarkable urls and page redirection
"Natesh Babu Lakshmanan" <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <[email protected]> |
I have a page which has 'activateExternalPage' implemented to make it
bookmarkable. But at the same time, this pages extends 'Protected'. So, when
user clicks the url and if he is not logged in, he will be first shown the
log on page and after successful log on, 'bookmarked' page will be
displayed. But, after log on, it seems 'activateExternalPage' is not invoked
and the page is displayed directly. Some member variables are populated in
'activateExternalPage' method. But due to this behavior, those variables are
not populated properly.
Following is the validate method in Protected page:
public void validate(IRequestCycle cycle) throws RequestCycleException
{
Visit visit = (Visit) getVisit();
if (visit != null && visit.isUserLoggedIn())
return;
// User not logged in ... redirect through the Login page.
Logon logon = (Logon) cycle.getPage("Home");
logon.setCallback(new PageCallback(this));
throw new PageRedirectException(logon);
}
Could anyone help on this?
Thanks in advance,
Natesh
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/