Hi Johnny,

In the method generateActionUrl

If you put console.log(form.action) at the top of the method what does it 
output?

'undefined'

Are your inputs nested inside a form?

I just built a test case. It is a new, vanilla, Wonder Application
generated with WOLips. The only thing altered is the 'Main' component,
as shown below.

- If I click the popup button nothing happens. Error console
  displays: 'TypeError: actionUrl is undefined'. actionObserver()
  is not called.

- If I comment out MTAjaxObserveField's 'updateContainerID':
  actionObserver() gets called, error console is emtpy, but obviously
  the container gets no update.

- If I comment out 'fullSubmit' everything works fine. actionObserver()
  gets called, error console is empty and the container gets updated,
  the WOString prints my selection in the browser.

Thanks,
  Michael

------------------
public class Main extends ERXComponent {
        private static final NSArray<String> popupList =
                new NSArray<>("Eins", "Zwei", "Drei");
        public String selection;

        public Main(WOContext context) {
                super(context);
        }
        public NSArray<String> popupList() {
                return popupList;
        }
        public WOActionResults actionObserver() {
                System.out.println("observer: " + selection);
                return null;
        }
}
------------------
<html>
  <body>
    <webobject name="Form">
      <webobject name="UpdateContainer">
        <webobject name="Observer">
          <webobject name="Popup" />
        </webobject>
        <webobject name="Selection" />
      </webobject>
    </webobject>
  </body>
</html>
------------------
Form : WOForm {
}
UpdateContainer : MTAjaxUpdateContainer {
        id = "ta_panel";
        elementName = "div";
}
Observer : MTAjaxObserveField {
        action = actionObserver;
        updateContainerID = "ta_panel";
        fullSubmit = true;
}
Popup : WOPopUpButton {
        list = popupList;
        selection = selection;
}
Selection : WOString {
        value = selection;
}
------------------

--
___________________________

Michael Schmiedgen, BSc
Senior Software Engineer

Takwa GmbH
Friedrich-List-Str. 36
99096 Erfurt GERMANY

Tel  +49 361 6534096
Fax  +49 361 6534097
Mail [email protected]
Web  http://www.takwa.de/
___________________________


Amtsgericht Jena HRB 112964
Geschäftsführung: Ingo Buchholz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to