Re: Proper way to Pop a Modal Edit Form from a list?
Re: Proper way to Pop a Modal Edit Form from a list?
- Subject: Re: Proper way to Pop a Modal Edit Form from a list?
- From: James Cicenia <email@hidden>
- Date: Fri, 29 Jan 2010 16:18:53 -0600
Hmmm
So I created a component for my dialog. I put the AjaxModalDialog in component that holds the ajax grid that way
it would be outside the repetition.
Now I need to call it with AjaxModalDialogOpener from the grid cell controller... is that correct?
If so how does it know and/or how do I pass the current object into it for it to do its rendering?
thanks
James
On Jan 29, 2010, at 3:49 PM, Chuck Hill wrote:
> Did you define the AjaxModalDialog? Lots of pieces to co-ordinate here. Check AjaxExamples.
>
>
> Chuck
>
>
> On Jan 29, 2010, at 1:46 PM, James Cicenia wrote:
>
>> Hmm.
>>
>> I click and nothing happens.. no popup, no error in any console. It does fire my action method:
>>
>> public AdminEditFestivalArtist selectFestivalArtistToEdit() {
>> AdminEditFestivalArtist nextPage = (AdminEditFestivalArtist)pageWithName("AdminEditFestivalArtist");
>> FestivalArtist fa = (FestivalArtist)grid.displayGroup().allObjects().objectAtIndex(grid.displayGroup().allObjects().indexOfObject(grid.row()));
>> ((Session)session()).setCurrentFestivalArtist(fa);
>> nextPage.setTheFestivalArtist(fa);
>> return nextPage;
>> }
>>
>>
>> Is that not correct?
>>
>>
>> Thanks
>> James
>>
>> On Jan 29, 2010, at 3:35 PM, Chuck Hill wrote:
>>
>>> AjaxModalDialogOpener.
>>>
>>>
>>> On Jan 29, 2010, at 1:33 PM, James Cicenia wrote:
>>>
>>>> Hello -
>>>>
>>>> I am using AjaxGrid and that works great. I can even communicate to it, etc.
>>>>
>>>> However, now I want to create a link to popup a modal edit window. I am
>>>> confused on what link to use. I would prefer it to render a page after loading
>>>> vs. putting hundreds of forms inline for each repetition.
>>>>
>>>> What is the proper way to do this?
>>>>
>>>> thanks
>>>> James
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>> --
>>> 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
>
> --
> 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