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