Package Util

Source Code of Util.RefreshTela

package Util;

import javax.faces.application.Application;
import javax.faces.application.ViewHandler;
import javax.faces.bean.ManagedBean;
import javax.faces.component.UIViewRoot;
import javax.faces.context.FacesContext;

public class RefreshTela {
 
    public void atualizarTela(){
        FacesContext context = FacesContext.getCurrentInstance()
        Application application = context.getApplication()
        ViewHandler viewHandler = application.getViewHandler()
        UIViewRoot viewRoot = viewHandler.createView(context, context.getViewRoot().getViewId())
        context.setViewRoot(viewRoot)
        context.renderResponse();  
    }
   
}
TOP

Related Classes of Util.RefreshTela

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.