Create new RichFaces Documentation Jira issue

This will launch the RichFaces Jira page - to complete your feedback please login if needed, and submit the Jira.

JBoss.orgCommunity Documentation

6.4.1.  < a4j:include > available since 3.0.0

expand all
6.4.1.1. Description
6.4.1.2. Details of Usage
6.4.1.3. Reference Data
6.4.1.4. Relevant Resources Links

The <a4j:include> component is used to include one view as part of another and navigate there using standard JSF navigation.

The component is used to include one view as part of another and may be put anywhere in the page code. The 'viewID' attribute is used to point at the part to be included and should present a full context-relative path of the resource in order to be used as from-view and to-view in the JSF navigation cases. In general the component functions as Fecelets <ui:include> tag but with partial page navigation in Ajax mode as an advantage.

The navigation rules could look as following:

Example:


...
<navigation-rule>
      <from-view-id>/pages/include/first.xhtml</from-view-id>
      <navigation-case>
            <from-outcome>next</from-outcome>
            <to-view-id>/pages/include/second.xhtml</to-view-id>
      </navigation-case>
</navigation-rule>
...

Table of <a4j:include> attributes.


Visit the Include page for examples of component usage and their sources.