Batched AjaxUpdateContainer ?
Batched AjaxUpdateContainer ?
- Subject: Batched AjaxUpdateContainer ?
- From: Jan Taterka <email@hidden>
- Date: Tue, 14 May 2013 16:08:49 +0200
Hi guys,
Just wonder about some batched AjaxUpdateContainer. I have following situation in my app:
<wo:AjaxUpdateContainer name ="uc" id="someId" fullSubmit="true" id = ucId >
<wo:WORepetition name = "rep" list=myList item=myItem>
<tr>
<td><wo:WOPopUpButton ...></td>
<td> ... </td>
</tr>
</wo:WORepetition>
<wo:AjaxSubmitButton updateContainerId = ucId name="addMoreBtn" action = addEmptyListItem ... />
</wo:AjaxUpdateContainer>
and java:
public NSMutableArray<SomeObject> myList;
public SomeObject myItem;
public WOActionResults addEmptyListItem() {
if(myList == null) {
myList = new NSMutableArray<SomeObject>();
}
myList.addObject(new SomeObject());
return null;
}
public String ucId() {
return "unique-constant-id";
}
Just to draft the code. Now, When the size of myList is lower than for example 200 elements, the addEmptyListItem method executes quite fast. When riching 200+elements, the response is a bit to large (1MB uncompressed) and adding new line takes 3-4 seconds and this time grows in function of list's elements count. Unfortunately, in my repetition is some DOM based javascript, so it slow's down the response a bit more.
I wonder, i i can e ome trick / component i do not know, which could help with this situation? One of my ideas is UpdateContainer only for last "row", but how to do it? (Each row my contain some link to "remove" element from list, what breaks my idea of making separated UpdateContainer for evry N rows (30-40).
Thanks for any help!
_______________________________________________
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