cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh page after actionlink clicked

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

i want to refresh a page after an actionlink was clicked in a dialog jsp.
I take a look in lot of beans i see that in AddContentDialog that is working because you return null.

I did same thing but nothing happen, no refresh Smiley Sad

Someone have an idea how i can force refresh after actionlink was clicked ?

Thx in advance.
6 REPLIES 6

kevinr
Star Contributor
Star Contributor
Call this in your actionListener code:

UIContextService.getInstance(FacesContext.getCurrentInstance()).notifyBeans();

ribz33
Champ on-the-rise
Champ on-the-rise
i try your code, i think my page is refreshed but i have a richlist in this page and i want that this list is refreshed and at the moment nothing happen.

My actionlink remove one element in list, after click list is always the same although i did a list = null in remove action.

After remove action, method getList is not re-executed.

I need to manually refresh page to re-execute getList.

Your code refresh page but not force to re-execute getList i think.

Have you an idea what i did wrong ?

kevinr
Star Contributor
Star Contributor
Add this attribute to your richList component:
refreshOnBind="true"

ribz33
Champ on-the-rise
Champ on-the-rise
Thks a lot this is working now.
:lol:

dgenard
Champ on-the-rise
Champ on-the-rise
We have added the AddAspect dialog, just like the example on wiki (http://wiki.alfresco.com/wiki/Adding_a_Custom_Dialog).

But I still don't know how to refresh the properties when closing the AddAspect dialog. Properties of the added aspect are not immediately visible.
I've try adding
UIContextService.getInstance(FacesContext.getCurrentInstance()).notifyBeans();
in the backing bean AddAspectDialog.finishImpl(…) or doPostCommitProcessing(…) methods, but without success.

Any suggestion ?
Regards, Denis

lmaorence
Confirmed Champ
Confirmed Champ

Hello, I have the same issue, I want to refresh the page on action click on a dialog. But I can see that the AddContentDialog is a .class file, did you had to decompile this to edit the file and how did you compile it again?