Re: Moving invoking of DirectActions to another comp stopped working :-(
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