Re: Custom Ajax Component parent page re rendereing
Re: Custom Ajax Component parent page re rendereing
- Subject: Re: Custom Ajax Component parent page re rendereing
- From: Samuel Pelletier via Webobjects-dev <email@hidden>
- Date: Sat, 1 Feb 2020 15:37:11 -0500
Hi Michael,
If processing an AjaxRequest, you should not see the entire page rerendered.
You may verify by adding a break point on the main page appendToResponse method.
If you wonder why getters on your main component are called like list for a
repetition, this is required to find out the child component that should
process the request.
It may be confusing but the WebObject component request handling magic will
reconstruct the WOElement tree on each request. This is why repetition list
should be bound to array you are sure cannot change between requests (it can
usually safely change during action handling and in append to response)
Regards,
Samuel
> Le 27 janv. 2020 à 18:06, Michael Kondratov via Webobjects-dev
> <email@hidden> a écrit :
>
> I am working on a small Ajax Component that would save current scroller
> position. Everything is working except I just noticed that AjaxComponent
> actually re-renders entire page while generating a small Ajax response. Is
> that a normal behavior?
>
>
> Michael
>
> _______________________________________________
> 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