Examples of JspTag


Examples of javax.servlet.jsp.tagext.JspTag

public class JspAutotagRuntimeTest {
    @Test
    public void testCreateRequest() {
        JspFragment jspBody = createMock(JspFragment.class);
        PageContext pageContext = createMock(PageContext.class);
        JspTag parent = createMock(JspTag.class);
        ApplicationContext applicationContext = createMock(ApplicationContext.class);
        HttpServletRequest httpServletRequest = createMock(HttpServletRequest.class);
        HttpServletResponse httpServletResponse = createMock(HttpServletResponse.class);
        expect(pageContext.getAttribute(
                ApplicationAccess.APPLICATION_CONTEXT_ATTRIBUTE,
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

    @Test
    public void testCreateModelBody() {
        JspFragment jspBody = createMock(JspFragment.class);
        JspContext jspContext = createMock(JspContext.class);
        JspTag parent = createMock(JspTag.class);
        JspWriter writer = createMock(JspWriter.class);
        expect(jspContext.getOut()).andReturn(writer);
        replay(jspBody, jspContext, parent, writer);
        JspAutotagRuntime runtime = new JspAutotagRuntime();
        runtime.setJspBody(jspBody);
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

    @Test(expected = UnsupportedOperationException.class)
    public void testGetParameter() {
        JspFragment jspBody = createMock(JspFragment.class);
        JspContext jspContext = createMock(JspContext.class);
        JspTag parent = createMock(JspTag.class);
        replay(jspBody, jspContext, parent);
        JspAutotagRuntime runtime = new JspAutotagRuntime();
        runtime.setJspBody(jspBody);
        runtime.setJspContext(jspContext);
        runtime.setParent(parent);
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

     * @throws JspException if a JSP exception has occurred
     */
    public void doTag()
            throws JspException
    {
        JspTag parentTag = SimpleTagSupport.findAncestorWithClass(this, IFormattable.class);

        // if there are errors we need to either add these to the parent AbstractBastTag or report an error.
        if (hasErrors()) {
            if (parentTag instanceof IFormattable) {
                IFormattable parent = (IFormattable) parentTag;
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

     * Add the URL parameter to the Parameter's parent.
     * @throws JspException if a JSP exception has occurred
     */
    public int doStartTag() throws JspException
    {
        JspTag parentTag = SimpleTagSupport.findAncestorWithClass(this, IUrlParams.class);
        if (parentTag == null) {
            String msg = Bundle.getString("Tags_InvalidParameterParent");
            registerTagError(msg, null);
            reportErrors();
        }
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

    /**
     * @throws JspException if a JSP exception has occurred
     */
    public int doStartTag() throws JspException
    {
        JspTag parentTag = SimpleTagSupport.findAncestorWithClass(this, IHasPopupSupport.class);
        if (parentTag == null) {
            String msg = Bundle.getString("Tags_InvalidConfigurePopupParent");
            registerTagError(msg, null);
            reportErrors();
        }
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

        if (hasErrors()) {
            reportErrors();
            return;
        }

        JspTag tag = SimpleTagSupport.findAncestorWithClass(this, IAttributeConsumer.class);
        if (!(tag instanceof IAttributeConsumer)) {
            String s = Bundle.getString("Tags_AttributeInvalidParent");
            registerTagError(s, null);
            reportErrors();
            return;
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

        if (hasErrors()) {
            reportErrors();
            return;
        }

        JspTag tag = SimpleTagSupport.findAncestorWithClass(this, IBehaviorConsumer.class);
        if (tag == null) {
            String s = Bundle.getString("Tags_BehaviorInvalidParent");
            registerTagError(s, null);
            reportErrors();
            return;
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

    /**
     * @throws JspException if a JSP exception has occurred
     */
    public int doStartTag() throws JspException
    {
        JspTag parentTag = SimpleTagSupport.findAncestorWithClass(this, ConfigurePopup.class);
        if (parentTag == null) {
            String msg = Bundle.getString("Tags_InvalidRetrievePopupOutputParent");
            registerTagError(msg, null);
            reportErrors();
        }
        else {
            JspTag parentParent = SimpleTagSupport.findAncestorWithClass(this, IUrlParams.class);
            if (parentTag != null// there will already be an error on ConfigurePopup if there is no URLParams parent.
            {
                IUrlParams urlParams = (IUrlParams) parentParent;
                urlParams.addParameter(ReturnActionViewRenderer.getMapItemParamName(),
                        _dataSource + ReturnActionViewRenderer.getDelim() + getIdForTagId(_tagIdRef),
View Full Code Here

Examples of javax.servlet.jsp.tagext.JspTag

                registerTagError(Bundle.getString("Tags_BadAction", _action), null);
            }
        }

        // create the tree node
        JspTag parentTag = getParent();
        if (parentTag instanceof Tree) {
            _treeElement = new TreeRootElement();
        }
        else {
            _treeElement = new TreeElement();
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.