Examples of JspTag


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

     * @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

     */
    @Test
    public void testExecute() throws JspException, IOException {
        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);
        @SuppressWarnings("unchecked")
        Map<String, Object> applicationScope = createMock(Map.class);
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

     * @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

            SimpleTag tag = (SimpleTag)getTagInstance();
            final FreeMarkerPageContext pageContext = PageContextFactory.getCurrentPageContext();
            pageContext.pushWriter(new JspWriterAdapter(env.getOut()));
            try {
                tag.setJspContext(pageContext);
                JspTag parentTag = (JspTag)pageContext.peekTopTag(JspTag.class);
                if(parentTag != null) {
                    tag.setParent(parentTag);
                }
                setupTag(tag, args, pageContext.getObjectWrapper());
                if(body != null) {
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

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

        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
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.