Re: Batched AjaxUpdateContainer ?
Re: Batched AjaxUpdateContainer ?
- Subject: Re: Batched AjaxUpdateContainer ?
- From: Theodore Petrosky <email@hidden>
- Date: Tue, 14 May 2013 08:46:39 -0700 (PDT)
is it possible to use an AjaxUpdateTrigger? It takes an array of containers. if you did create the batches of rows, you could add and detract from the array of groups.
(That's if I understand what you are trying to do!)
Ted
--- On Tue, 5/14/13, Jan Taterka <email@hidden> wrote:
> From: Jan Taterka <email@hidden>
> Subject: Batched AjaxUpdateContainer ?
> To: email@hidden
> Date: Tuesday, May 14, 2013, 10:08 AM
> 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
>
_______________________________________________
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