• 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: Direct Actions in Components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Direct Actions in Components


  • Subject: Re: Direct Actions in Components
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 15 Apr 2004 09:51:44 -0700

I would not expect that to work.  The URL would look like
http://server/cgi-bin/WebObjects/App.woa/wa/DoItDirectionAction/default

And WO would do classForName("DoItDirectionAction") and not find the inner
class.

Chuck


At 12:25 PM 15/04/2004 -0400, Arturo Perez wrote:
>Hunter Hillegas wrote:
>
>> Thanks.
>>
>> Actually, I don't think I explained my question very well...
>>
>> What I am asking is this:
>>
>> I can add a normal 'action' to the .java file associated with a specific
>> component, no problem obviously. What I was wondering was if there was
>> any way to add a DirectAction to the component .java file, for DAs that
>> will only ever be used by that component... I don't think that there is
>> (and how would WO know where to look for my DA) but I thought I would
>> ask as it seems silly to either clutter up DirectAction.java or to
>> create a million DirectAction classes... But maybe that is the best way
>> to do it.
>>
>
>
>I suppose you could try using an inner class along the lines of
>
>	public DoItPage extends WOComponent {
>
>		protected DoItDirectionAction extends DirectAction {
>			...
>		}
>
>		public String doItDAHRef() {
>
>		urlForDirectActionNamed(...); // or something
>		}
>	}
>
>Has anyone ever tried anything like that?
>
>-arturo
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Direct Actions in Components
      • From: Arturo Perez <email@hidden>
References: 
 >Re: Direct Actions in Components (From: Hunter Hillegas <email@hidden>)
 >RE: Direct Actions in Components (From: "Jonathan Fleming" <email@hidden>)
 >Re: Direct Actions in Components (From: Arturo Perez <email@hidden>)

  • Prev by Date: Re: Direct Actions in Components
  • Next by Date: Re: Direct Actions in Components
  • Previous by thread: Re: Direct Actions in Components
  • Next by thread: Re: Direct Actions in Components
  • Index(es):
    • Date
    • Thread