boy I screwed up that reply...

I am opening a modalDialog with this

SearchJobsModalDilog : AjaxModalDialog {
        id = "searchJobsMD";
        action = searchJobs;
        label = "Search";
        class= "text1";
        width = 300;
        overlayOpacity = "0.4";
        overlayDuration = "0.1";
        slideDownDuration = "0.2";
        slideUpDuration = "0.2";
        locked = true;
        onClose = refreshJobListWithQualifier;
        closeUpdateContainerID = "tableBody";
 
}

and :

        public WOActionResults searchJobs() {
                
                WorkListSearchDialogComponent nextPage = 
(WorkListSearchDialogComponent)pageWithName(WorkListSearchDialogComponent.class.getName());
                
                return nextPage;
        }

the component that is generating the contents of the modalDialog has a setter 
and getter... so right before the return I put

nextPage.setMyText("hello:);
return nextPage;

so far so good. I can send stuff to the AMD component..

I want to send stuff from the AMD back to the Component that originally called 
it...  I don't get that..

Ted

--- On Tue, 5/11/10, Chuck Hill <[email protected]> wrote:

> From: Chuck Hill <[email protected]>
> Subject: Re: ModalDialog example
> To: "Theodore Petrosky" <[email protected]>
> Cc: [email protected]
> Date: Tuesday, May 11, 2010, 1:35 PM
> Not sure what you are doing. 
> Can you provide more details about what you are trying to
> accomplish?
> 
> 
> On May 11, 2010, at 7:21 AM, Theodore Petrosky wrote:
> 
> > I am playing with the ModalDialog examples. I see that
> if I create a ModalDialog with external component, I can
> create setters and getters in the AMD Component and pass
> stuff to the new component.
> > 
> > I can not seem to figure out how to pass stuff back to
> the 'calling' component. I created setters and getters in
> the calling component and I thought I could access them...
> > 
> > Maybe there is some more magic that I am missing. Of
> course I could just pass my data to the session()... but I
> thought there is a different way.
> > 
> > 
> > Ted
> > 
> > 
> > 
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> > 
> > This email sent to [email protected]
> 
> --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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to