• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Direct Action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Direct Action


  • Subject: Direct Action
  • From: WIESEN Bruno <email@hidden>
  • Date: Wed, 14 Mar 2007 17:12:22 +0100

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Direct Action
      • From: Fabrice Pipart <email@hidden>
  • Prev by Date: Re: DST Update WO 5.3.3 and Java Client
  • Next by Date: Easiest way to integrate Quartz drawing into WO apps?
  • Previous by thread: Re: WOCookie
  • Next by thread: Re: Direct Action
  • Index(es):
    • Date
    • Thread