• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: bindings and WOPopUp lists and selections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindings and WOPopUp lists and selections


  • Subject: Re: bindings and WOPopUp lists and selections
  • From: Theodore Petrosky <email@hidden>
  • Date: Mon, 22 Jun 2009 07:15:52 -0700 (PDT)

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: bindings and WOPopUp lists and selections
  • Next by Date: Re: WebObjects Puzzlers on WOWODC 2008 :-)
  • Previous by thread: Re: bindings and WOPopUp lists and selections
  • Next by thread: Re: bindings and WOPopUp lists and selections
  • Index(es):
    • Date
    • Thread