Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOHyperlink pass arguments.



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@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >WOHyperlink pass arguments. (From: Pelsser François <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.