Component identification parameters

Name | Value
--- | ---
component-type | org.ajax4jsf.components.Page
component-family | org.ajax4jsf.components.AjaxRegion
component-class | org.ajax4jsf.component.html.HtmlPage
renderer-type | org.ajax4jsf.components.AjaxPageRenderer

## Creating on a page

This component should be defined as a child component for <f:view>:

    <f:view>
     <a4j:page>
      <f:facet name="head">
       <!--...Head Content here-->
      </f:facet>
       <!--...Page Content here-->
     </a4j:page>
    </f:view>

This structure is rendered as:

Example:

    <HTML>
     <HEAD>
     <!--...Head Content here-->
     </HEAD>
    <body >
     <!--...Page Content Here-->
    </body>
    </HTML>

## Dynamical creation of a component from Java code

Example:

    import org.ajax4jsf.component.html.HtmlPage;
    ...
    HtmlPage myPage = new HtmlPage();
    ...

## Key attributes and ways of usage

The component is mostly used to solve the following problem with MyFaces for erlier Ajax4jsf versions: in MyFaces <f:view> doesn't get control over the " RENDER_RESPONSE " phase, thus Ajax can't get control and make a response also. To avoid this problem it was necessary to use <a4j:page> on a page round the Ajax updatable area. In the last versions of both frameworks the problem is successfully fixed and no <a4j:page> usage is required.

The component is rendered as a full HTML page template (it was shown in the example). The " head " section is defined with the help of the corresponding facet with the name="head" and also there is an attribute with the same name for "contentType" definition.

## Relevant resources links

Here you can see the example of <a4j:page> usage and sources for the given example.