Author: msorokin
Date: 2009-07-02 11:13:23 -0400 (Thu, 02 Jul 2009)
New Revision: 14769
Modified:
branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/modules/overview.xml
Log:
https://jira.jboss.org/jira/browse/RF-5768
Data Model and Page flows
Modified:
branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/modules/overview.xml
===================================================================
---
branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/modules/overview.xml 2009-07-02
13:56:08 UTC (rev 14768)
+++
branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/modules/overview.xml 2009-07-02
15:13:23 UTC (rev 14769)
@@ -13,6 +13,35 @@
<para>
Work in progress...
</para>
+ <section>
+ <title>Page flows: implementation details</title>
+
+ <para>
+ This section covers how the particular elements that govern page flow are
implemented in the application.
+ </para>
+ <section>
+ <title>Registering</title>
+ <para>
+ Registering in is basically the first step a user takes in the application.
Have a look at a piece of code from <code>\includes\index\</code>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+<h:panelGroup
rendered="#{!identity.loggedIn}" styleClass="top-right-bottom-menu-item-link"
layout="block">
+ <h:form style="margin: 0px">
+ <a4j:commandLink
value="#{messages['login.register']}"actionListener="#{authenticator.goToRegister}"
reRender="mainArea" />
+ </h:form>
+</h:panelGroup>
+...]]></programlisting>
+ <para>When the button is hit the <code>goToRegister</code>
method is evoked and the <code>START_REGISTER_EVENT</code> is raised. These
action display the registration form that is included from
<code>\includes\register.xhtml</code>. </para>
+
+
+ <para>The <emphasis
role="bold"><property><a4j:commandLink></property></emphasis>
displays the link to the registration form and invokes the
<code>goToRegister</code> method.
+ </para>
+ <para>When all fields are filled out with correct values the
<code>register(user)</code> is triggered and a new user is set. </para>
+ </section>
+
+ </section>
+
</section>
<section id="dataModel">
<title>Data Model</title>