Examples of addCDATAAttribute()


Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

    super.startElement("", "tab-layout", "tab-layout", a);
      Collection tools = pm.getToolsWithFunctions();
      for(Iterator it = tools.iterator(); it.hasNext();) {
        AttributesImpl attr = new AttributesImpl();
        PortalTool pt = (PortalTool) it.next();
        attr.addCDATAAttribute("parameter", "tools/functions/" + pt.getId());
        attr.addCDATAAttribute("name", pt.getName());
        attr.addCDATAAttribute("http://apache.org/cocoon/i18n/2.1", "attr", "i18n:attr", "name");
        if(selected != null) {
            if(selected.equals(pt.getId())) {
                attr.addCDATAAttribute("selected", "true");
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

      Collection tools = pm.getToolsWithFunctions();
      for(Iterator it = tools.iterator(); it.hasNext();) {
        AttributesImpl attr = new AttributesImpl();
        PortalTool pt = (PortalTool) it.next();
        attr.addCDATAAttribute("parameter", "tools/functions/" + pt.getId());
        attr.addCDATAAttribute("name", pt.getName());
        attr.addCDATAAttribute("http://apache.org/cocoon/i18n/2.1", "attr", "i18n:attr", "name");
        if(selected != null) {
            if(selected.equals(pt.getId())) {
                attr.addCDATAAttribute("selected", "true");
            }
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

      for(Iterator it = tools.iterator(); it.hasNext();) {
        AttributesImpl attr = new AttributesImpl();
        PortalTool pt = (PortalTool) it.next();
        attr.addCDATAAttribute("parameter", "tools/functions/" + pt.getId());
        attr.addCDATAAttribute("name", pt.getName());
        attr.addCDATAAttribute("http://apache.org/cocoon/i18n/2.1", "attr", "i18n:attr", "name");
        if(selected != null) {
            if(selected.equals(pt.getId())) {
                attr.addCDATAAttribute("selected", "true");
            }
        }
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

        attr.addCDATAAttribute("parameter", "tools/functions/" + pt.getId());
        attr.addCDATAAttribute("name", pt.getName());
        attr.addCDATAAttribute("http://apache.org/cocoon/i18n/2.1", "attr", "i18n:attr", "name");
        if(selected != null) {
            if(selected.equals(pt.getId())) {
                attr.addCDATAAttribute("selected", "true");
            }
        }
        super.startElement("","named-item", "named-item", attr);
        super.endElement("", "named-item", "named-item");
      }
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

        super.startElement("", "tool-functions", "tool-functions", a);
        Collection funs = ct.getFunctions();
        for(Iterator it = funs.iterator();it.hasNext();) {
            PortalToolFunction ptf = (PortalToolFunction) it.next();
            AttributesImpl attr = new AttributesImpl();
            attr.addCDATAAttribute("parameter", "tools/plugins/" + ct.getId() + "/" + ptf.getFunction());
            attr.addCDATAAttribute("name", ptf.getName());
            attr.addCDATAAttribute("http://apache.org/cocoon/i18n/2.1", "attr", "i18n:attr", "name");            super.startElement("", "function", "function", attr);
            super.endElement("", "function", "function");
        }
        super.endElement("", "tool-functions", "tool-functions");
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

        Collection funs = ct.getFunctions();
        for(Iterator it = funs.iterator();it.hasNext();) {
            PortalToolFunction ptf = (PortalToolFunction) it.next();
            AttributesImpl attr = new AttributesImpl();
            attr.addCDATAAttribute("parameter", "tools/plugins/" + ct.getId() + "/" + ptf.getFunction());
            attr.addCDATAAttribute("name", ptf.getName());
            attr.addCDATAAttribute("http://apache.org/cocoon/i18n/2.1", "attr", "i18n:attr", "name");            super.startElement("", "function", "function", attr);
            super.endElement("", "function", "function");
        }
        super.endElement("", "tool-functions", "tool-functions");
      }
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

        for(Iterator it = funs.iterator();it.hasNext();) {
            PortalToolFunction ptf = (PortalToolFunction) it.next();
            AttributesImpl attr = new AttributesImpl();
            attr.addCDATAAttribute("parameter", "tools/plugins/" + ct.getId() + "/" + ptf.getFunction());
            attr.addCDATAAttribute("name", ptf.getName());
            attr.addCDATAAttribute("http://apache.org/cocoon/i18n/2.1", "attr", "i18n:attr", "name");            super.startElement("", "function", "function", attr);
            super.endElement("", "function", "function");
        }
        super.endElement("", "tool-functions", "tool-functions");
      }
      }
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

            try {
                service = (PortalService)this.manager.lookup(PortalService.ROLE);
                Event e = new UploadItemEvent(this.basketManager.getFolder(), this.uploadElements);
                parameters = service.getComponentManager().getLinkService().getLinkURI(e);
                int pos = parameters.indexOf('?');
                ai.addCDATAAttribute("action", parameters.substring(0, pos));
                parameters = parameters.substring(pos+1);
            } catch (ServiceException se) {
                throw new SAXException("Unable to lookup portal service.", se);
            } finally {
                this.manager.release(service);
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

                Enumeration enumPars = pars.getParameterNames();
                while ( enumPars.hasMoreElements() ) {
                    String pName = (String)enumPars.nextElement();
                    String pValue = pars.getParameter(pName);
                    AttributesImpl hiddenAttrs = new AttributesImpl();
                    hiddenAttrs.addCDATAAttribute("type", "hidden");
                    hiddenAttrs.addCDATAAttribute("name", pName);
                    hiddenAttrs.addCDATAAttribute("value", pValue);
                    this.startElement("", "input", "input", hiddenAttrs);
                    this.endElement("", "input", "input");
                }
View Full Code Here

Examples of org.apache.cocoon.xml.AttributesImpl.addCDATAAttribute()

                while ( enumPars.hasMoreElements() ) {
                    String pName = (String)enumPars.nextElement();
                    String pValue = pars.getParameter(pName);
                    AttributesImpl hiddenAttrs = new AttributesImpl();
                    hiddenAttrs.addCDATAAttribute("type", "hidden");
                    hiddenAttrs.addCDATAAttribute("name", pName);
                    hiddenAttrs.addCDATAAttribute("value", pValue);
                    this.startElement("", "input", "input", hiddenAttrs);
                    this.endElement("", "input", "input");
                }
            }
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.