added method to determine wether a call is render or response request
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user