• 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: Moving invoking of DirectActions to another comp stopped working :-(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving invoking of DirectActions to another comp stopped working :-(


  • Subject: Re: Moving invoking of DirectActions to another comp stopped working :-(
  • From: Guido Neitzer <email@hidden>
  • Date: Thu, 31 Jul 2008 12:58:31 -0600

On 31.07.2008, at 11:41, email@hidden wrote:

I have written most of my code in Main.java and Main.wo.

Just a friendly hint: Put business logic in business logic objects, put controller logic in controller objects, put totally generic display logic in "MyCoolPageSuperClass.java" and create subcomponents for things that are re-usable.


Start right from the beginning with that, or you'll end up in Copy&Paste hell soon!


I would like to distribute the code in Main.java and Main.wo to couple of
other components.

Use inheritance, don't copy code. Use re-usable components if that's feasible.


I moved these actions to other component, I mean action buttons, they
stopped working, direct action method is not invoked.

Do you have a form on the new page?

Lily.wo
 Button 1 -> processAction in DirectAction.java
 Button 2 -> postAction in DirectAction.java

Please provide the exact code from the html (and wod).

cug

--
http://www.event-s.net

_______________________________________________
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:
    • Re: Moving invoking of DirectActions to another comp stopped working :-(
      • From: email@hidden
References: 
 >Moving invoking of DirectActions to another comp stopped working :-( (From: email@hidden)

  • Prev by Date: Moving invoking of DirectActions to another comp stopped working :-(
  • Next by Date: Re: Moving invoking of DirectActions to another comp stopped working :-(
  • Previous by thread: Moving invoking of DirectActions to another comp stopped working :-(
  • Next by thread: Re: Moving invoking of DirectActions to another comp stopped working :-(
  • Index(es):
    • Date
    • Thread