<core:SET title="Wrapping Example"/>
<wact:wrap file="/wrap/layout.html" replaceat="BodyContents">
<p>This page is an example of using the wrap tag. The wrap tag takes the current
content and inserts it at a placeholder in an external file.</p>
<p>The insertion point may be a placeholder, or any view element (i.e. a tag with a
    wact id)</p>
<p>You can choose to insert the wrapped content after any content that is under the
    insertion point:
    <br />&nbsp; &nbsp; <code>&lt;wact:wrap <strong>insertat="someId"</strong> file="wrapper.html"&gt;</code></p>
<p>or you can replace the content under the insertion point:
    <br />&nbsp; &nbsp; <code>&lt;wact:wrap <strong>replaceat="someId"</strong> file="wrapper.html"&gt;</code> </p>
    
<p>This page uses replaces the content of the wrapper file with this page.</p>

    <wact:wrap file="/wrap/box.html" insertat="BoxContents">
<div wact:id="*">
<form>
  <div align="center"> The wrap component has a closing tag, so you can wrap parts
    of a page.  The
    box around this small form was created by using the wrap tag outside the form
    tag. The form then becomes "wrapped" by the table inside the file loaded
    in the wrap command.
    <p>
      <input type="submit" name="Cool" value="Cool!"/>
    </p>
    <p>Note that wrap tags <strong>may be nested</strong>.  You can even use the
        same wrapper more than once on a page</p>
    <p>
      <input type="submit" name="Affirmative" value="Affirmative Captain"/>
    </p>
  </div>
</form>
</div>
</wact:wrap>
<p>Also, notice how this page uses the SET tag to pass a variable to the wrapping
  file to use as the title and header of this page.</p>
</wact:wrap>