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 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