• 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: WOPopupButton and DirectAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOPopupButton and DirectAction


  • Subject: Re: WOPopupButton and DirectAction
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 28 Mar 2005 11:12:09 -0800


On Mar 28, 2005, at 11:00 AM, Baiss Eric Magnusson wrote:

I'm trying to make my app becoming session-less by changing all the action bindings to directActions.
I now have 2 widgets left to change, a WOPopupButton and a JSModalWindow.
I'm stuck on the WOPopupButton at the moment.


I found that I could wrap a WOHyperLink around the WOPopupButton and have the directAction called,

No, don't do that.

it was originally implemented with a <onChange "submit();"> action.

That should still work if your form has the directAction binding and not action. You will need to give all the data input elements a "name" binding so that you can use this name to access the values from your direct action.


But I can't get the <selection> binding, which was <curRegion>, sent to the direct action. I've tried both the <selection> and the <selectedValue> attribute of the WOPopupButton, and then tried various combinations of the binding:

	?curRegion curRegion.regionName
	?curRegionName curRegionName

But I only get <null> from the <stringFormValueForKey> method call in the directAction.

Maybe post the HTML and bindings.


Chuck

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
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


References: 
 >WOPopupButton and DirectAction (From: Baiss Eric Magnusson <email@hidden>)

  • Prev by Date: WOPopupButton and DirectAction
  • Next by Date: Intersections, Unions and Differences of EOObjects?
  • Previous by thread: WOPopupButton and DirectAction
  • Next by thread: Re: WOPopupButton and DirectAction
  • Index(es):
    • Date
    • Thread