• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Auto fill and submit from DirectAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto fill and submit from DirectAction


  • Subject: Re: Auto fill and submit from DirectAction
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 14 Oct 2008 11:20:16 -0700


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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Eclipse stackoverflow WOLips Entity Modeler
      • From: JR Ruggentaler <email@hidden>
References: 
 >Auto fill and submit from DirectAction (From: Shaft <email@hidden>)

  • Prev by Date: Re: [OT] Thanks for the memories …
  • Next by Date: Re: [OT] Thanks for the memories …
  • Previous by thread: Auto fill and submit from DirectAction
  • Next by thread: Eclipse stackoverflow WOLips Entity Modeler
  • Index(es):
    • Date
    • Thread