• 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
Re-DirectAction and incidentally JSModalWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re-DirectAction and incidentally JSModalWindow


  • Subject: Re-DirectAction and incidentally JSModalWindow
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Wed, 30 Mar 2005 18:29:15 -0800

Restatement of the Problem: creating a DirectAction app out of a session based app by removing all the action bindings on the page.

I have split the page into 3 WOForm's and have got the WOPopupButton and LoginPage set-up fine, thank you Mr. Hill.

I tried to alter the JSModalWindow to be a DirectAction, but don't see how to do that, this widget will create a Session even if you don't have the <action> binding set.

So I replaced the JSModalWindow with a WOHyperLink which is bound to a DirectAction, but I don't know how to set it up to open in a separate window, which is important. Can I use javascript somehow in this scenario?

Minor note: I was able to pass an EO object to the direct action by passing its primary key as an additional binding to the WOHyperLink. This means something like:

EOEditingContext ec;
if ( hasSession() ) {
Session session = (Session)session();
ec = session.defaultEditingContext();
} else {
ec = new EOEditingContext();
}
thisRep = (Reps)EOUtilities.objectMatchingKeyAndValue( ec, "Reps", "staffID", new Integer(primaryID) );


for all those DirectAction based pages.

I also had to remove the <multiple submit> setting of true from all forms.

Almost there...
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>

_______________________________________________
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: Re-DirectAction and incidentally JSModalWindow
      • From: Arturo PĂ©rez <email@hidden>
  • Prev by Date: Re: "False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
  • Next by Date: Re: Re-DirectAction and incidentally JSModalWindow
  • Previous by thread: Re: "False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
  • Next by thread: Re: Re-DirectAction and incidentally JSModalWindow
  • Index(es):
    • Date
    • Thread