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: email@hidden
- Date: Fri, 1 Aug 2008 01:12:34 +0530 (IST)
- Importance: Normal
Hello Guido,
Thanks for your friendly note. This is a sample app with very little
functionality.
Below is the code you have asked for, please advise:
Main.html
--------
<body>
<ol><B>Select any of the below variety of Image Uploaders to Upload
Images:</B>
<li><webobject name = "BasicIU">Basic Image Uploader</webobject></li>
<li><webobject name = "UserQIU">User Quota</webobject></li>
<li>
<webobject name = "Form">
<webobject name = "Upload2"/>
<webobject name = "BasicIU1"/>
</webobject>
</li>
</ol>
</body>
Main.wod
--------
Form : WOForm {
}
Upload2 : WOSubmitButton {
directActionName = "upload";
}
Thank You,
Shravan
------------------
On Fri, August 1, 2008 12:28 am, Guido Neitzer wrote:
> 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