From richfaces-svn-commits at lists.jboss.org Mon Mar 30 13:07:50 2009 Content-Type: multipart/mixed; boundary="===============6533062922547666322==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r13301 - trunk/docs/userguide/en/src/main/docbook/included. Date: Mon, 30 Mar 2009 13:07:50 -0400 Message-ID: --===============6533062922547666322== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: msorokin Date: 2009-03-30 13:07:49 -0400 (Mon, 30 Mar 2009) New Revision: 13301 Added: trunk/docs/userguide/en/src/main/docbook/included/a4j_page.desc.xml trunk/docs/userguide/en/src/main/docbook/included/a4j_page.xml Log: https://jira.jboss.org/jira/browse/RF-6593 files with components' descriptions = Copied: trunk/docs/userguide/en/src/main/docbook/included/a4j_page.desc.xml= (from rev 13300, trunk/docs/userguide/en/src/main/docbook/included/page.de= sc.xml) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/userguide/en/src/main/docbook/included/a4j_page.desc.xml = (rev 0) +++ trunk/docs/userguide/en/src/main/docbook/included/a4j_page.desc.xml 200= 9-03-30 17:07:49 UTC (rev 13301) @@ -0,0 +1,14 @@ + + +
+ + + component + page + + + = +Description + <a4j:page> is used for solving of incompatibility problems in early Ajax4jsf = versions. The component encodes the full html page structure. +
+
Copied: trunk/docs/userguide/en/src/main/docbook/included/a4j_page.xml (fro= m rev 13300, trunk/docs/userguide/en/src/main/docbook/included/page.xml) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/userguide/en/src/main/docbook/included/a4j_page.xml = (rev 0) +++ trunk/docs/userguide/en/src/main/docbook/included/a4j_page.xml 2009-03-= 30 17:07:49 UTC (rev 13301) @@ -0,0 +1,145 @@ + + + + + a4j:page + + + + 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>: + + + + + + + + + +]]> +
+
+ Creating the Component Dynamically Using Java + + + Example: + + +
+
+ Facets + + Facets + + + + Facet name + Description + + + + + head + Defines a head content + + + +
+
+
+ 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. T= o avoid this problem it was necessary to use + <a4j:page> + on a page round the Ajax updatable area. In the last ver= sions of both frameworks the problem is successfully fixed and no <a4j:page> usage is r= equired. + The component is rendered as a full HTML page template as it is = shown in the example. The = + head + section is defined with the help of the corresponding "head" facet. + = + You do not need to use "body" facet in order to define first body sect= ion. = + The second and more body sections is defined wi= th the help of the corresponding "body" facet. + = + + + The attribute "format" defines page layout format for encoding DOCTYPE. = + + + The attribute "pageTitle"= is rendered as title section. + = + = + = + + Example: + + + + + + + +]]> + This structure is rendered as: + = + + Example: + + + + = + myPage + + = + + + = +]]> +
+ = +
+ Relevant resources links + + Here you can found some additional information for <a4j:page> component usage. + = +
+ = +
--===============6533062922547666322==--