Something interesting.... the two popups are set up as in the ajax example as 
being dependent. When I change popup1 (Category) I fire a method to get the 
appropriate subCategories for this category.

In my experiments, I have an action on popup2 (subcategory). after I change 
popup1, popup2 no longer fires its action method. but if I only change popup2, 
the action method fires just fine.

Ted

--- On Tue, 5/19/09, Theodore Petrosky <[email protected]> wrote:

> From: Theodore Petrosky <[email protected]>
> Subject: help... dependent popups ajax and modalContainer problem
> To: [email protected]
> Date: Tuesday, May 19, 2009, 9:40 AM
> I still haven't been able to
> understand my problem with these dependent popups.
> 
> I have a displayGroup in a table. when you select a row to
> edit, a modalContainer comes up with the various fields. I
> have a Category and a subCategory set of popups.
> (subCategory dependent on Category) If you change the
> Category, I fire a method that goes to the backend and gets
> the appropriate subCategories. I then manually (in the
> getSubCatsForCategory method) set the subcategory in the
> displayGroup selectedObject to the zeroth element (each
> category has a first element the says "choose one").
> 
> If I saveChanges now I am golden. However, if I now change
> the subCategory popup, the subCategory attribute is not
> updated (it is saved with the zeroth element of the array).
> It is as if the popup has lost its 'connection' to the
> attribute.
> 
> What can I show you?
> 
> BTW, if I start the process with the first entity in the
> displayGroup, everything works as advertised. I only have
> the problem with all the other entities.
> 
> As I have set this up using migrations and postgresql, I
> could export the whole thing, zip it up and send it to
> anyone that could help (as embarrassing as it is for me to
> let someone see my attempts at coding).
> 
> 
> 
> 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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to