So I'm not sure how much a hack it is but you can do the following:
public WOActionResults inspectObject(WOComponent value) {
setSender(value);
WOComponent target =
(WOComponent)D2WEmbeddedComponent.findTarget(sender());
WOComponent targetParent = target.parent();
...
Can you create a rule like
task = 'edit' and entity.name = 'MyEntity' and object != null ?
On Mar 4, 2013, at 12:59 PM, Johnny Miller <[email protected]> wrote:
> Hi Ramsey,
>
>> Did you look at this yet?
>>
>> http://wiki.wocommunity.org/display/documentation/D2W+Flow+Control
>
> Do you know if there is a way to communicate to the component that is
> embedding the D2W components in the branch delegate?
>
> Since I'm using embedding the top level component is responsible for telling
> the embedded d2w subcomponents things like what is the selected object.
>
>
> i.e.
>
> public class MyController extends ERDBranchDelegate {
>
> public WOActionResults addObject(WOComponent sender) {
> WOComponent topLevelComponent = ?
> MyObject newObject = ....
> topLevelComponent.setSelectedObject(newObject);
> return null;
> }
>
> }
>
> Thanks,
>
> Johnny
>
>> Ramsey
>>
>>
>>>
>>> Thank you,
>>>
>>> Aloha,
>>> Mr. Johnny Miller
>>> Web Development Manager
>>> Kahalawai Media Company
>>> Lahaina, HI 96761
>>> tel: (808) 661-7962 | mobile: (808) 283-0791
>>> website | e-mail
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com
>>>
>>> This email sent to [email protected]
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]