Package javax.faces.el

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


    @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

    @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

    @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

    @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

        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

        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

        int moduleIdx = wo.getModule();
       
        if (!getUser().isAuthorized(DcModules.get(moduleIdx)))
            return redirect();
       
        DcWebObject child = (DcWebObject) vr.resolveVariable(fc, "webChildObject");
        child.initialize(DcModules.get(moduleIdx).getChild().getIndex());
        child.setNew(true);
       
        return current();
    }
View Full Code Here

    }

    public String save() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        DcWebObject wod = (DcWebObject) vr.resolveVariable(fc, "webChildObject");
        return save(wod);
    }
}
View Full Code Here

    private DcWebObject getParentObject() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();

        return isChild ?
               (DcWebObject) vr.resolveVariable(fc, "webChildObject"):
               (DcWebObject) vr.resolveVariable(fc, "webObject");
    }
   
    public String open() {
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.