Re: WOPopupButton and DirectAction
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