Full page refresh in Icefaces 1.8.2?

Icefaces only updates the changed parts on the page. In my program, I want to refresh a full page through bean management. Does anyone know how to do this? Thanks.

+3
source share
3 answers

Performing page refresh is easy using the ICeFaces API, you can do this, for example, in action or actionlistener.

PersistentFacesState.redirectTo(uri);

Where "uri" is the URI. This will ensure browser redirection and page refresh.

+2
source

: () () . , Icefaces, , JSF <h:form>, <h:commandButton> <h:commandLink> .

+1

Another approach is for JavaScript to refresh the page. There is an elegant way to execute JavaScript using ICEfaces.

FacesContext ctx = FacesContext.getCurrentInstance();
JavascriptContext.addJavascriptCall(ctx, "location.reload(true);");
0
source

Source: https://habr.com/ru/post/1722520/


All Articles