Carter,
The first question I must ask is if your WOPopupButton is inside the
form you are submitting? If it's not, then it's selected value will
not be submitted by your JavaScript submit.
Assuming that it is, you could rely on the component binding system
by putting your code in the accessor methods for the value bound to
your popup's selection binding. WO will take care of calling these
methods at the proper time during the request-response cycle.
...
...
protected String popupSelection;
public String popupSelection() {
return popupSelection;
}
public void setPopupSelection(String newPopupSelection) {
popuselection = newPopupSelection;
// do whatever you want here WO will take care of calling this
method when the time is right
}
This is just off the top of my head so hopefully it will be useful to
you.
On May 2, 2007, at 10:25 AM, Carter Wojcik wrote:
Hi All -
I would like to use a wopopupbutton to limit the
objects that are to be displayed to the the user from
a list/repetition. I have created a default
eofetchspecification that returns a list. I would
then like for the users to be able to pare down the
list by selecting from the wopopupbutton. I am using
onChange = 'this.form.submit()' to reload the page
once a selection is made.
I tried to use awake() and takeValuesFromRequest() but
the popup is still null. The first time that I am able
to get an actual value (instead of null) is during
invokeAction, but I don't want to override this
method.
At what point in the request-response loop will I be
able to use the value that has been selected in the
wopopupbutton to filter my results?
Thanks for the help.
Carter
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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/robertwalker1%
40mac.com
This email sent to [EMAIL PROTECTED]
--
Robert Walker
[EMAIL PROTECTED]
_______________________________________________
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]