Package org.apache.empire.struts2.jsp.components

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent


            onclick = HtmlTagDictionary.getInstance().AnchorDefaultOnClickScript();
        */   

        super.populateParams();

        AnchorComponent anchor = (AnchorComponent) component;
        // Set item param
        if (item != null)
        {
            anchor.addParameter(str(param, getActionItemPropertyName()), getString(item));
        }
        // get Href
        anchor.setAction(action);
        anchor.setText(getString(text));
        anchor.setDisabled(getBoolean(disabled, false));
        anchor.setTarget(target);
        anchor.setOnclick(onclick);
    }
View Full Code Here


    }

    @Override
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
    {
        return new AnchorComponent(stack, req, res);
    }
View Full Code Here

    @Override
    protected void populateParams()
    {
        super.populateParams();
       
        AnchorComponent anchor = (AnchorComponent)component;
        // get Href
        anchor.setAction(action);
    }
View Full Code Here

        anchor.setAction(action);
    }

    protected void populatePageParams(int pageIndex, boolean isCurrent, String text)
    {
        AnchorComponent anchor = (AnchorComponent)component;
        // get Href
        anchor.setAction(action);
        anchor.setText(text);
        anchor.setDisabled(isCurrent);
        anchor.addParameter(setPageParam, String.valueOf( pageIndex ));
        anchor.setOnclick(onclick);
    }
View Full Code Here

               text = "";
            }
            // Start the tag
            super.doStartTag();
            // Add Sort Param
            AnchorComponent anchor = (AnchorComponent)component;
            anchor.addParameter(hri.sortColumnParam, getColumnName());
            if (hri.sortOrderChangeable && hri.sortOrderParam!=null)
            {
                anchor.addParameter(hri.sortOrderParam, (hri.sortDescending) ? "0" : "1");
            }
            // render Link
            super.doEndTag();
        }
        else
View Full Code Here

    }

    @Override
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
    {
        return new AnchorComponent(stack, req, res);
    }
View Full Code Here

            onclick = HtmlTagDictionary.getInstance().AnchorDefaultOnClickScript();
        */   

        super.populateParams();

        AnchorComponent anchor = (AnchorComponent) component;
        // Set item param
        if (item != null)
        {
            anchor.addParameter(str(param, getActionItemPropertyName()), getString(item));
        }
        // get Href
        anchor.setAction(action);
        anchor.setText(getString(text));
        anchor.setDisabled(getBoolean(disabled, false));
        anchor.setTargets(target);
        anchor.setOnclick(onclick);
    }
View Full Code Here

            if (ObjectUtils.contains(keyColumns, col))
                continue;
            // Get the value from the input control
            Object value = null;
            String field = getRequestFieldName(col);
            InputControl control = null;
            if (record.isFieldReadOnly(col)==false)
                control = InputControlManager.getControl(col.getControlType());
            // Get Value from Control first
            if (control!=null && (value=control.getFieldValue(field, action, locale, col))!=null)
            {   // Check for Error
                if (value instanceof InputControl.FieldValueError)
                {
                    InputControl.FieldValueError fieldError = (InputControl.FieldValueError)value;
                    // Error
View Full Code Here

            if (ObjectUtils.contains(keyColumns, col))
                continue;
            // Get the value from the input control
            Object value = null;
            String field = getRequestFieldName(col);
            InputControl control = null;
            if (record.isFieldReadOnly(col)==false)
                control = InputControlManager.getControl(col.getControlType());
            // Get Value from Control first
            if (control!=null && (value=control.getFieldValue(field, action, locale, col))!=null)
            {   // Check for Error
                if (value instanceof InputControl.FieldValueError)
                {
                    InputControl.FieldValueError fieldError = (InputControl.FieldValueError)value;
                    // Error
View Full Code Here

        {
            log.error("cannot determine action URL. Request object does not implement WebRequest");
            return null;
        }
        // We have a webRequest   
        WebRequest webRequest = (WebRequest)request;
        // Get the uri
        String uri = "/" + action;
        if (uri.indexOf('.')<0)
            uri += ".action";
        // now build the url
        return UrlHelperEx.buildUrl(uri, webRequest.getRequestContext(), webRequest.getResponseContext(), parameters, null, true, true);
    }
View Full Code Here

TOP

Related Classes of org.apache.empire.struts2.jsp.components.AnchorComponent

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.