Thanks it works...I found another solution :
Giving the wosid with a WOHiddenField in my WOForm calling the
DirectAction
Bruno.
Le 15 mars 07 à 09:27, Fabrice Pipart a écrit :
I think you can try the following :
page.application().restoreSessionWithID(request
().stringFormValueForKey("wosid"), context());
Regards
Fabrice
On Mar 14, 2007, at 5:12 PM, WIESEN Bruno wrote:
Hello,
How can I access a page which has just called a DirectAction?
I want my DirectAction to initialize some variables of the Main
Component and refresh it...
I try this but it creates a new session instead of using the
existing one... :
public WOActionResults formSubmitAction()
{
Main page = (Main)pageWithName("Main");
String username= (String)this.request().formValueForKey
("username");
String password= (String)this.request().formValueForKey
("password");
page.takeValueForKey(username, "username");
page.takeValueForKey(password, "password");
page.takeValueForKey(true, "isSubmitted");
return page;
}
Thank you...
Bruno.
_______________________________________________
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/fabrice%
40easyshadow.com
This email sent to [EMAIL PROTECTED]
www.easyshadow.com
International Corporate Consulting
Palais de la Scala
1 avenue Henri Dunant
Suite 1155
MC - 98000 Monaco
Skype: fabrice.pipart
Tel. +377 97 98 21 04 (direct)
Fax. +377 97 70 88 07
_______________________________________________
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]