Carter, note that you most likely do not want to change your list before the invokeAction() phase. Think about what would happend if you ask to delete the 3rd entry in the list you see on screen, but once submitted and before the action is taken, the liste is reordered/refetched/etc. The problem come partly from the fact that by default worepetition use an index to locate your actions (Wonder has a workaround/fix for this), and partly from the fact that you change a list objects before action is taken. So if you do not use wonder, avoid changing the list before any action is taken on it.

I would suggest to filter your list in appendToResponse() before the call to super.

- jfv

Le 07-05-02 à 10:56, Robert Walker a écrit :

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/ jean_francois_veillette%40yahoo.ca

This email sent to [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]

Reply via email to