


Hi,
I need to reload my component when i edit . It should not reload the whole page.
If my page is having 10 components , if i edit a component in it, only that component should be reload.
Please Provide any links to refer this concept.
Views
Replies
Sign in to like this content
Total Likes
When you edit a given component by opening its dialog, entering data and clicking dialog done button - the component is refreshed.
Views
Replies
Sign in to like this content
Total Likes
Hi Scott,
I don't want the entire page to reload after submitting the dialog.
I have read a sling concept which will enable that particular edited component to reload but not the entire page.
Could you provide any such references?
Views
Replies
Sign in to like this content
Total Likes
See this thread - may be helpful for your use case - adobe - Can only a component field be refreshed after editing instead of refreshing the whole page? ...
Views
Replies
Sign in to like this content
Total Likes
Hi,
As Scott suggested REFRESH_SELF will help.
More info
Other option you could be looking for along with edit
afterdelete | The handler is triggered after the component is removed. | REFRESH_SELF |
afteredit | The handler is triggered after the component is edited. | REFRESH_SELF |
aftercopy | The handler is triggered after the component is copied. | REFRESH_SELF |
afterinsert | The handler is triggered after the component is inserted. | REFRESH_INSERTED |
aftermove | The handler is triggered after the component is moved. | REFRESH_SELFMOVED |
Views
Replies
Sign in to like this content
Total Likes
Thanks Scott and Arun for the posts, but is there anything that can be implemented at sling level for this kind of functionality?
Views
Replies
Sign in to like this content
Total Likes
Hi,
What do you mean by component refresh at sling level. Sling render the content of the component in the page, do you want to alter that content? Can you please explain your use case?
Views
Replies
Sign in to like this content
Total Likes
Hi Arun,
In normal scenario's when I edit the dialog and submit , the whole page will reload which means all the other components which are not edited will also load again which I didn't want to happen.
I want only the particular component to load again instead of whole page refresh.
Views
Replies
Sign in to like this content
Total Likes
The thread i referenced states how to do what you want.
Views
Replies
Sign in to like this content
Total Likes