Hello I have the following in the WOComponent
<wo:WOHyperlink id ="logOut" class = "moreButton" action = "$logOut">Log
Out</wo:WOHyperlink>
in the .java. I have the follwoing:
/**
* Simple logout action that leaves the user on the page returned by the
default
* Direct Action.
* @return <code>WORedirect</code> to default Direct Action
*/
public static final NSDictionary noWOSID = new
NSDictionary(Boolean.FALSE, "wosid");
public WOComponent logOut(){
session().terminate();
WORedirect mainPage = (WORedirect) pageWithName("WORedirect");
mainPage.setUrl(context().directActionURLForActionNamed("logOut",
noWOSID));
return mainPage;
}
and in the directaction :
/**
*
* @return The result of gettign the Action of Log out
*/
public WOActionResults logOutAction(){
return pageWithName(LogOutPage.class.getName());
}
I have nothing in the LogOutPage, just a "LogOut Succesfull". but if I
click the back button Im still inside the application, and can keep working
on it.... :S
why is this?
Thanks
Gustavo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]