Examples of ItsNatDocumentTemplate


Examples of org.itsnat.core.tmpl.ItsNatDocumentTemplate

        code.append( "elem = " + util.getNodeReference(testElem3) + ";" );
        code.append( "attr = elem.getAttributeNodeNS('http://prueba.org/prueba','PruebA');");
        code.append( "if (attr == null) alert('WRONG test 2'); ");
        code.append( "else if (attr.name != 'P:PruebA') alert('WRONG test 2 (2)'); ");

        ItsNatDocumentTemplate template = itsNatDoc.getItsNatDocumentTemplate();
        String mime = template.getMIME();
        if (mime.equals("text/html")) // testeamos el itsnat:ignorens que s�lo tiene sentido en text/html
        {
            Element testElem4 = doc.getElementById("test4Id");
            code.append( "elem = " + util.getNodeReference(testElem4) + ";" );
            code.append( "if (elem.namespaceURI == 'http://prueba.org/prueba') alert('WRONG test 4'); ");
View Full Code Here

Examples of org.itsnat.core.tmpl.ItsNatDocumentTemplate

    public static void USER_DEFINED_COMPONENTS()
    {
        String pathPrefix = null;
        ItsNatHttpServlet itsNatServlet = getItsNatHttpServlet();
        ItsNatDocumentTemplate docTemplate;
        docTemplate = itsNatServlet.registerItsNatDocumentTemplate("manual.comp.example","text/html",
                          pathPrefix + "comp_example.xhtml");
        // ...
        docTemplate.addCreateItsNatComponentListener(new LoginCreationItsNatComponentListener());
    }
View Full Code Here

Examples of org.itsnat.core.tmpl.ItsNatDocumentTemplate


        String pathPrefix = getServletContext().getRealPath("/") + "/WEB-INF/pages/test/";
        Properties pages = loadProperties(pathPrefix + "pages.properties");

        ItsNatDocumentTemplate docTemplate;
        docTemplate = registerDocument("test_anything","text/html",pathPrefix,pages);
        docTemplate.addItsNatServletRequestListener(new TestAnythingDocLoadListener());
    }
View Full Code Here

Examples of org.itsnat.core.tmpl.ItsNatDocumentTemplate

        ItsNatLabel label = (ItsNatLabel)componentMgr.findItsNatComponentById("labelId");

        ItsNatFreeLabel freeLabel = (ItsNatFreeLabel)componentMgr.findItsNatComponentById("freeLabelId");

        ItsNatDocumentTemplate docTemplate = null;
        ItsNatListStructure customStruc = new CityListCustomStructure();
        docTemplate.registerArtifact("cityCustomStruc",customStruc);

        itsNatDoc.registerArtifact("cityCustomStruc",customStruc);

        ItsNatFreeListMultSel listCustomStruc = (ItsNatFreeListMultSel)componentMgr.findItsNatComponentById("listCustomStructureId");
        CityListCustomStructure structure = (CityListCustomStructure)listCustomStruc.getItsNatListStructure();

        componentMgr.removeItsNatComponents(parentElem,true);

        docTemplate.setAutoBuildComponents(true);
    }
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.