On Oct 12, 2008, at 11:48 AM, Shaft wrote:


Hi all,

I have a very simple form made of some text fileds and a submit button. It work just fine. Now I'm looking for a way to fill and submit this form automatically from a url containing parameters. Without the user's intervention. Just by browsing the url.

So I wrote a method in the DirectAction class. It takes the values from the url and fills in the form. It works too, but now how can I invoke this form's submit function from the DirectAction class?

Thanks for you help....


I don't think you can, or should. Do the same thing that the submit function does in your DA method. If that makes duplicate code, this is a good time to thing about refactoring that functionality out of the UI layer.

Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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