Examples of resolveVariable()


Examples of com.volantis.xml.expression.impl.SimpleExpressionScope.resolveVariable()

        assertSame("Scope A's variable x should have been available",
                   x,
                   scopeA.resolveVariable(nameX).getValue());
        assertSame("Scope A's variable x should be hidden",
                   x2,
                   scopeB.resolveVariable(nameX).getValue());
        assertSame("Scope A's variable x2 should have been available",
                   x2,
                   scopeB.resolveVariable(nameX2).getValue());
        assertNull("The duff variable should not have been available",
                   scopeB.resolveVariable(duff));
View Full Code Here

Examples of freemarker.core.Scope.resolveVariable()

        }
        final Scope scope = (Scope) model;
        return new TemplateMethodModel() {
            @Parameters("key")
            public Object exec(List args) throws TemplateModelException {
                return scope.resolveVariable((String) args.get(0));
            }
        };
    }
}
View Full Code Here

Examples of javax.el.VariableMapper.resolveVariable()

                context.setPropertyResolved(true);
                LocalizedMap map = (LocalizedMap) base;
                Locale locale = null;
                try {
                    VariableMapper vm = context.getVariableMapper();
                    ValueExpression ve = vm.resolveVariable(localizedMapLocaleKey);
                    if (ve != null) {
                        locale = (Locale) ve.getValue(context);
                    }
                    if (locale == null) {
                        ve = vm.resolveVariable("locale");
View Full Code Here

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

public class DcSecured {
   
    protected boolean isLoggedIn() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        Security security = (Security) vr.resolveVariable(fc, "security");
        return security.isLoggedIn();
    }
   
    public SecuredUser getUser() {
        FacesContext fc = FacesContext.getCurrentInstance();
View Full Code Here

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

    }
   
    public SecuredUser getUser() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        Security security = (Security) vr.resolveVariable(fc, "security");
        return security.getUser();
    }
   
    protected String redirect() {
        return "login";
View Full Code Here

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

            return redirect();
       
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
       
        DcWebObjects objects = (DcWebObjects) vr.resolveVariable(fc, "webObjects");
        AdvancedFilter af = (AdvancedFilter) vr.resolveVariable(fc, "advancedFilter");

        af.initialize(objects.getModule());
       
        return current();
View Full Code Here

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

       
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
       
        DcWebObjects objects = (DcWebObjects) vr.resolveVariable(fc, "webObjects");
        AdvancedFilter af = (AdvancedFilter) vr.resolveVariable(fc, "advancedFilter");

        af.initialize(objects.getModule());
       
        return current();
    }
View Full Code Here

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

   
    public String addEntry() {
       
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        AdvancedFilter af = (AdvancedFilter) vr.resolveVariable(fc, "advancedFilter");
       
        DataFilterEntry entry = af.getEntry();
        if (entry.getOperator() == null) {
            fc.addMessage("msg", new FacesMessage("Operator is not filled!"));
        } else if (entry.getOperator().needsValue() && Utilities.isEmpty(entry.getValue())) {
View Full Code Here

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

    }

    public String deleteEntry() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        AdvancedFilter af = (AdvancedFilter) vr.resolveVariable(fc, "advancedFilter");
        Map map = fc.getExternalContext().getRequestParameterMap();
        af.deleteEntry(Integer.parseInt((String) map.get("index")));
        return current();
    }
View Full Code Here

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

    }

    public String editEntry() {
        FacesContext fc = FacesContext.getCurrentInstance();
        VariableResolver vr = fc.getApplication().getVariableResolver();
        AdvancedFilter af = (AdvancedFilter) vr.resolveVariable(fc, "advancedFilter");
        Map map = fc.getExternalContext().getRequestParameterMap();
        af.editEntry(Integer.parseInt((String) map.get("index")));
        return current();
    }
   
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.