• 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: Jonathan Rochkind <email@hidden>
  • Date: Thu, 15 Apr 2004 11:00:05 -0500

There isn't. Not really.

Well, actually, there _is_ a hacky way, but I don't think you want to do it. i think you should just create a seperate .java for your direct action classes. (You know you can have multiple WODirectAction subclasses to organize your direct actions, right? You don't need to put them all in a single DirectAction.java, you can seperate them among multiple direct action classes).

There is a hacky way to do it involving creating an inner static class in your WOComponent's .java, and manually creating the URL to the direct action in that inner static class (there's no way to get WOHyperlink to generate such a URL for you), but I'm not even going to try and explain it further, because I don't think you really want to do it.

--Jonathan

At 8:28 AM -0700 4/15/04, 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.

On Apr 14, 2004, at 10:27 PM, Jonathan Fleming wrote:

From: Hunter Hillegas <email@hidden>
To: Apple Webobjects List List <email@hidden>
Subject: Direct Actions in Components
Date: Wed, 14 Apr 2004 20:09:28 -0700

Is there any way to embed component specific direct actions in components? Or can they only be in special DirectAction java files.

If I understand your question corectly, you can simply go into WOBuilder and add or embed a directAction component by using the menu WebObject>CustomWebObjects and then choose th component that you want to embed.


HTH
Jonathan :^)

Hunter
_______________________________________________
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.



_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.


References: 
 >RE: Direct Actions in Components (From: "Jonathan Fleming" <email@hidden>)
 >Re: Direct Actions in Components (From: Hunter Hillegas <email@hidden>)

  • Prev by Date: Re: EditingContext question
  • 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