Package org.itsnat.core.tmpl

Examples of org.itsnat.core.tmpl.ItsNatDocFragmentTemplate


        Element discsElem = doc.getDocumentElement();

        Element cdListElem = ItsNatTreeWalker.getLastChildElement(discsElem);

        ItsNatServlet servlet = request.getItsNatServlet();
        ItsNatDocFragmentTemplate fragTemplate = servlet.getItsNatDocFragmentTemplate("manual.core.xmlFragExample");
        DocumentFragment docFrag = fragTemplate.loadDocumentFragment(itsNatDoc);
        discsElem.insertBefore(docFrag,cdListElem); // docFrag is empty now

        ElementGroupManager factory = itsNatDoc.getElementGroupManager();
        ElementList discList = factory.createElementList(cdListElem,true);
View Full Code Here


    docTemplate = itsNatServlet.registerItsNatDocumentTemplate("manual.stless.example.eventReceiver","text/html", pathPrefix + "stless_example_event_receiver.html");
    docTemplate.addItsNatServletRequestListener(new StatelessExampleForProcessingEventDocLoadListener());
    docTemplate.setEventsEnabled(false); // Stateless 

    ItsNatDocFragmentTemplate docFragDesc;
    docFragDesc = itsNatServlet.registerItsNatDocFragmentTemplate("manual.stless.example.fragment","text/html", pathPrefix + "stless_example_fragment.html");       
  }
View Full Code Here

        ItsNatComponentManager compMgr = label.getItsNatComponentManager();
        ItsNatDocument itsNatDoc = compMgr.getItsNatDocument();
        Document doc = itsNatDoc.getDocument();

        ItsNatServlet servlet = itsNatDoc.getItsNatDocumentTemplate().getItsNatServlet();
        ItsNatDocFragmentTemplate docFragTemplate = servlet.getItsNatDocFragmentTemplate("feashow.components.shared.personEditor");
        DocumentFragment editorFrag = docFragTemplate.loadDocumentFragment(itsNatDoc);

        labelElem.appendChild(editorFrag);

        Element editorElem = doc.getElementById("personEditorId");
View Full Code Here

        ItsNatComponentManager compMgr = label.getItsNatComponentManager();
        ItsNatDocument itsNatDoc = compMgr.getItsNatDocument();
        Document doc = itsNatDoc.getDocument();

        ItsNatServlet servlet = itsNatDoc.getItsNatDocumentTemplate().getItsNatServlet();
        ItsNatDocFragmentTemplate docFragTemplate = servlet.getItsNatDocFragmentTemplate("feashow.comp.shared.personEditor");
        DocumentFragment editorFrag = docFragTemplate.loadDocumentFragment(itsNatDoc);

        labelElem.appendChild(editorFrag);

        Element editorElem = doc.getElementById("personEditorId");
View Full Code Here

        Element discsElem = doc.getDocumentElement();

        Element cdListElem = ItsNatTreeWalker.getLastChildElement(discsElem);

        ItsNatServlet servlet = request.getItsNatServlet();
        ItsNatDocFragmentTemplate fragTemplate = servlet.getItsNatDocFragmentTemplate("manual.core.xmlFragExample");
        DocumentFragment docFrag = fragTemplate.loadDocumentFragment(itsNatDoc);
        discsElem.insertBefore(docFrag,cdListElem); // docFrag is empty now

        ElementGroupManager factory = itsNatDoc.getElementGroupManager();
        ElementList discList = factory.createElementList(cdListElem,true);
View Full Code Here

    }

    public DocumentFragment loadDocumentFragment(String name)
    {
        ItsNatServlet servlet = getItsNatHTMLDocument().getItsNatDocumentTemplate().getItsNatServlet();
        ItsNatDocFragmentTemplate template = servlet.getItsNatDocFragmentTemplate(name);
        return template.loadDocumentFragment(itsNatDoc);
    }
View Full Code Here

        ItsNatDocumentTemplate docTemplate;
        docTemplate = itsNatServlet.registerItsNatDocumentTemplate("extjsexample","text/html", pagesPrefix + "extjsexample.xhtml");
        docTemplate.addItsNatServletRequestListener(new ExtJSExampleLoadListener(dataModel));

        ItsNatDocFragmentTemplate docFragTemplate;
        docFragTemplate = itsNatServlet.registerItsNatDocFragmentTemplate("extjsexample_introduction", "text/html", fragsPrefix + "introduction.xhtml");
        docFragTemplate = itsNatServlet.registerItsNatDocFragmentTemplate("extjsexample_paneltable", "text/html", fragsPrefix + "panel_table.xhtml");
        docFragTemplate = itsNatServlet.registerItsNatDocFragmentTemplate("extjsexample_add_new_item", "text/html", fragsPrefix + "add_new_item.xhtml");
        docFragTemplate = itsNatServlet.registerItsNatDocFragmentTemplate("extjsexample_confirm_remove_item", "text/html", fragsPrefix + "confirm_remove_item.xhtml");
        docFragTemplate = itsNatServlet.registerItsNatDocFragmentTemplate("extjsexample_error_new_item", "text/html", fragsPrefix + "error_new_item.xhtml");
View Full Code Here

        docTemplate.addEventListener(new TestCoreStatelessTemplateLevelEventListener(docTemplate));       
        docTemplate.setEventsEnabled(false);       
       
        // FRAGMENTS
       
        ItsNatDocFragmentTemplate docFragDesc;

        docFragDesc = registerDocFragment("test_html_fragment","text/html",pathPrefix,pages);

        docFragDesc = registerDocFragment("test_html_fragment_fragment","text/html",pathPrefix,pages);
View Full Code Here

        String pathPrefix = getServletContext().getRealPath("/");
        pathPrefix += "/WEB-INF/pages/manual/core/";

        ItsNatHttpServlet itsNatServlet = getItsNatHttpServlet();

        ItsNatDocFragmentTemplate fragTemplate;
        fragTemplate = itsNatServlet.registerItsNatDocFragmentTemplate("manual.core.htmlFragExample","text/html",pathPrefix + "fragment_example.xhtml");

        fragTemplate = itsNatServlet.registerItsNatDocFragmentTemplate("manual.core.xmlFragExample","text/xml",pathPrefix + "fragment_example.xml");
    }
View Full Code Here

        docTemplate.addItsNatServletRequestListener(new CoreExampleLoadListener());

        docTemplate = itsNatServlet.registerItsNatDocumentTemplate("manual.core.xmlExample","text/xml", pathPrefix + "xml_example.xml");
        docTemplate.addItsNatServletRequestListener(new CoreXMLExampleLoadListener());

        ItsNatDocFragmentTemplate docFragTemplate = itsNatServlet.registerItsNatDocFragmentTemplate("manual.core.xmlFragExample","text/xml",pathPrefix + "xml_fragment_example.xml");
    }
View Full Code Here

TOP

Related Classes of org.itsnat.core.tmpl.ItsNatDocFragmentTemplate

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.