added method to determine wether a call is render or response request
This commit is contained in:
@ -12,6 +12,14 @@ public abstract class FacesUtil {
|
|||||||
private FacesUtil() {
|
private 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();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user