Class IncludeControl

  • All Implemented Interfaces:
    VariableResolver, IControl

    public class IncludeControl
    extends Control
    Includes a file present in the web application. The path of the file to be added, relative to the web application root, is specified in a page attribute.

    Example use using outputHtml mode: <control:lum_include page="example.xml" mode="outputHtml" /> xml data available for xsl rendering: <control id="8A488A32392C102C01393063EAAF41CE" mode="outputHtml" page="example.xml" type="lum_include"> <data> <!-- here will be the HTML data from the included file, as the text content of the data element. --> </data> </control>

    Example use using renderData mode: <control:lum_include page="example.xml" mode="renderData" /> xml data available for xsl rendering: <control id="8A488A32392C102C01393063EAAF41CE" mode="renderData" page="example.xml" type="lum_include"> <data> <!-- here will be the XML data from the included file, as part of the render data DOM, becoming a child of the data element. --> </data> </control>
    Since:
    7.0.0
    Version:
    $Revision: 15056 $ $Date: 2012-11-29 18:51:41 -0200 (Thu, 29 Nov 2012) $