• 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
wopopupbutton and selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wopopupbutton and selection


  • Subject: wopopupbutton and selection
  • From: email@hidden
  • Date: Fri, 22 Aug 2008 12:53:18 -0700 (PDT)

I am having a problem with a popupbutton. Here is my html:

<body>
<wo:WOForm multipleSubmit = "true">
<div class = "box1">

	<wo:WOPopUpButton id = "button1" list = "$Manufacturers" item = "$listItem" selection = "$selectedManufacturer" displayString  = "$listItem.manufacturerName" noSelectionString = "No Manufacturer Selected" />

</div></wo:WOForm>
</body>

it is picking up the list of items from my postgresql backend just fine, however when I change the popup on a web page the selection object doesn't change. I am using he "AjaxExample" as the example

here is the pertinent java..:

	public NSArray<Manufacturer> Manufacturers() {
		return newHoldingArray;
	}

	/**
	 * @return the selectedManufacturer
	 */
	public Manufacturer selectedManufacturer() {
    	NSLog.out.appendln("returning the manufacturer");
		return _selectedManufacturer;
	}

	/**
	 * @param selectedManufacturer the selectedManufacturer to set
	 */
	public void setSelectedManufacturer(Manufacturer selectedManufacturer) {
		if (_selectedManufacturer != selectedManufacturer) {
    	NSLog.out.appendln("setting the manufacturer = " + selectedManufacturer.manufacturerName());
		_selectedManufacturer = selectedManufacturer;
		}
    	NSLog.out.appendln("setting the manufacturer");
	}

when the app runs, I see the "returning the manufacturer" in the logs however, when I change the popup, 'setSelectedManufacturer' never gets called.

Is there enough to help me here?

I am going to pore over the ajaxExample and see if I just left out something important. Who knows.


Ted



 _______________________________________________
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

  • Follow-Ups:
    • Re: wopopupbutton and selection
      • From: Guido Neitzer <email@hidden>
    • Re: wopopupbutton and selection
      • From: Mike Schrag <email@hidden>
  • Prev by Date: FrontBase and write data export/import
  • Next by Date: Re: wopopupbutton and selection
  • Previous by thread: Re: FrontBase and write data export/import
  • Next by thread: Re: wopopupbutton and selection
  • Index(es):
    • Date
    • Thread