Package com.liferay.faces.bridge.taglib.liferay

Examples of com.liferay.faces.bridge.taglib.liferay.HtmlTopTag


        // Invoke the Liferay HtmlTopTag class directly (rather than using liferay-util:html-top from a JSP).
        StringJspWriter stringJspWriter = new StringJspWriter();
        BodyContent bodyContent = new StringBodyContent(stringJspWriter);
        String elementAsString = element.toString();
        HtmlTopTag htmlTopTag = new HtmlTopTag();
        PageContextAdapter pageContextAdapter = new PageContextAdapter(httpServletRequest, httpServletResponse,
            elContext, stringJspWriter);
        htmlTopTag.setPageContext(pageContextAdapter);
        htmlTopTag.doStartTag();
        bodyContent.print(elementAsString);
        htmlTopTag.setBodyContent(bodyContent);

        try {
          htmlTopTag.doEndTag();
        }
        catch (Exception e) {
          throw new IOException(e.getMessage());
        }
View Full Code Here

TOP

Related Classes of com.liferay.faces.bridge.taglib.liferay.HtmlTopTag

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.