added method to determine wether a call is render or response request

This commit is contained in:
2019-01-18 14:29:14 +01:00
parent 1aab667a8e
commit dc2ec093d2

View File

@ -13,6 +13,14 @@ public abstract class FacesUtil {
// hide constructor of abstract class // hide constructor of abstract class
} }
public static boolean isRenderRequest() {
return !FacesContext.getCurrentInstance().getRenderResponse();
}
public static boolean isRenderResponse() {
return FacesContext.getCurrentInstance().getRenderResponse();
}
/** /**
* *
* @param message * @param message