Re: How to determine what component the action came from?
Re: How to determine what component the action came from?
- Subject: Re: How to determine what component the action came from?
- From: Chuck Hill <email@hidden>
- Date: Mon, 2 Mar 2009 19:37:40 -0800
On Mar 2, 2009, at 7:28 PM, amiel montecillo wrote:
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.
I am not sure where you are going with this. Components embedded in
an AjaxGrid don't have action methods. So, even if the CRUD component
catches these actions, what is IT going to do? How is it going to
know which method to call?
Chuck
On Tue, Mar 3, 2009 at 11:09 AM, Chuck Hill <chill@global-
village.net> 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
--
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