• 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
AjaxUpdateContainer Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AjaxUpdateContainer Problem


  • Subject: AjaxUpdateContainer Problem
  • From: Benjamin Steiner <email@hidden>
  • Date: Tue, 24 Nov 2015 17:40:17 +0100

Hi list,

I have a problem with getting an AjaxUpdateContainer to actually update. My idea is to have an AjaxUpdateContainer with a list of Items and an AjaxModalDialog to insert a new item into said list. At the moment my code looks something like this:

HTML

<webobject name = “ItemListUpdateContainer”>
(LIST TO REFRESH)
<webobject name = "createItemDialog">
<webobject name = "form”>
(FORM FOR NEW ITEM)
<webobject name = "createItemSubmitButton"/>
</weboject>
</weboject>
</weboject>

Bindings

itemListUpdateContainer : AjaxUpdateContainer {
id =  “itemList";
action = "">
}

createItemDialog: AjaxModalDialog {
id = "createItemDialog";
title = "Create New Item";
label = "Create New Item";
locked = true;
}

form : WOForm {
}

createItemSubmitButton : CCSmartAjaxButton {
action = "">
useAjax = true;
value = "Create";
updateContainerID = "itemList";
}

Java

public WOActionResults updateItemListContainer() {
return null;
}

public WOActionResults createItem() {
(SETTING ALL THE VALUES AND STUFF)
ec.insertObject(newItem);
ec.saveChanges();
AjaxUtils.appendScript(context(), "AMD.close(); itemListUpdate();");
return null;
}

Does anyone have an idea what i’m doing wrong? It’s probably a trivial mistake, but i really don’t see it right now.

Thanks, 
Beni
 _______________________________________________
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: AjaxUpdateContainer Problem
      • From: Theodore Petrosky <email@hidden>
    • Re: AjaxUpdateContainer Problem
      • From: Paul Yu <email@hidden>
  • Prev by Date: Re: WOWODC 2016: call for papers!
  • Next by Date: Re: AjaxUpdateContainer Problem
  • Previous by thread: RE: WOWODC 2016: call for papers!
  • Next by thread: Re: AjaxUpdateContainer Problem
  • Index(es):
    • Date
    • Thread