On 30.08.2007, at 00:18, Pelsser François wrote:

I call a function with a WOHyperlink and I wanne pass arguments. (like if the action was "myMethod(par1,par2)" )
I think it must be possible with bindings but i don't know how.
Can someone explain it to me?

You can create a WOHyperlink like this:

MyLink : WOHyperlink {
        action = myaction;
        ?contactId = contact.contactId;
        ?function = "foo";
}

And in the code you can check for the parameters with

NSArray values = this.context().request().formValuesForKey("function");

oder

String value = this.context().request().stringFormValueForKey ("function");

Usw. See the methods in WORequest.

cug _______________________________________________
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