Package com.liferay.faces.util.jsp

Examples of com.liferay.faces.util.jsp.StringBodyContent


        HttpServletResponse httpServletResponse = PortalUtil.getHttpServletResponse(portletResponse);
        ELContext elContext = facesContext.getELContext();

        // 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();
        }
View Full Code Here

TOP

Related Classes of com.liferay.faces.util.jsp.StringBodyContent

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.