Am I onto something:

I am using the AjaxExample as the basis... so when I click on a row I fire the 
selectOject action. I stuck a log in the action.... 

public void selectObject() {
        dg.setSelectedObject(current);
        NSLog.out.appendln("selected object  = " + current);
}

when I click on the first row, i see this..

 INFO  NSLog  - selected object  = <com.as.Model.Contact pk:"41">

if I click any other row I see a double hit

INFO  NSLog  - selected object  = <com.as.Model.Contact pk:"41">
INFO  NSLog  - selected object  = <com.as.Model.Contact pk:"48">

Here is the HTML for the modal container:

<wo:AjaxModalContainer ajax="true" action = "$selectObject" id = 
"theEditContactModalContainer" label="$current.companyName" 
class="edit_contact">

BTW I am using the nightly build

Ted

 
> On Jun 21, 2009, at 8:10 PM, Theodore Petrosky
> wrote:
> however
> if I select any other row. it fails. I can change the
> category and the subcat popup has the wrong list. so I am
> looking at a change to 'banking' (category) and I
> see the subcat list for 'aviation'.
> 
> this error only happens on the NON first element of the
> displayGroup. Is it possible that I have the displayGroup
> set up wrong?
> 
> When you say you select any other row, do you mean
> setting the current to another
> row?  That should work!  If it's not working then I would try to find out why it's not.  
> For example, if your category pop-up
>  hag
>       selection =
> current.contactCategory;
> and then your sub-category pop-up
> had:
>       list =
> current.contactCategory.subCategories;        selection =
> current.subCategory;
> then I'm pretty sure it would work as that
> is a typical setup I've used in my apps.  In other
> words, everything is tied to current so that when you change
> it then the selection in the category pop-up updates and
> then the list of sub-categories and selection there also
> update in the user interface.
> 
> 



 _______________________________________________
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