• 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: How to determine what component the action came from?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to determine what component the action came from?


  • Subject: Re: How to determine what component the action came from?
  • From: amiel montecillo <email@hidden>
  • Date: Tue, 3 Mar 2009 11:28:19 +0800

Oops sorry, moving this to webobjects-dev list.

The reason I asked this is that I wanted to embed the CRUD component to one of the cells in an AjaxGrid. and needed the "Delete" and "Update" action to be fired in the parent component of the AjaxGrid instead of the CRUD component. So the CRUD can be reusable.

Thanks,
Amiel

On Tue, Mar 3, 2009 at 11:09 AM, Chuck Hill <email@hidden> wrote:

On Mar 2, 2009, at 6:50 PM, amiel montecillo wrote:

Hello list,

I am trying to understand the invokeAction process.

I have a component (CRUD component) with 2 (WOHyperlink) subcomponents which are a "Delete" and "Update" hyperlink.

I am overriding the invokeAction method on the CRUD component to catch the action fired on the 2 subcomponents.

On the CRUD.invokeAction method, how can I determine that the action request came from the "Delete" or "Update" hyperlink?


WIthout resorting to hacks, you cannot.    I don't think that you should either.  That is violating the design of WO.  Each component handle's its own actions, it does not steal them from  others.  The hyperlink subcomponents should trigger the action in the CRUD component when their action is triggered.

This is also a webobject-dev list question, not a WOLips question.  Keeping questions on the correct list helps people searching the archives.



Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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



--
socket error: unable to connect to 127.0.0.1
 _______________________________________________
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

  • Follow-Ups:
    • Re: How to determine what component the action came from?
      • From: Andrew Lindesay <email@hidden>
    • Re: How to determine what component the action came from?
      • From: Chuck Hill <email@hidden>
References: 
 >Re: How to determine what component the action came from? (From: Chuck Hill <email@hidden>)

  • Prev by Date: eogen takeStoredValueForKey(toManyArray, relationshipName)
  • Next by Date: Re: How to determine what component the action came from?
  • Previous by thread: Re: How to determine what component the action came from?
  • Next by thread: Re: How to determine what component the action came from?
  • Index(es):
    • Date
    • Thread