Author: smukhina
Date: 2008-05-21 07:01:22 -0400 (Wed, 21 May 2008)
New Revision: 8253
Modified:
branches/jbosstools-2.1.x/seam/docs/
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_04.png
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_07.png
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_09.png
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_10.png
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_12.png
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_13.png
branches/jbosstools-2.1.x/seam/docs/reference/en/master.xml
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/crud_database_application.xml
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/directory_structure.xml
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/generate_entities.xml
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/intro.xml
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/seam_editors.xml
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/seam_preferences.xml
branches/jbosstools-2.1.x/seam/docs/reference/pom.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-324
Merged revisions 8061,8083,8110,8114,8141,8173,8203-8204,8208 via svnmerge from
https://svn.jboss.org/repos/jbosstools/trunk/seam/docs
........
r8061 | ochikvina | 2008-05-13 16:07:27 +0300 (Tue, 13 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-320 - marking the chapters that are new or
updated
........
r8083 | smukhina | 2008-05-14 18:48:37 +0300 (Wed, 14 May 2008) | 2 lines
http://jira.jboss.com/jira/browse/JBDS-320
comments are corrected to the corresponding docbook tags with attributes
........
r8110 | ochikvina | 2008-05-15 18:29:18 +0300 (Thu, 15 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-285 - authors info is added
........
r8114 | smukhina | 2008-05-15 19:49:38 +0300 (Thu, 15 May 2008) | 2 lines
http://jira.jboss.com/jira/browse/JBDS-326
folders En-us and publish and staging are removed from nightly docs build, variables for
links will be checked then
........
r8141 | smukhina | 2008-05-16 19:18:45 +0300 (Fri, 16 May 2008) | 1 line
new styles 1.1.0 and 1.0.0. are correspondingly added to the guides
........
r8173 | ochikvina | 2008-05-19 11:28:37 +0300 (Mon, 19 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-286 - correcting errors found by XML validator
........
r8203 | ochikvina | 2008-05-20 12:07:36 +0300 (Tue, 20 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-332 - link to database is added and proper info
is updated
........
r8204 | ochikvina | 2008-05-20 12:09:20 +0300 (Tue, 20 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-332 - screenshots with specifying database
details are updated
........
r8208 | ochikvina | 2008-05-20 17:16:01 +0300 (Tue, 20 May 2008) | 1 line
http://jira.jboss.com/jira/browse/JBDS-332 - updating screenshots
........
Property changes on: branches/jbosstools-2.1.x/seam/docs
___________________________________________________________________
Name: svnmerge-integrated
+ /trunk/seam/docs:1-7998,8061-8208
Modified:
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_04.png
===================================================================
(Binary files differ)
Modified:
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_07.png
===================================================================
(Binary files differ)
Modified:
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_09.png
===================================================================
(Binary files differ)
Modified:
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_10.png
===================================================================
(Binary files differ)
Modified:
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_12.png
===================================================================
(Binary files differ)
Modified:
branches/jbosstools-2.1.x/seam/docs/reference/en/images/crud_database_application/crud_database_application_13.png
===================================================================
(Binary files differ)
Modified: branches/jbosstools-2.1.x/seam/docs/reference/en/master.xml
===================================================================
--- branches/jbosstools-2.1.x/seam/docs/reference/en/master.xml 2008-05-21 10:23:39 UTC
(rev 8252)
+++ branches/jbosstools-2.1.x/seam/docs/reference/en/master.xml 2008-05-21 11:01:22 UTC
(rev 8253)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
-"../../resources/support/docbook-dtd/docbookx.dtd"
+"http://www.oasis-open.org/docbook/xml/4.3CR3/docbookx.dtd"
[<!ENTITY intro SYSTEM "modules/intro.xml">
@@ -17,17 +17,17 @@
<!ENTITY business_application SYSTEM "modules/business_application.xml">
<!ENTITY testng SYSTEM "modules/testng.xml">
-<!ENTITY seamlink
"../../../../seam/publish/en-US/html_single/index.html">
-<!ENTITY aslink "../../../../as/publish/en-US/html_single/index.html">
-<!ENTITY esblink
"../../../../esb_ref_guide/publish/en-US/html_single/index.html">
-<!ENTITY gsglink
"../../../../GettingStartedGuide/publish/en-US/html_single/index.html">
-<!ENTITY hibernatelink
"../../../../hibernatetools/publish/en-US/html_single/index.html">
-<!ENTITY jbpmlink
"../../../../jbpm/publish/en-US/html_single/index.html">
-<!ENTITY jsflink "../../../../jsf/publish/en-US/html_single/index.html">
-<!ENTITY jsfreflink
"../../../../jsf_tools_ref_guide/publish/en-US/html_single/index.html">
-<!ENTITY jsftutoriallink
"../../../../jsf_tools_tutorial/publish/en-US/html_single/index.html">
-<!ENTITY strutsreflink
"../../../../struts_tools_ref_guide/publish/en-US/html_single/index.html">
-<!ENTITY strutstutoriallink
"../../../../struts_tools_tutorial/publish/en-US/html_single/index.html">
+<!ENTITY seamlink "../../../../seam/html_single/index.html">
+<!ENTITY aslink "../../../../as/html_single/index.html">
+<!ENTITY esblink "../../../../esb_ref_guide/html_single/index.html">
+<!ENTITY gsglink
"../../../../GettingStartedGuide/html_single/index.html">
+<!ENTITY hibernatelink
"../../../../hibernatetools/html_single/index.html">
+<!ENTITY jbpmlink "../../../../jbpm/html_single/index.html">
+<!ENTITY jsflink "../../../../jsf/html_single/index.html">
+<!ENTITY jsfreflink
"../../../../jsf_tools_ref_guide/html_single/index.html">
+<!ENTITY jsftutoriallink
"../../../../jsf_tools_tutorial/html_single/index.html">
+<!ENTITY strutsreflink
"../../../../struts_tools_ref_guide/html_single/index.html">
+<!ENTITY strutstutoriallink
"../../../../struts_tools_tutorial/html_single/index.html">
]>
@@ -36,6 +36,9 @@
<bookinfo>
<title>Seam Dev Tools Reference Guide</title>
+
<author><firstname>Anatoly</firstname><surname>Fedosik</surname></author>
+
<author><firstname>Olga</firstname><surname>Chikvina</surname></author>
+
<author><firstname>Svetlana</firstname><surname>Mukhina</surname><email>smukhina(a)exadel.com</email></author>
<pubdate>April 2008</pubdate>
<copyright>
@@ -44,7 +47,7 @@
<holder>JBoss, a division of Red Hat Inc.</holder>
</copyright>
<releaseinfo>
- <para>Version: 2.1.0.CR1</para>
+ Version: 2.1.0.CR1
</releaseinfo>
</bookinfo>
@@ -65,7 +68,5 @@
&crud_application_walkthrough;
&testng;
<!-- TODO: drools used in this section is not available for eclipse .3.3
&business_application; -->
-
-
-
+
</book>
Modified:
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/crud_database_application.xml
===================================================================
---
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/crud_database_application.xml 2008-05-21
10:23:39 UTC (rev 8252)
+++
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/crud_database_application.xml 2008-05-21
11:01:22 UTC (rev 8253)
@@ -1,307 +1,483 @@
<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="crud_database_application"
- xreflabel="crud_database_application">
- <?dbhtml filename="crud_database_application.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Developer Studio</keyword>
- <keyword>Eclipse</keyword>
- <keyword>Java</keyword>
- <keyword>CRUD</keyword>
- <keyword>Database Application</keyword>
- </keywordset>
- </chapterinfo>
- <title>Generate a CRUD Database Application</title>
- <section>
- <title>What is CRUD?</title>
- <para>
- <property>CRUD</property> is an acronym for the four basic types of SQL
commands: <emphasis><property>Create</property></emphasis>,
<emphasis><property>Read</property></emphasis>,
<emphasis><property>Update</property></emphasis>,
<emphasis><property>Delete</property></emphasis>. Most
applications have some kind of <property>CRUD</property> functionality, and we
can assume that every programmer had to deal with <property>CRUD</property> at
some point. A <property>CRUD</property> application is one that uses forms to
get data into and out of a database.
- </para>
- <para>
- In the next section we will create <link
linkend="intro">Seam</link> Web application, connect it to the
<ulink
url="http://www.postgresql.org/">PostgreSQL</ulink> database
and add <property>CRUD</property> support.
- </para>
- </section>
+<chapter id="crud_database_application"
xreflabel="crud_database_application">
+ <?dbhtml filename="crud_database_application.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Java</keyword>
+ <keyword>CRUD</keyword>
+ <keyword>Database Application</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Generate a CRUD Database Application</title>
+ <section>
+ <title>What is CRUD?</title>
+ <para>
+ <property>CRUD</property> is an acronym for the four basic types
of SQL commands: <emphasis>
+ <property>Create</property>
+ </emphasis>, <emphasis>
+ <property>Read</property>
+ </emphasis>, <emphasis>
+ <property>Update</property>
+ </emphasis>, <emphasis>
+ <property>Delete</property>
+ </emphasis>. Most applications have some kind of
<property>CRUD</property>
+ functionality, and we can assume that every programmer had to deal with
+ <property>CRUD</property> at some point. A
<property>CRUD</property> application is one
+ that uses forms to get data into and out of a database. </para>
+ <para> In the next section we will create <link
linkend="intro">Seam</link> Web application,
+ connect it to the <ulink
url="http://www.hsqldb.org/">HSQL</ulink> database
+ and add <property>CRUD</property> support. </para>
+ </section>
<section>
<title>How to create the CRUD Database Application with Seam</title>
-
+
<itemizedlist>
- <listitem><para>Create a new Seam Web Project using New Project
wizard or main menu <emphasis><property>File > New > Seam Web
Project</property>.</emphasis></para></listitem>
+ <listitem><para>First, you should <ulink
url="http://docs.jboss.org/tools/resources/"
+ >download</ulink> a database and start it by running
<emphasis>
+ <property>./runDBServer.sh</property></emphasis> or
<emphasis>
+
<property>runDBServer.bat</property></emphasis>
+ from the database directory.</para></listitem>
+ <listitem>
+ <para>Create a new Seam Web Project using New Project wizard or
main menu
+ <emphasis><property>File > New > Seam Web
+ Project</property>.</emphasis></para>
+ </listitem>
</itemizedlist>
<figure>
<title>Seam Web Project Creation</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_01.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_01.png"
+ />
</imageobject>
</mediaobject>
</figure>
-
- <itemizedlist>
- <listitem>
- <para>Name your project as
<emphasis><property>crudapp</property></emphasis> and follow the
next wizard steps keeping default settings.</para>
- <para>Please have a look <link
linkend="create_seam">here</link> how to create
<emphasis><property>Target Runtime</property></emphasis> and
<emphasis><property>Seam Runtime</property></emphasis> in order to
get started creating, running, and debugging J2EE applications.</para>
- </listitem>
- </itemizedlist>
+
+ <itemizedlist>
+ <listitem>
+ <para>Name your project as <emphasis>
+ <property>crudapp</property>
+ </emphasis> and follow the next wizard steps keeping default
settings.</para>
+ <para>Please have a look <link
linkend="create_seam">here</link> how to create <emphasis>
+ <property>Target Runtime</property>
+ </emphasis> and <emphasis>
+ <property>Seam Runtime</property>
+ </emphasis> in order to get started creating, running, and
debugging J2EE
+ applications.</para>
+ </listitem>
+ </itemizedlist>
<figure>
<title>New Seam Project Wizard</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_02.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_02.png"
+ />
</imageobject>
</mediaobject>
</figure>
-
+
<itemizedlist>
- <listitem><para>On <emphasis><property>Seam
Facet</property></emphasis> page click
<emphasis><property>New...</property></emphasis> to create a new
<property>Connection profile</property>.</para></listitem>
+ <listitem>
+ <para>On <emphasis>
+ <property>Seam Facet</property>
+ </emphasis> page click <emphasis>
+ <property>New...</property>
+ </emphasis> to create a new <property>Connection
profile</property>.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>Seam Facet page</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_03.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_03.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>On <property>New Connection
Profile</property> dialog select the <emphasis><property>PostgreSQL JDBC
Connection</property></emphasis> type and click
<emphasis><property>Next</property></emphasis>.</para></listitem>
+ <listitem>
+ <para>On <property>New Connection Profile</property>
dialog select the <emphasis>
+ <property>HSQLDB Connection Profile</property>
+ </emphasis> type and click <emphasis>
+ <property>Next</property>
+ </emphasis>.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>New JDBC Connection Profile</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_04.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_04.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Name your profile as
<emphasis><property>cruddb</property></emphasis> and press
<emphasis><property>Next</property></emphasis>.</para></listitem>
+ <listitem>
+ <para>Name your profile as <emphasis>
+ <property>cruddb</property>
+ </emphasis> and press <emphasis>
+ <property>Next</property>
+ </emphasis>.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>New JDBC Connection Profile Name</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_05.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_05.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>On the next page click
<emphasis><property>...</property></emphasis> to select a database
driver.</para></listitem>
+ <listitem>
+ <para>On the next page click <emphasis>
+ <property>...</property>
+ </emphasis> to select a database driver.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>New JDBC Connection Profile Database Driver</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_06.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_06.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>On <property>Driver
Definitions</property> dialog select the
<emphasis><property>PostgreSQL->8.x</property></emphasis> and
click
<emphasis><property>Add...</property></emphasis>.</para></listitem>
+ <listitem>
+ <para>On <property>Driver Definitions</property> dialog
select the <emphasis>
+ <property>Hypersonic DB</property>
+ </emphasis> and click <emphasis>
+ <property>Add...</property>
+ </emphasis>.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>Driver Definitions List</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_07.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_07.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Set the location of <property>JDBC
driver</property> and fill all other necessary fields
(<emphasis><property>URL</property></emphasis>,
<emphasis><property>Database Name</property></emphasis>,
<emphasis><property>Password</property></emphasis>,
<emphasis><property>User Id</property></emphasis>) and click
<emphasis><property>OK</property></emphasis>.</para></listitem>
+ <listitem>
+ <para>Set the location of <property>JDBC
driver</property> and fill all other
+ necessary fields (<emphasis>
+ <property>URL</property>
+ </emphasis>, <emphasis>
+ <property>Database Name</property>
+ </emphasis>, <emphasis>
+ <property>Password</property>
+ </emphasis>, <emphasis>
+ <property>User Id</property>
+ </emphasis>) and click <emphasis>
+ <property>OK</property>
+ </emphasis>.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>Edit Driver Definition</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_09.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_09.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Click
<emphasis><property>OK</property></emphasis> on the next dialog
with newly created driver.</para></listitem>
+ <listitem>
+ <para>After clicking <emphasis>
+ <property>OK</property>
+ </emphasis> to submit the newly created driver you can observe
and if you need edit all specified connection details.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>Driver Definitions List</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_10.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_10.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Click <emphasis><property>Test
Connection</property></emphasis> on the next dialog and observe that
connection can be established.</para></listitem>
+ <listitem>
+ <para>Now click <emphasis>
+ <property>Test Connection</property>
+ </emphasis> to be sure that connection can be
+ established.</para>
+ </listitem>
</itemizedlist>
+
<figure>
- <title>Test JDBC Connection</title>
- <mediaobject>
- <imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_11.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <figure>
<title>JDBC Connection is OK</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_12.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_12.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Validate <emphasis><property>JDBC
Connection profile</property></emphasis> settings and press
<emphasis><property>Finish</property></emphasis> or
<emphasis><property>Back</property></emphasis> if something is
wrong.</para></listitem>
+ <listitem>
+ <para>Validate <emphasis>
+ <property>JDBC Connection profile</property>
+ </emphasis> settings and press <emphasis>
+ <property>Finish</property>
+ </emphasis> or <emphasis>
+ <property>Back</property>
+ </emphasis> if something is wrong.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>Validate JDBC Connection settings</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_13.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_13.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
<listitem>
- <para>Observe that newly created profile has been selected on
<emphasis><property>Seam Facet</property></emphasis> page and
click
<emphasis><property>Finish</property></emphasis>.</para>
- <para>This will create 2 projects -
<emphasis><property>crudapp</property></emphasis> and
<emphasis><property>crudapp-test</property></emphasis>.</para>
+ <para>Observe that newly created profile has been selected on
<emphasis>
+ <property>Seam Facet</property>
+ </emphasis> page and click <emphasis>
+ <property>Finish</property>
+ </emphasis>.</para>
+ <para>This will create 2 projects - <emphasis>
+ <property>crudapp</property>
+ </emphasis> and <emphasis>
+ <property>crudapp-test</property>
+ </emphasis>.</para>
</listitem>
</itemizedlist>
<figure>
<title>Last Step of New Seam Project Wizard</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_14.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_14.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Have a look at the created projects. You can
expand <property>WEB_CONTENT</property> folder and open
<property>home.xhtml</property> or
<property>login.xhtml</property> with <property>JBoss Visual
Editor</property>.</para></listitem>
+ <listitem>
+ <para>Have a look at the created projects. You can expand
+ <property>WEB_CONTENT</property> folder and open
<property>home.xhtml</property>
+ or <property>login.xhtml</property> with
<property>JBoss Visual
+ Editor</property>.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>CRUDAPP Seam Project</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_15.png"
/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_15.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Switch to <property>Database
Development</property> perspective with
<emphasis><property>Window->Open
Perspective->Other...</property></emphasis> and connect to the
<emphasis><property>cruddb</property></emphasis>
database.</para></listitem>
+ <listitem>
+ <para>Switch to <property>Database
Development</property> perspective with <emphasis>
+ <property>Window->Open
Perspective->Other...</property>
+ </emphasis> and connect to the <emphasis>
+ <property>cruddb</property>
+ </emphasis> database.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>Connecting to the CRUDDB database</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_16.png"
scale="75"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_16.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Expand
<emphasis><property>cruddb</property></emphasis> nodes to view its
<emphasis><property>Schemas</property></emphasis>,
<emphasis><property>Tables</property></emphasis>,
<emphasis><property>Columns</property></emphasis>
etc.</para></listitem>
+ <listitem>
+ <para>Expand <emphasis>
+ <property>cruddb</property>
+ </emphasis> nodes to view its <emphasis>
+ <property>Schemas</property>
+ </emphasis>, <emphasis>
+ <property>Tables</property>
+ </emphasis>, <emphasis>
+ <property>Columns</property>
+ </emphasis> etc.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>CRUDDB Database</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_17.png"
scale="75"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_17.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Switch back to the
<property>Seam</property> perspective. From the toolbar select
<emphasis><property>New->Seam Generate
Entities</property></emphasis> to create a set of
<property>CRUD</property> Seam components and web pages based on existing
tables in the database.
- In the <emphasis><property>Generate Seam
Entities</property></emphasis> dialog keep everything by default and press
<emphasis><property>Finish</property></emphasis>.
- </para></listitem>
+ <listitem>
+ <para>Switch back to the <property>Seam</property>
perspective. From the toolbar
+ select <emphasis>
+ <property>New->Seam Generate Entities</property>
+ </emphasis> to create a set of
<property>CRUD</property> Seam components and web
+ pages based on existing tables in the database. In the
<emphasis>
+ <property>Generate Seam Entities</property>
+ </emphasis> dialog keep everything by default and press
<emphasis>
+ <property>Finish</property>
+ </emphasis>. </para>
+ </listitem>
</itemizedlist>
<figure>
<title>Generate Seam Entities</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_18.png"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_18.png"
+ />
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>Under
<emphasis><property>WebContent</property></emphasis> folder you
can find a lot of generated <property>xhtml</property>
files:</para></listitem>
+ <listitem>
+ <para>Under <emphasis>
+ <property>WebContent</property>
+ </emphasis> folder you can find a lot of generated
<property>xhtml</property>
+ files:</para>
+ </listitem>
</itemizedlist>
<figure>
<title>Entities Web Pages</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_19.png"
scale="75"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_19.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
- <listitem><para>And under
<emphasis><property>src</property></emphasis> folder java classes
are created.</para></listitem>
+ <listitem>
+ <para>And under <emphasis>
+ <property>src</property>
+ </emphasis> folder java classes are created.</para>
+ </listitem>
</itemizedlist>
<figure>
<title>Entities Java Classes</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_20.png"
scale="75"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_20.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
<listitem>
- <para>Switch to <property>Hibernate</property> perspective
with <emphasis><property>Window->Open
Perspective->Other...</property></emphasis>. On <property>Hibernate
Configurations</property> view expand the
<emphasis><property>crudapp</property></emphasis> configuration.
Right click on <property>Customers</property> and select
<emphasis><property>Open Mapping Diagram</property></emphasis>
from the popup menu.</para>
+ <para>Switch to <property>Hibernate</property>
perspective with <emphasis>
+ <property>Window->Open
Perspective->Other...</property>
+ </emphasis>. On <property>Hibernate
Configurations</property> view expand the <emphasis>
+ <property>crudapp</property>
+ </emphasis> configuration. Right click on
<property>Customers</property> and
+ select <emphasis>
+ <property>Open Mapping Diagram</property>
+ </emphasis> from the popup menu.</para>
</listitem>
</itemizedlist>
<figure>
<title>Hibernate Configurations View</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_21.png"
scale="75"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_21.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
<listitem>
- <para>Observe that <property>Mapping Diagram</property> is
opened in the editor. Here you can see the relations between models and database tables.
Select <property>Customers</property> entity model, right click and select
<emphasis><property>Open Source
File</property></emphasis>.</para>
+ <para>Observe that <property>Mapping Diagram</property>
is opened in the editor.
+ Here you can see the relations between models and database tables.
Select
+ <property>Customers</property> entity model, right
click and select <emphasis>
+ <property>Open Source File</property>
+ </emphasis>.</para>
</listitem>
</itemizedlist>
<figure>
<title>Mapping Diagram</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_22.png"
scale="75"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_22.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
<itemizedlist>
<listitem>
- <para>This will open the
<property>Customers.java</property> file in the java editor.</para>
+ <para>This will open the
<property>Customers.java</property> file in the java
+ editor.</para>
</listitem>
</itemizedlist>
<figure>
<title>Entity class from Mapping Diagram</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
- <imagedata
fileref="images/crud_database_application/crud_database_application_23.png"
scale="75"/>
+ <imagedata
+
fileref="images/crud_database_application/crud_database_application_23.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
-
- <para>After that you are ready to deploy your application to J2EE
application server. This is described in the next chapter.</para>
- </section>
+ <para>After that you are ready to deploy your application to J2EE
application server. This
+ is described in the next chapter.</para>
+ </section>
+
</chapter>
-
Modified:
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/directory_structure.xml
===================================================================
---
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/directory_structure.xml 2008-05-21
10:23:39 UTC (rev 8252)
+++
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/directory_structure.xml 2008-05-21
11:01:22 UTC (rev 8253)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="directory_str" xreflabel="directory_str">
+<chapter id="directory_str" xreflabel="directory_str"
revisionflag="added">
<?dbhtml filename="directory_structure.html"?>
<chapterinfo>
<keywordset>
Modified: branches/jbosstools-2.1.x/seam/docs/reference/en/modules/generate_entities.xml
===================================================================
---
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/generate_entities.xml 2008-05-21
10:23:39 UTC (rev 8252)
+++
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/generate_entities.xml 2008-05-21
11:01:22 UTC (rev 8253)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="generate_entities" xreflabel="generate_entities">
+<chapter id="generate_entities" xreflabel="generate_entities">
<?dbhtml filename="generate_entities.html"?>
<chapterinfo>
<keywordset>
Modified: branches/jbosstools-2.1.x/seam/docs/reference/en/modules/intro.xml
===================================================================
--- branches/jbosstools-2.1.x/seam/docs/reference/en/modules/intro.xml 2008-05-21 10:23:39
UTC (rev 8252)
+++ branches/jbosstools-2.1.x/seam/docs/reference/en/modules/intro.xml 2008-05-21 11:01:22
UTC (rev 8253)
@@ -25,7 +25,7 @@
applications with many component frameworks.</para>
</section>
- <section>
+ <section revisionflag="added">
<title>Installation into Eclipse</title>
<para>Here, we are going to explain how to install Seam plugin into
Eclipse.</para>
Modified: branches/jbosstools-2.1.x/seam/docs/reference/en/modules/seam_editors.xml
===================================================================
--- branches/jbosstools-2.1.x/seam/docs/reference/en/modules/seam_editors.xml 2008-05-21
10:23:39 UTC (rev 8252)
+++ branches/jbosstools-2.1.x/seam/docs/reference/en/modules/seam_editors.xml 2008-05-21
11:01:22 UTC (rev 8253)
@@ -88,7 +88,7 @@
on your project which will execute all the active WTP
validations.</para>
</section>
- <section id="ComponentsEditor">
+ <section id="ComponentsEditor" revisionflag="changed">
<title>Structured components.xml Editor</title>
<para>When editing <property>components.xml</property> a
structured tree editor is available in addition to pure source editing.
Modified: branches/jbosstools-2.1.x/seam/docs/reference/en/modules/seam_preferences.xml
===================================================================
---
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/seam_preferences.xml 2008-05-21
10:23:39 UTC (rev 8252)
+++
branches/jbosstools-2.1.x/seam/docs/reference/en/modules/seam_preferences.xml 2008-05-21
11:01:22 UTC (rev 8253)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="seam_preferences" xreflabel="seam_preferences">
+<chapter id="seam_preferences" xreflabel="seam_preferences">
<!-- mark as new -->
<?dbhtml filename="seam_preferences.html"?>
<chapterinfo>
<keywordset>
@@ -16,7 +16,7 @@
<section id="gen_pref">
<title>General Preferences</title>
-<para>Seam preferences can be set using the Seam preference page. Click on
<property><emphasis>Window > Preferences > JBoss Tools > Web >
Seam</emphasis>.</property></para>
+ <para>Seam preferences can be set using the Seam preference page. Click on
<emphasis><property>Window > Preferences > JBoss Tools > Web >
Seam</property>.</emphasis></para>
<para>On this page you can manage the Seam Runtime. Use the appropriate
buttons to <property>Add</property> more runtimes or to
<property>Remove</property> those that are not needed.</para>
@@ -46,7 +46,7 @@
<title>Validator Preferences</title>
<para>Seam preference page includes a subsection
<property>Validator</property>.
- See <property><emphasis>Window > Preferences > JBoss Tools
> Web > Seam > Validator</emphasis>.</property></para>
+ See <emphasis><property>Window > Preferences > JBoss Tools
> Web > Seam > Validator</property>.</emphasis></para>
<para>On this page you can choose a severity level for the various Seam
validator problems. For example, if you want to ignore the case when component
name is duplicated expand the <property>Components</property> node and
select <property>Ignore</property> next to <property>Duplicate component
name</property>.
After that you won't see the error.</para>
Modified: branches/jbosstools-2.1.x/seam/docs/reference/pom.xml
===================================================================
--- branches/jbosstools-2.1.x/seam/docs/reference/pom.xml 2008-05-21 10:23:39 UTC (rev
8252)
+++ branches/jbosstools-2.1.x/seam/docs/reference/pom.xml 2008-05-21 11:01:22 UTC (rev
8253)
@@ -21,12 +21,12 @@
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jbossorg-docbook-xslt</artifactId>
- <version>1.1.0.Beta1</version>
+ <version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jbossorg-jdocbook-style</artifactId>
- <version>1.1.0.Beta1</version>
+ <version>1.1.0</version>
<type>jdocbook-style</type>
</dependency>
</dependencies>