On 31.07.2008, at 11:41, [EMAIL PROTECTED] 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 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