APISonar


javax.faces.context.ExternalContext.log

> javax > faces > context > ExternalContext > log
javax APIs faces APIs context APIs ExternalContext APIs log APIs

Example 1
public List<String> getMatchingEmployees() {
        ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
        ec.log("AjaxDelayTest getMatchingEmployees");

        if (name == null) {
            return null;
        }
        List<String> matches = new ArrayList<String>();
        for (String emp : employees) {
            if (emp.startsWith(name)) {
                matches.add(emp);
            }
        }
        return matches;
    }
Example 2
public ActionListener getWrapped() {
        ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
        ec.log("TestActionListenerWrapper.getWrapped()");
        return new TestActionListener();
    }
Example 3
public void logFirst(ExternalContext ec, String clazz, String method, String message) {
        if (logFirst) {
            logFirst = false;
            ec.log("FactoryDepBean logging - " + clazz + "|" + method + "|" + message);
            appBean.addMessage("FactoryDepBean logging - " + clazz + "|" + method + "|" + getName() + ":" + message);
        }
    }
Example 4
public void processAction(ActionEvent event) throws AbortProcessingException {
        ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
        ec.log("TestActionListener.processAction()");
    }
Example 5
public void processEvent(SystemEvent event) {
        ExternalContext context = event.getFacesContext().getExternalContext();

        context.log("processEvent...");
        if (event instanceof PostConstructViewMapEvent) {
            context.log("PostConstructViewMapEventListener processEvent invoked for PostConstructViewMapEvent!!: " + event);
        }

    }
Example 6
public void processEvent(SystemEvent arg0) {
        ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();

        // getRealPath()
        ec.log("JSF23: PreDestroyApplicationEvent getRealPath test: "
               + ec.getRealPath("index.xhtml"));
    }
Example 7
public Flash getFlash(boolean create) {
        ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
        ec.log("TestFlashFactory.getFlash");

        return new TestFlashImpl(getWrapped().getFlash(create));
    }