Package javax.faces.context

Examples of javax.faces.context.ExternalContext.log()


            return result != null && result;
        } catch (ClassNotFoundException e) {
            return false;
        } catch (NoSuchMethodException e) {
            externalContext.log("Ajax4jsf support is disabled because getCurrentInstance method was not " +
                    "found in org.ajax4jsf.context.AjaxContext.", e);
            return false;
        } catch (IllegalAccessException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext", e);
View Full Code Here


        } catch (NoSuchMethodException e) {
            externalContext.log("Ajax4jsf support is disabled because getCurrentInstance method was not " +
                    "found in org.ajax4jsf.context.AjaxContext.", e);
            return false;
        } catch (IllegalAccessException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext", e);
            return false;
        } catch (InvocationTargetException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext", e);
View Full Code Here

        } catch (IllegalAccessException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext", e);
            return false;
        } catch (InvocationTargetException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext", e);
            return false;
        }
    }
View Full Code Here

        Object result = null;
        try {
            Class reflectionClass = Class.forName(className);
            result = invokeMethod(reflectionClass, methodName, methodParameterClasses, methodParameterObjects, invokeOnObject);
        } catch (ClassNotFoundException e) {
            externalContext.log("Class " + className + " was not found.");
        }
        return result;
    }

    public static Object invokeMethod(Class clazz,
View Full Code Here

                    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
                    Map<String, Object> applicationMap = externalContext.getApplicationMap();
                    String messageLoggedKey = "org.openfaces.util.RequestFacade.getInstance.IAE_logged";
                    if (!applicationMap.containsKey(messageLoggedKey)) {
                        applicationMap.put(messageLoggedKey, Boolean.TRUE);
                        externalContext.log("OpenFaces library warning: couldn't check \"instanceof javax.portlet.PortletRequest\"", e);
                    }
                }
            }

        if (request instanceof HttpServletRequest) {
View Full Code Here

                            return result;
                    }
                }
            }
        } catch (NoSuchMethodException e) {
            externalContext.log("Ajax4jsf support is disabled, because getCurrentInstance method was not " +
                    "found in org.ajax4jsf.context.AjaxContext.");
            return false;
        } catch (IllegalAccessException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext");
View Full Code Here

        } catch (NoSuchMethodException e) {
            externalContext.log("Ajax4jsf support is disabled, because getCurrentInstance method was not " +
                    "found in org.ajax4jsf.context.AjaxContext.");
            return false;
        } catch (IllegalAccessException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext");
            return false;
        } catch (InvocationTargetException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext");
View Full Code Here

        } catch (IllegalAccessException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext");
            return false;
        } catch (InvocationTargetException e) {
            externalContext.log("Ajax4jsf support is disabled because exception was thrown during " +
                    "execution of getCurrentInstance method in org.ajax4jsf.context.AjaxContext");
            return false;
        }
        return false;
    }
View Full Code Here

        try {
            Method reflectionMethod = clazz.getDeclaredMethod(methodName, methodParameterClasses);
            reflectionMethod.setAccessible(true);
            result = reflectionMethod.invoke(invokeOnObject, methodParameterObjects);
        } catch (NoSuchMethodException e) {
            externalContext.log("Method " + methodName + " was not found in class " + className + " .");
        } catch (IllegalAccessException e) {
            externalContext.log("IllegalAccessException during access to " + methodName + " in class " + className + " .");
        } catch (InvocationTargetException e) {
            externalContext.log("InvocationTargetException during access to " + methodName + " in class " + className + " .");
        }
View Full Code Here

            reflectionMethod.setAccessible(true);
            result = reflectionMethod.invoke(invokeOnObject, methodParameterObjects);
        } catch (NoSuchMethodException e) {
            externalContext.log("Method " + methodName + " was not found in class " + className + " .");
        } catch (IllegalAccessException e) {
            externalContext.log("IllegalAccessException during access to " + methodName + " in class " + className + " .");
        } catch (InvocationTargetException e) {
            externalContext.log("InvocationTargetException during access to " + methodName + " in class " + className + " .");
        }
        return result;
    }
View Full Code Here

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.