Examples of resolveVariable()


Examples of javax.faces.el.VariableResolver.resolveVariable()

    }
   
    public boolean isLoggedIn() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        DcWebUser wu = (DcWebUser) vr.resolveVariable(fc, "user");
        return wu != null && SecurityCentre.getInstance().isLoggedIn(wu.getSecuredUser());
    }
   
    public String logoff() {
        FacesContext fc = FacesContext.getCurrentInstance();
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

    }
   
    public String logoff() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        DcWebUser wu = (DcWebUser) vr.resolveVariable(fc, "user");
       
        wu.setPassword(null);
        wu.setUsername(null);
        wu.setSecuredUser(null);
       
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

       
        wu.setPassword(null);
        wu.setUsername(null);
        wu.setSecuredUser(null);
       
        DcWebModules modules = (DcWebModules) vr.resolveVariable(fc, "modules");
        modules.load();
       
        DcWebObjects objects = (DcWebObjects) vr.resolveVariable(fc, "webObjects");
        objects.setModule(0);
       
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

        wu.setSecuredUser(null);
       
        DcWebModules modules = (DcWebModules) vr.resolveVariable(fc, "modules");
        modules.load();
       
        DcWebObjects objects = (DcWebObjects) vr.resolveVariable(fc, "webObjects");
        objects.setModule(0);
       
        return "login";
    }
}
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

    @Override
    protected DcWebObject getItem() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        return (DcWebObject) vr.resolveVariable(fc, "webChildObject");
    }

    @Override
    public String getActionListener() {
        return "#{childDetails.actionListener}";
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

    @Override
    protected String afterCreate() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        DcWebObject wo = (DcWebObject) vr.resolveVariable(fc, "webObject");
        wo.loadChildren();
       
        return back();
    }
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

    @Override
    protected String afterUpdated() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        DcWebObject wo = (DcWebObject) vr.resolveVariable(fc, "webObject");
        wo.loadChildren();
       
        return back();
    }
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

    @SuppressWarnings("unchecked")
    public String open() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        DcWebObject wo = (DcWebObject) vr.resolveVariable(fc, "webObject");
        List<Object> row = (List<Object>) wo.getChildren().getRowData();
        int moduleIdx = DcModules.get(wo.getModule()).getChild().getIndex();
       
        DcWebObject child = (DcWebObject) vr.resolveVariable(fc, "webChildObject");
       
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

        VariableResolver vr = fc.getApplication().getVariableResolver();
        DcWebObject wo = (DcWebObject) vr.resolveVariable(fc, "webObject");
        List<Object> row = (List<Object>) wo.getChildren().getRowData();
        int moduleIdx = DcModules.get(wo.getModule()).getChild().getIndex();
       
        DcWebObject child = (DcWebObject) vr.resolveVariable(fc, "webChildObject");
       
        if (!getUser().isAuthorized(DcModules.get(moduleIdx)))
            return redirect();

        child.initialize(moduleIdx);
View Full Code Here

Examples of javax.faces.el.VariableResolver.resolveVariable()

        if (!isLoggedIn())
            return redirect();
       
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        DcWebObject wo = (DcWebObject) vr.resolveVariable(fc, "webObject");
       
        int moduleIdx = wo.getModule();
       
        if (!getUser().isAuthorized(DcModules.get(moduleIdx)))
            return redirect();
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.