Package org.apache.beehive.netui.tags

Examples of org.apache.beehive.netui.tags.ExpressionHandling


    public void doTag()
            throws JspException, IOException {

        // ensure the dataSource is a valid expression
        String dataSource = getDataSource();
        ExpressionHandling expr = new ExpressionHandling(this);
        String validExpr = expr.ensureValidExpression(dataSource, "dataSource", "DataSourceError");
        Object ds = expr.evaluateExpression(validExpr, "dataSource", getPageContext());
        Iterator iterator = IteratorFactory.createIterator(ds);

        JspContext jspContext = getJspContext();
        HttpServletRequest request = JspUtil.getRequest(jspContext);
View Full Code Here


     * @return Object
     * @throws JspException
     */
    private Object evaluateDataSource()
            throws JspException {
        ExpressionHandling expr = new ExpressionHandling(this);
        String dataSource = getDataSource();
        String ds = expr.ensureValidExpression(dataSource, "dataSource", "DataSourceError");
        if (ds == null)
            return null;

        /* have a valid expression */
        return expr.evaluateExpression(dataSource, "dataSource", pageContext);
    }
View Full Code Here

     * @return Object
     * @throws JspException
     */
    private Object evaluateDataSource()
        throws JspException {
        ExpressionHandling expr = new ExpressionHandling(this);
        String dataSource = getDataSource();
        String ds = expr.ensureValidExpression(dataSource, "dataSource", "DataSourceError");
        if (ds == null)
            return null;

        Object o = expr.evaluateExpression(dataSource, "dataSource", pageContext);
        return o;
    }
View Full Code Here

        // if there was a dataSource defined we need to get it based upon the expression
        // if the variable comes back null, we then create a DivPanelState and set it back
        // to the property referred to by the expression.
        DivPanelState state = null;
        if (_dataSource != null) {
            ExpressionHandling _expr;
            _expr = new ExpressionHandling(this);
            try {
                state = getState(_expr);
            }
            catch (IllegalExpressionException iee) {
                String s = Bundle.getString("TreeRootError", new Object[]{_dataSource, iee.getMessage()});
                registerTagError(s, null);
                return SKIP_BODY;
            }
            if (hasErrors())
                reportAndExit(SKIP_BODY);

            // if we got here and the state is null then create a new divPanel, and push it back on
            // the expression
            if (state == null) {
                try {
                    state = new DivPanelState();
                    String datasource = "{" + _dataSource + "}";
                    _expr.updateExpression(datasource, state, pageContext);
                }
                catch (ExpressionUpdateException e) {
                    String s = Bundle.getString("Tags_UnableToWriteTree", new Object[]{_dataSource, e.getMessage()});
                    registerTagError(s, null);
                    reportErrors();
View Full Code Here

     */
    protected Object evaluateDataSource()
            throws JspException
    {
        // @todo: at some point we need to switch the expression evaluation to not require '{'
        ExpressionHandling expr = new ExpressionHandling(this);
        String datasource = "{" + _dataSource + "}";
        String ds = expr.ensureValidExpression(datasource, "dataSource", "DataSourceError");
        if (ds == null)
            return null;

        // have a valid expression
        return expr.evaluateExpression(datasource, "dataSource", pageContext);
    }
View Full Code Here

     * @throws JspException
     */
    protected Object evaluateDataSource()
            throws JspException
    {
        ExpressionHandling expr = new ExpressionHandling(this);
        String dataSource = "{" + _dataSource + "}";
        String ds = expr.ensureValidExpression(dataSource, "dataSource", "DataSourceError");
        if (ds == null)
            return null;

        // have a valid expression
        return expr.evaluateExpression(dataSource, "dataSource", pageContext);
    }
View Full Code Here

        // if there was a dataSource defined we need to get it based upon the expression
        // if the variable comes back null, we then create a DivPanelState and set it back
        // to the property referred to by the expression.
        DivPanelState state = null;
        if (_dataSource != null) {
            ExpressionHandling _expr;
            _expr = new ExpressionHandling(this);
            try {
                state = getState(_expr);
            }
            catch (IllegalExpressionException iee) {
                String s = Bundle.getString("TreeRootError", new Object[]{_dataSource, iee.getMessage()});
                registerTagError(s, null);
                return SKIP_BODY;
            }
            if (hasErrors())
                reportAndExit(SKIP_BODY);

            // if we got here and the state is null then create a new divPanel, and push it back on
            // the expression
            if (state == null) {
                try {
                    state = new DivPanelState();
                    String datasource = "{" + _dataSource + "}";
                    _expr.updateExpression(datasource, state, pageContext);
                }
                catch (ExpressionUpdateException e) {
                    String s = Bundle.getString("Tags_UnableToWriteTree", new Object[]{_dataSource, e.getMessage()});
                    registerTagError(s, null);
                    reportErrors();
View Full Code Here

     * @return Object
     * @throws JspException
     */
    private Object evaluateDataSource()
        throws JspException {
        ExpressionHandling expr = new ExpressionHandling(this);
        String dataSource = getDataSource();
        String ds = expr.ensureValidExpression(dataSource, "dataSource", "DataSourceError");
        if (ds == null)
            return null;

        Object o = expr.evaluateExpression(dataSource, "dataSource", pageContext);
        return o;
    }
View Full Code Here

     */
    protected Object evaluateDataSource()
            throws JspException
    {
        // @todo: at some point we need to switch the expression evaluation to not require '{'
        ExpressionHandling expr = new ExpressionHandling(this);
        String datasource = "{" + _dataSource + "}";
        String ds = expr.ensureValidExpression(datasource, "dataSource", "DataSourceError");
        if (ds == null)
            return null;

        // have a valid expression
        return expr.evaluateExpression(datasource, "dataSource", pageContext);
    }
View Full Code Here

        // if there was a dataSource defined we need to get it based upon the expression
        // if the variable comes back null, we then create a DivPanelState and set it back
        // to the property referred to by the expression.
        DivPanelState state = null;
        if (_dataSource != null) {
            ExpressionHandling _expr;
            _expr = new ExpressionHandling(this);
            try {
                state = getState(_expr);
            }
            catch (IllegalExpressionException iee) {
                String s = Bundle.getString("TreeRootError", new Object[]{_dataSource, iee.getMessage()});
                registerTagError(s, null);
                return SKIP_BODY;
            }
            if (hasErrors())
                reportAndExit(SKIP_BODY);

            // if we got here and the state is null then create a new divPanel, and push it back on
            // the expression
            if (state == null) {
                try {
                    state = new DivPanelState();
                    String datasource = "{" + _dataSource + "}";
                    _expr.updateExpression(datasource, state, pageContext);
                }
                catch (ExpressionUpdateException e) {
                    String s = Bundle.getString("Tags_UnableToWriteTree", new Object[]{_dataSource, e.getMessage()});
                    registerTagError(s, null);
                    reportErrors();
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.tags.ExpressionHandling

Copyright © 2018 www.massapicom. 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.