[FIXED] Re: call a ComponentAction from a select's onchange

Zak Burke <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Zak Burke wrote on 6/21/06 12:38 PM:
> This following explanation gets kinda complicated, but I think it's
> pretty simple. I have a lits of links for updating different aspects of
> an EO. I want to replace the list of links with a select-list; when the
> list selection changes, a new window should open with the requested page
> loaded. How do I do this when "requested page" is a component action?

Scratch that. I was basing my code of the JSModalWindow and JSComponent
classes in the JavaScript sub-project of the JavaWOExtensions examples.
JSComponent.invokeAction takes no parameters. Huh; that seems odd,
because WOComponent.invokeAction takes a WORequest and a WOContext.

When I actually override invokeAction in SelectPopupItem as follows,
everything works like a charm:

public WOActionResults invokeAction(WORequest req, WOContext con)
{
    return (WOComponent) valueForBinding("item");
}

Does anybody know the purpose of the parameter-less invokeAction method
 in the JSComponent class provided in the JavaScript sub-project of the
JavaWOExtensions examples?

zak.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.