Package org.apache.cocoon.portal.layout.renderer

Examples of org.apache.cocoon.portal.layout.renderer.Renderer.toSAX()


            }

            Renderer portalLayoutRenderer = service.getComponentManager().getRenderer( portalLayout.getRendererName());      

            contentHandler.startDocument();
            portalLayoutRenderer.toSAX(portalLayout, service, contentHandler);
            contentHandler.endDocument();
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup portal service.", ce);
        } catch (Exception e) {
            getLogger().error("Caught exception", e);
View Full Code Here


     */
    protected void processLayout(Layout layout, PortalService service, ContentHandler handler) throws SAXException {
        if ( layout != null ) {
            final String rendererName = layout.getRendererName();
            final Renderer renderer = service.getComponentManager().getRenderer(rendererName);
            renderer.toSAX(layout, service, handler);
        }
    }

}
View Full Code Here

            Layout portalLayout = service.getComponentManager().getProfileManager().getPortalLayout(null, null);

            Renderer portalLayoutRenderer = service.getComponentManager().getRenderer( portalLayout.getRendererName());      

            contentHandler.startDocument();
            portalLayoutRenderer.toSAX(portalLayout, service, contentHandler);
            contentHandler.endDocument();
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup portal service.", ce);
        } finally {
            this.manager.release(service);
View Full Code Here

     * renderer for a layout to render it.
     */
    protected void processLayout(Layout layout, PortalService service, ContentHandler handler) throws SAXException {
        final String rendererName = layout.getRendererName();
        final Renderer renderer = service.getComponentManager().getRenderer(rendererName);
        renderer.toSAX(layout, service, handler);
    }

}
View Full Code Here

     */
    protected void processLayout(Layout layout, PortalService service, ContentHandler handler) throws SAXException {
        final String rendererName = layout.getRendererName();
        Renderer renderer = null;
        renderer = service.getComponentManager().getRenderer(rendererName);
        renderer.toSAX(layout, service, handler);
    }

    protected abstract void process(Layout layout, PortalService service, ContentHandler handler) throws SAXException;

    /**
 
View Full Code Here

    protected void processLayout(Layout layout, PortalService service, ContentHandler handler) throws SAXException {
        final String rendererName = layout.getRendererName();
        Renderer renderer = null;
        try {
            renderer = (Renderer) this.getRenderSelector().select(rendererName);
            renderer.toSAX(layout, service, handler);
        } catch (ComponentException ce) {
            throw new SAXException("Unable to lookup renderer for role " + rendererName, ce);
        } finally {
            this.getRenderSelector().release(renderer);
        }
View Full Code Here

            rendererSelector = (ComponentSelector)this.componentManager.lookup(Renderer.ROLE+"Selector");
            portalLayoutRenderer = (Renderer)rendererSelector.select(portalLayout.getRendererName());      

            contentHandler.startDocument();
            portalLayoutRenderer.toSAX(portalLayout, service, contentHandler);
            contentHandler.endDocument();
        } catch (ComponentException ce) {
            throw new SAXException("Unable to lookup profile manager.", ce);
        } finally {
            if ( null != portalLayoutRenderer) {
View Full Code Here

    protected void processLayout(Layout layout, PortalService service, ContentHandler handler) throws SAXException {
        final String rendererName = layout.getRendererName();
        Renderer renderer = null;
        try {
            renderer = (Renderer) this.getRenderSelector().select(rendererName);
            renderer.toSAX(layout, service, handler);
        } catch (ComponentException ce) {
            throw new SAXException("Unable to lookup renderer for role " + rendererName, ce);
        } finally {
            this.getRenderSelector().release(renderer);
        }
View Full Code Here

            Layout portalLayout = service.getComponentManager().getProfileManager().getPortalLayout(null, null);

            Renderer portalLayoutRenderer = service.getComponentManager().getRenderer( portalLayout.getRendererName());      

            contentHandler.startDocument();
            portalLayoutRenderer.toSAX(portalLayout, service, contentHandler);
            contentHandler.endDocument();
        } catch (ServiceException ce) {
            throw new SAXException("Unable to lookup portal service.", ce);
        } finally {
            this.manager.release(service);
View Full Code Here

     */
    protected void processLayout(Layout layout, PortalService service, ContentHandler handler) throws SAXException {
        final String rendererName = layout.getRendererName();
        Renderer renderer = null;
        renderer = service.getComponentManager().getRenderer(rendererName);
        renderer.toSAX(layout, service, handler);
    }

    protected abstract void process(Layout layout, PortalService service, ContentHandler handler) throws SAXException;

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