Author: smukhina
Date: 2007-07-06 06:06:18 -0400 (Fri, 06 Jul 2007)
New Revision: 2335
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/AjaxCRUDApplicationWithSeamAndRichFaces.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/BusinessProcessAndRulesApplication.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedForCreatingaJSFApplication.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJSFwithHibernate.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJavaServerFaces.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedStrutsValidationExamples.xml
Log:
http://jira.jboss.com/jira/browse/EXIN-373
some words and phrases are marked with italic font style
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/AjaxCRUDApplicationWithSeamAndRichFaces.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/AjaxCRUDApplicationWithSeamAndRichFaces.xml 2007-07-05
18:06:31 UTC (rev 2334)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/AjaxCRUDApplicationWithSeamAndRichFaces.xml 2007-07-06
10:06:18 UTC (rev 2335)
@@ -53,7 +53,7 @@
</mediaobject>
</figure>
<itemizedlist continuation="continues">
-<listitem>To create a Seam project, select Seam Gen -> Setup/Configuration ->
Setup to
+<listitem>To create a Seam project, select <emphasis>Seam Gen ->
Setup/Configuration -> Setup </emphasis>to
launch the Seam Gen setup window as shown below. Note: </listitem>
</itemizedlist>
<note>
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/BusinessProcessAndRulesApplication.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/BusinessProcessAndRulesApplication.xml 2007-07-05
18:06:31 UTC (rev 2334)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/BusinessProcessAndRulesApplication.xml 2007-07-06
10:06:18 UTC (rev 2335)
@@ -118,7 +118,7 @@
is "back order", the rule changes the order status to
"refund" automatically to trigger the
business process of refunding.</para>
<orderedlist>
- <listitem>Select the EclipseCon/resources directory. That is where we are going
to put the
+ <listitem>Select the<emphasis> EclipseCon/resources
</emphasis>directory. That is where we are going to put the
rules definition file.</listitem>
<listitem>Select the following menu actions: File -> New -> Other ...
-> JBoss Rules -> New
Rules Resource to bring up the JBoss Rules wizard.</listitem>
@@ -198,7 +198,7 @@
refunded. Since the business analyst typically designs this process, it is very high
level and
can be drawn up in a GUI designer.</para>
<orderedlist>
- <listitem>Select the EclipseCon/resources folder and select menu actions File
-> New -> File.
+ <listitem>Select the<emphasis> EclipseCon/resources </emphasis>folder
and select menu actions File -> New -> File.
Add a new file called process-order.jpdl.xml as shown below:</listitem>
</orderedlist>
<figure>
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedForCreatingaJSFApplication.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedForCreatingaJSFApplication.xml 2007-07-05
18:06:31 UTC (rev 2334)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedForCreatingaJSFApplication.xml 2007-07-06
10:06:18 UTC (rev 2335)
@@ -22,8 +22,8 @@
JSF application and then run the application from inside Red Hat Developer Studio.
We'll assume that you have already launched Eclipse with Red Hat Developer
Studio installed and
also that the Red Hat Developer Studio perspective is the current one. (If not, make it
active by
-selecting Window > Open Perspective > Red Hat Developer Studio from the menu bar or
by selecting Window/
-Open Perspective/Other... from the menu bar and then selecting Red Hat Developer Studio
from
+selecting <emphasis>Window > Open Perspective > Red Hat Developer
Studio</emphasis> from the menu bar or by selecting <emphasis>Window/
+Open Perspective/Other...</emphasis> from the menu bar and then selecting Red Hat
Developer Studio from
the Select Perspective dialog box.)</para>
</section>
<section id="SettingUpTheProject">
@@ -31,8 +31,8 @@
<title>Setting Up the Project</title>
<para>We are first going to create a new project for the application.</para>
<itemizedlist>
-<listitem><para>Go to the menu bar and select File > New > Project...
.</para></listitem>
-<listitem><para>Select Red Hat Developer Studio > JSF > JSF Project in
the New Project dialog box.</para></listitem>
+<listitem><para>Go to the menu bar and select <emphasis>File > New
> Project...</emphasis> .</para></listitem>
+<listitem><para>Select <emphasis>Red Hat Developer Studio > JSF >
JSF Project</emphasis> in the New Project dialog box.</para></listitem>
<listitem><para>Click Next</para></listitem>
<listitem><para>Enter jsfHello as the project
name.</para></listitem>
<listitem><para>Leave everything else as is, and click
Finish.</para></listitem>
@@ -80,7 +80,7 @@
<?dbhtml filename="AddingTwoViews(JSPPages).html"?>
<title>Adding Two Views (JSP Pages)</title>
<itemizedlist continuation="continues">
-<listitem><para>Right-click anywhere on the diagram and select New View...
from the pop-up
+<listitem><para>Right-click anywhere on the diagram and
select<emphasis>New View...</emphasis> from the pop-up
menu</para></listitem>
<listitem><para>In the dialog box, type pages/inputname as the value for
From-view-id</para></listitem>
<listitem><para>Leave everything else as is</para></listitem>
@@ -88,7 +88,7 @@
<para>If you look in the Package Explorer view you should see a pages folder under
WebContent. Opening it
will reveal the JSP file you just created</para>
</listitem>
-<listitem><para>Back on the diagram, right-click anywhere and select New
View... from the popup
+<listitem><para>Back on the diagram, right-click anywhere and
select<emphasis>New View...</emphasis> from the popup
menu</para></listitem>
<listitem><para>In the dialog box, type pages/greeting as the value for
From-view-id</para></listitem>
<listitem><para>Leave everything else as is</para></listitem>
@@ -135,14 +135,14 @@
<para>To store data in the application, we will use a managed bean.</para>
<itemizedlist continuation="continues">
<listitem><para>Click on the Tree tab at the bottom of the editing
window</para></listitem>
-<listitem><para>Select the Managed Beans node and then click the Add...
button displayed along
+<listitem><para>Select the Managed Beans node and then click the
<emphasis>Add...</emphasis> button displayed along
the right side of the editor window</para></listitem>
<listitem><para>Type in jsfHello.PersonBean for Class and personBean for
Name. Leave
Scope as is and Generate Source Code as is (checked)</para></listitem>
<listitem><para>Click Finish</para></listitem>
<listitem><para>personBean will now be selected and three sections of
information, Managed
Bean, Properties, and Advanced, will be displayed about it. Under the Properties
-section, click the Add... button</para></listitem>
+section, click the <emphasis>Add...</emphasis>
button</para></listitem>
<listitem><para>For Property-Name type in name. Leave everything else as is.
(When Property-
Class is not filled in, String is the assumed type.)</para></listitem>
<listitem><para>Click Finish</para></listitem>
@@ -212,7 +212,7 @@
<listitem><para>Select inputText within the JSF HTML palette folder and drag
it into the innermost
box in the editor after "Please enter
name:"</para></listitem>
<listitem><para>In the attributes dialog, click in the value field next to
the value attribute and click
-on the ... button</para></listitem>
+on the <emphasis>... </emphasis>button</para></listitem>
<listitem><para>Then, select the Managed Beans/personBean/name node and click
on the Ok
button</para></listitem>
<listitem><para>Back in the attributes dialog, select the Advanced tab, type
in name as the value
@@ -220,7 +220,7 @@
<listitem><para>Select commandButton within the JSF HTML palette folder and
drag it into the
innermost box in the editor after the input box</para></listitem>
<listitem><para>In the attributes dialog, click in the value field next to
the action attribute and click
-on the ... button</para></listitem>
+on the <emphasis>... </emphasis>button</para></listitem>
<listitem><para>Then, select the View Actions/greeting node and click on the
Ok button</para></listitem>
<listitem><para>Back in the attributes dialog box, type in Say Hello as the
value for the value
attribute ("Say Hello") and then click on the Finish
button</para></listitem>
@@ -296,14 +296,14 @@
<title>Creating the Start Page</title>
<para>You also need to create a start page as an entry point into the
application.</para>
<itemizedlist continuation="continues">
-<listitem><para>In the Package Explorer view to the left, right-click
jsfHello/WebContent and select
+<listitem><para>In the Package Explorer view to the left, right-click
<emphasis>jsfHello/WebContent</emphasis> and select
New/JSP File</para></listitem>
<listitem><para>For Name type in index, for Template select JSPRedirect and
click Finish.</para></listitem>
</itemizedlist>
<para>A JSP editor will open up on the newly created file.</para>
<itemizedlist continuation="continues">
-<listitem><para>In the Source part of the split screen, type
/pages/inputname.jsf in between
+<listitem><para>In the Source part of the split screen, type
<emphasis>/pages/inputname.jsf</emphasis> in between
the quotes for the page attribute</para></listitem>
</itemizedlist>
<para>The source coding should look like this now:</para>
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml 2007-07-05
18:06:31 UTC (rev 2334)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml 2007-07-06
10:06:18 UTC (rev 2335)
@@ -16,8 +16,8 @@
<title>Starting Up</title>
<para>We are first going to create a new project for the application.</para>
<itemizedlist>
-<listitem><para>Go to the menu bar and select File/New/Project...
.</para></listitem>
-<listitem><para>Select Red Hat Developer Studio/Struts/Struts Project in the
New Project dialog box.</para></listitem>
+<listitem><para>Go to the menu bar and select
File/New/<emphasis>Project...</emphasis>.</para></listitem>
+<listitem><para><emphasis>Select Red Hat Developer Studio/Struts/Struts
Project</emphasis> in the New Project dialog box.</para></listitem>
<listitem><para>Click Next >.</para></listitem>
<listitem><para>Enter StrutsHello as the project
name.</para></listitem>
<listitem><para>Leave everything else as is, and click Next
>.</para></listitem>
@@ -48,7 +48,7 @@
<title>Creating the Page Placeholders</title>
<itemizedlist continuation="continues">
<listitem><para>Bring the Web Projects view to the front of the Package
Explorer view by selecting the Web Projects tab next to that
tab.</para></listitem>
-<listitem><para>Right-click the StrutsHello/WEB-ROOT (WebContent) folder in
the Web Projects view and select New/Folder... .</para></listitem>
+<listitem><para>Right-click the StrutsHello/WEB-ROOT (WebContent) folder in
the Web Projects view and select
New/<emphasis>Folder...</emphasis>.</para></listitem>
<listitem><para>Enter pages for a folder name and click
Finish.</para></listitem>
<listitem><para>We will keep our presentation files in this
folder.</para></listitem>
@@ -162,13 +162,13 @@
<title>Creating a Global Forward</title>
<para>One last component that we need to create in the diagram is a global
forward.</para>
<itemizedlist continuation="continues">
-<listitem><para>Somewhere in the top-left corner of diagram, right-click and
select Add/Global Forward....</para></listitem>
+<listitem><para>Somewhere in the top-left corner of diagram, right-click and
select <emphasis> Add/Global
Forward...</emphasis></para></listitem>
<listitem><para>Enter getName in the Name
field.</para></listitem>
-<listitem><para>Select the Change... button for
Path.</para></listitem>
+<listitem><para>Select the <emphasis>Change...</emphasis>button
for Path.</para></listitem>
<listitem><para>In the Edit Path window, switch to the Pages
tab.</para></listitem>
-<listitem><para>Expand the StrutsHello/WEB-ROOT (WebContent)/pages node and
then select the inputname.jsp page.</para></listitem>
-<listitem><para>Click Ok.</para></listitem>
-<listitem><para>Leave the rest of the fields blank and click
Ok.</para></listitem>
+<listitem><para>Expand the <emphasis>StrutsHello/WEB-ROOT
(WebContent)/pages</emphasis> node and then select the inputname.jsp
page.</para></listitem>
+<listitem><para>Click
<emphasis>Ok</emphasis>.</para></listitem>
+<listitem><para>Leave the rest of the fields blank and click
<emphasis>Ok</emphasis>.</para></listitem>
</itemizedlist>
<para>A forward object now appears on the diagram and also in the global-forwards
folder in the Outline view.</para>
<itemizedlist continuation="continues">
@@ -191,7 +191,7 @@
<listitem><para>Right-click struts-config.xml/form-beans and select Create
Form Bean.</para></listitem>
<listitem><para>Enter GetNameForm in the name field and sample.GetNameForm
for type.</para></listitem>
<listitem><para>Click Finish.</para></listitem>
-<listitem><para>To save your changes to struts-config.xml, select File/Save
from the menu bar.</para></listitem>
+<listitem><para>To save your changes to struts-config.xml, select
<emphasis>File/Save</emphasis> from the menu
bar.</para></listitem>
</itemizedlist>
<para>Note the disappearance of the asterisk next to the name,
struts-config.xml.</para>
</section>
@@ -216,7 +216,7 @@
<itemizedlist continuation="continues">
<listitem><para>Click Finish.</para></listitem>
</itemizedlist>
-<para>The Java files will be generated in a JavaSource/sample folder that you can
see in the Package
+<para>The Java files will be generated in a
<emphasis>JavaSource/sample</emphasis> folder that you can see in the Package
Explorer view under the StrutsHello node. One Action stub and one FormBean stub will
have been generated.</para>
</section>
<section id="CodingtheVariousFiles">
@@ -227,7 +227,7 @@
<section id="JavaStubClasses">
<title>Java Stub Classes</title>
<itemizedlist continuation="continues">
- <listitem><para>To finish the two Java classes, switch to the Package
Explorer view and expand the JavaSource/sample folder.</para></listitem>
+ <listitem><para>To finish the two Java classes, switch to the Package
Explorer view and expand the <emphasis>JavaSource/sample</emphasis>
folder.</para></listitem>
</itemizedlist>
<section id="GetNameForm.java">
<title>GetNameForm.java</title>
@@ -251,7 +251,7 @@
<para>ActionErrors errors = new ActionErrors();</para>
<para>return errors;</para>
<itemizedlist continuation="continues">
-<listitem><para>Right-click and select Source/Generate Getters and Setters...
from the context menu.</para></listitem>
+<listitem><para>Right-click and select Source/Generate Getters and
<emphasis>Setters...</emphasis>from the context
menu.</para></listitem>
<listitem><para>In the dialog box, check the check boxes for name and
greetName, select First method for Insertion point, and click on the OK
button.</para></listitem>
</itemizedlist>
<para>The final GetNameForm.java file should look like this:</para>
@@ -356,7 +356,7 @@
<para>In this page, the user will enter any name and click the submit button. Then,
the greeting action will be called through the form.</para>
<itemizedlist continuation="continues">
<listitem><para>Click on the inputname.jsp tab in the Editing area to bring
its editor forward.</para></listitem>
-<listitem><para>In the Web Projects view, expand
StrutsHello/Configuration/default/strutsconfig.xml/action-mappings and select
/greeting.</para></listitem>
+<listitem><para>In the Web Projects view, expand
<emphasis>StrutsHello/Configuration/default/strutsconfig.xml/action-mappings</emphasis>
and select <emphasis>/greeting</emphasis>.</para></listitem>
<listitem><para>Drag it and drop it between the quotes for the action
attribute to the html:form element in the Source pane of the
editor.</para></listitem>
<listitem><para>Then type this text on a new line just below this
line:</para></listitem>
@@ -410,7 +410,7 @@
<para>To complete editing of this file, we will use macros from the Red Hat
Palette. This palette is a view that should be available to the right of the editing
area.</para>
<itemizedlist continuation="continues">
-<listitem><para>Click on the Struts Common folder in the Red Hat Palette to
open it.</para></listitem>
+<listitem><para>Click on the <emphasis>Struts Common</emphasis>
folder in the Red Hat Palette to open it.</para></listitem>
<listitem><para>Position the cursor at the beginning of the greeting.jsp file
in the Source pane and then click on bean taglib in the Red Hat
Palette.</para></listitem>
</itemizedlist>
<para>This will insert the following line at the top of the file:</para>
@@ -437,8 +437,8 @@
<title>index.jsp</title>
<para>Finally, we will need to create and edit an index.jsp page. This page will
use a Struts forward to simply redirect us to the getName global forward.</para>
<itemizedlist continuation="continues">
-<listitem><para>In the Web Projects view, right-click on
StrutsHello/WEB-ROOT(WebContent)</para>
-<para>node and select New/File/JSP... .</para>
+<listitem><para>In the Web Projects view, right-click on
<emphasis>StrutsHello/WEB-ROOT(WebContent)</emphasis></para>
+<para>node and select <emphasis>New/File/JSP...</emphasis>
.</para>
</listitem>
<listitem><para>Type index for Name and click on the Finish
button.</para></listitem>
<listitem><para>On the Red Hat Palette, select the Struts Common folder of
macros by clicking on it in the palette.</para></listitem>
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJSFwithHibernate.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJSFwithHibernate.xml 2007-07-05
18:06:31 UTC (rev 2334)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJSFwithHibernate.xml 2007-07-06
10:06:18 UTC (rev 2335)
@@ -18,7 +18,7 @@
<listitem><para>Download:
http://webdownload.exadel.com/dirdownloads/ormhib/examples/ormHibernate3-...
<listitem><para>Unzip this file into your Eclipse workspace
folder.</para></listitem>
<listitem><para>Launch Eclipse.</para></listitem>
-<listitem><para>In Eclipse, select File/Import/JSF
Project.</para></listitem>
+<listitem><para>In Eclipse, select <emphasis>File/Import/JSF
Project</emphasis>.</para></listitem>
<listitem><para>Click Next.</para></listitem>
<listitem><para>Browse to where the project was
unzipped.</para></listitem>
<listitem><para>Find the web.xml file inside the WebContent folder in the
WEB-INF folder, select it, and Click Finish.</para></listitem>
@@ -99,7 +99,7 @@
capabilities to our project.</para>
<itemizedlist continuation="continues">
<listitem><para>Right-click on ormHibernate3-jsf in the Package Explorer view
and select Red Hat</para></listitem>
-<listitem><para>Studio/Add Hibernate Capability... from the context
menu.</para></listitem>
+<listitem><para><emphasis> <emphasis>Studio/Add Hibernate
Capability...</emphasis></emphasis> from the context
menu.</para></listitem>
<listitem><para>Click on Yes in the the dialog box with Add Hibernate Jars
selected.</para></listitem>
<listitem><para>In the Configuration Wizard, click twice in the Value field
for dialect and select org.hibernate.dialect.HSQLDialect from the pop-up
menu.</para></listitem>
<listitem><para>Click Finish</para></listitem>
@@ -416,14 +416,14 @@
<itemizedlist continuation="continues">
<listitem><para>Leave all values as they are, only change URL: to the
following: jdbc:hsqldb:hsql://localhost</para></listitem>
<listitem><para>Click OK.</para></listitem>
-<listitem><para>Select File/Open Script... from the menu bar of HSQL Database
Manager.</para></listitem>
+<listitem><para>Select <emphasis> File/Open
Script...</emphasis>from the menu bar of HSQL Database
Manager.</para></listitem>
<listitem><para>Find and open the the DDL file we just
created.</para></listitem>
<listitem><para>Click Execute back in the main screen of the Database
Manager.</para></listitem>
-<listitem><para>38. Select View/Refresh Tree from the menu
bar.</para></listitem>
+<listitem><para>38. Select <emphasis>View/Refresh Tree</emphasis>
from the menu bar.</para></listitem>
</itemizedlist>
<para>The User database should now appear in the expand/collapse tree to the
left.</para>
<itemizedlist continuation="continues">
-<listitem><para>Select File/Exit from the menu
bar.</para></listitem>
+<listitem><para>Select<emphasis> File/Exit </emphasis>from the
menu bar.</para></listitem>
<listitem><para>Stop the database server:
.../ormHibernate3-jsf/hsqldb/bin/shutdown.bat</para></listitem>
</itemizedlist>
</section>
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJavaServerFaces.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJavaServerFaces.xml 2007-07-05
18:06:31 UTC (rev 2334)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJavaServerFaces.xml 2007-07-06
10:06:18 UTC (rev 2335)
@@ -59,7 +59,7 @@
without redeployment. This is extremely important when you play with the code by adding
new
features to test how they work. At the same time, Developer Studio allows you to have
full control over
the source code. We even recommend turning on the "Use Source Tab as a default
for multi-tab
-editors" option in the Preferences Editor (Red Hat->Editors section). You can
always use the GUI
+editors" option in the Preferences Editor (<emphasis>Red
Hat->Editors</emphasis> section). You can always use the GUI
feature of Developer Studio later to slash the development time when you start to
understand enough
how things works on the source code level. The provided example is fully adapted to work
with
Red Hat Developer Studio.</para>
@@ -68,7 +68,7 @@
feature for learning.</para>
<para>To start working with the tutorial example, copy the
"ticker" folder to a new place on the
disk. If you use Red Hat Developer Studio, copy this folder to the Eclipse workspace
folder (or wherever you
-usually keep projects) and then import this project using the Eclipse File->Import
menu. Leave
+usually keep projects) and then import this project using the <emphasis>Eclipse
File->Import</emphasis> menu. Leave
the server.xml registration option checked on the second screen of wizard. This allows
you to
change and then run an application without any special redeployment.</para>
<para>Each ticker folder contains four subfolders:</para>
@@ -581,7 +581,7 @@
around it, you can the that the same prefix is added to the value you assigned for
id.</para>
<para>We are done with <emphasis
role="italic"><property>"id"</property></emphasis>
attribute. Now, let's use the <emphasis
role="italic"><property>"rendered"</property></emphasis>
attribute. This attribute can
be used with any JSF Component, because it is inherited from the UIComponent class, the
top
-level of the JSF Component hierarchy. The <emphasis
role="italic"><property>"rendered"</property></emphasis>
attribute itself is not passed through to the HTML code as a tag attribute, but, if it has
been set to “false,” the tag with all of its children will
+level of the JSF Component hierarchy. The <emphasis
role="italic"><property>"rendered"</property></emphasis>
attribute itself is not passed through to the HTML code as a tag attribute, but, if it has
been set to "false", the tag with all of its children will
not be rendered at all.</para>
<para>It is pretty easy to add a <emphasis
role="italic"><property>"rendered"</property></emphasis>
attribute. Just add it into the ticker.tld and all is set.</para>
<programlisting role="XML"><![CDATA[<attribute>
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedStrutsValidationExamples.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedStrutsValidationExamples.xml 2007-07-05
18:06:31 UTC (rev 2334)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedStrutsValidationExamples.xml 2007-07-06
10:06:18 UTC (rev 2335)
@@ -35,34 +35,34 @@
and tie it into the appropriate part of the application.</para>
<itemizedlist>
-<listitem><para>Right-click the plug-ins node under the
StrutsHello/Configuration/default/
-struts-config.xml node in the Web Projects view and select Create Special
Plugin/Validators from the context
+<listitem><para>Right-click the plug-ins node under the
<emphasis>StrutsHello/Configuration/default/
+struts-config.xml</emphasis> node in the Web Projects view and select
<emphasis>Create Special Plugin/Validators</emphasis> from the context
menu.</para></listitem>
<listitem><para>Further down in the Web Projects view, right-click on the
-StrutsHello/ResourceBundles node and select New/Properties File... from the context
menu.</para></listitem>
-<listitem><para>In the dialog box, click on the Browse... button next to the
Folder field, expand the
+StrutsHello/ResourceBundles node and select <emphasis> New/Properties
File...</emphasis>from the context menu.</para></listitem>
+<listitem><para>In the dialog box, click on the
<emphasis>Browse...</emphasis>button next to the Folder field, expand the
JavaSource folder in this next dialog box, select the sample subfolder, and click on the
OK button.</para></listitem>
<listitem><para>Back in the first dialog box, type in applResources for the
Name field and
click on the Finish button.</para></listitem>
-<listitem><para>Right-click the newly created file and select Add/Default
Error Messages
+<listitem><para>Right-click the newly created file and select
<emphasis>Add/Default Error Messages</emphasis>
from the context menu.</para></listitem>
<listitem><para>Drag up the sample.applResources icon until you can drop it
on the resources folder under struts-config.xml.</para></listitem>
-<listitem><para>Select File/Save All from the menu
bar.</para></listitem>
-<listitem><para>Select validation.xml under the StrutsHello/Validation node
and double-click it to open it with the Red Hat Developer Studio Validation
Editor.</para></listitem>
-<listitem><para>Select validation.xml under the StrutsHello/Validation node
and double-click it to open it with the Red Hat Studio Validation
Editor.</para></listitem>
-<listitem><para>Expand the form-beans node under the
StrutsHello/Configuration/default/ struts-config.xml node. Then, drag the form bean
GetNameForm and drop it onto formset (default) in the Validation
Editor.</para></listitem>
-<listitem><para>In the Validation Editor, expand the formset node,
right-click GetNameForm, and select Add Field... from the context
menu.</para></listitem>
+<listitem><para>Select<emphasis> File/Save </emphasis>All from
the menu bar.</para></listitem>
+<listitem><para>Select validation.xml under the
<emphasis>StrutsHello/Validation</emphasis> node and double-click it to open
it with the Red Hat Developer Studio Validation Editor.</para></listitem>
+<listitem><para>Select validation.xml under the<emphasis>
StrutsHello/Validation</emphasis> node and double-click it to open it with the Red
Hat Studio Validation Editor.</para></listitem>
+<listitem><para>Expand the form-beans node under the
<emphasis>StrutsHello/Configuration/default/ struts-config.xml
node.</emphasis> Then, drag the form bean GetNameForm and drop it onto formset
(default) in the Validation Editor.</para></listitem>
+<listitem><para>In the Validation Editor, expand the formset node,
right-click GetNameForm, and select<emphasis>Add Field...</emphasis> from the
context menu.</para></listitem>
<listitem><para>Enter name for Property in the dialog
box.</para></listitem>
-<listitem><para>In the properties for the name field to the right of the
"tree" for the validation.xml file, click on the Change... button next
to the Depends entry field.</para></listitem>
-<listitem><para>In the displayed double list, select required from the left
list and then click Add->.</para></listitem>
+<listitem><para>In the properties for the name field to the right of the
"tree" for the validation.xml file, click on the
<emphasis>Change...</emphasis>button next to the Depends entry
field.</para></listitem>
+<listitem><para>In the displayed double list, select required from the left
list and then click
<emphasis>Add-></emphasis>.</para></listitem>
<listitem><para>Click Ok.</para></listitem>
-<listitem><para>Right-click name and select Add Arg... from the context
menu.</para></listitem>
-<listitem><para>In the Add Arg dialog box, click on the Change... button next
to the Key field.</para></listitem>
+<listitem><para>Right-click name and select<emphasis>Add
Arg...</emphasis> from the context menu.</para></listitem>
+<listitem><para>In the Add Arg dialog box, click on the
<emphasis>Change...</emphasis>button next to the
<emphasis>Key</emphasis> field.</para></listitem>
<listitem><para>In the Key dialog box that appears now, click on the Add
button.</para></listitem>
<listitem><para>Enter name.required in the Name field, and enter A
person's name in the Value field.</para></listitem>
<listitem><para>Click Finish, then Ok, and then Ok
again.</para></listitem>
-<listitem><para>Select File/Save All from the menu
bar.</para></listitem>
+<listitem><para>Select <emphasis>File/Save All</emphasis> from
the menu bar.</para></listitem>
</itemizedlist>
</section>
@@ -74,11 +74,11 @@
<para>you don't actually have to do any of the script coding. The
Validation Framework handles this.</para>
<para>To see how this works in our application, you'll just need to make a
couple of modifications to one of the JSP files.</para>
<itemizedlist continuation="continues">
-<listitem><para>Double-click inputname.jsp under StrutsHello/WEB-ROOT
(WebContent)/ pages to open it for editing.</para></listitem>
+<listitem><para>Double-click inputname.jsp under
<emphasis>StrutsHello/WEB-ROOT</emphasis> (WebContent)/ pages to open it for
editing.</para></listitem>
<listitem><para>Find the tag near the top and hit Return to make a new line
under it.</para></listitem>
<listitem><para>In the Red Hat Palette view to the right, open the HTML
folder and click on the javascript tag.</para></listitem>
<listitem><para>Back in the editor, just in front of the closing slash for
this inserted tag, hit Ctrl+Space and select formName from the prompting
menu.</para></listitem>
-<listitem><para>Over in the Web Projects view, select GetNameForm under the
StrutsHello/Configuration/ default/struts-config.xml/form-beans node, drag it, and drop it
between the quotes in the editor.</para></listitem>
+<listitem><para>Over in the Web Projects view, select GetNameForm under the
<emphasis>StrutsHello/Configuration/default/struts-config.xml/form-beans</emphasis>
node, drag it, and drop it between the quotes in the
editor.</para></listitem>
<listitem><para>Modify the <html:form> tag by inserting this
attribute:</para></listitem>
</itemizedlist>
<para>onsubmit="return validateGetNameForm(this)"</para>
@@ -109,7 +109,7 @@
</html:html>
]]></programlisting>
<itemizedlist continuation="continues">
-<listitem><para>Select File/Save from the menu
bar.</para></listitem>
+<listitem><para>Select<emphasis> File/Save </emphasis>from the
menu bar.</para></listitem>
<listitem><para>28. Start JBoss Application Server by clicking on its icon (a
right-pointing arrow) in the toolbar.</para></listitem>
<listitem><para>29. Click on the Run icon in the
toolbar.</para></listitem>
<listitem><para>Start Tomcat by clicking on its icon (a right-pointing arrow)
in the toolbar.</para></listitem>
@@ -179,9 +179,9 @@
<?dbhtml filename="EditingTheAction.html"?>
<title>Editing the Action</title>
<itemizedlist continuation="continues">
-<listitem><para>In the Web Projects view, expand the node under the
StrutsHello/Configuration/ default/struts-config.xml/action-mappings node, right-click the
/greeting action, and then select Properties... from the context
menu.</para></listitem>
+<listitem><para>In the Web Projects view, expand the node under the
<emphasis>StrutsHello/Configuration/default/struts-config.xml/action-mappings</emphasis>
node, right-click the /greeting action, and then select
<emphasis>Properties...</emphasis>from the context
menu.</para></listitem>
-<listitem><para>In the Edit Properties window, insert the cursor into the
value column for the input property and click on the ...
button.</para></listitem>
+<listitem><para>In the Edit Properties window, insert the cursor into the
value column for the input property and click on the <emphasis>...</emphasis>
button.</para></listitem>
<listitem><para>In the dialog box, make sure the Pages tab is selected,
select StrutsHello/WEB-ROOT(WebContent)/pages/inputname.jsp, click the Ok button, and then
click on the Close button.</para></listitem>
</itemizedlist>
@@ -192,7 +192,7 @@
<title>Editing the Form Bean</title>
<itemizedlist continuation="continues">
<listitem><para>Right-click the /greeting action again and select Open
Form-bean Source to open the GetNameForm.java file for
editing.</para></listitem>
-<listitem><para>Change the class that it extends to from:
org.apache.struts.action.ActionForm to:
org.apache.struts.validator.ValidatorForm</para></listitem>
+<listitem><para>Change the class that it extends to from:
<emphasis>org.apache.struts.action.ActionForm</emphasis> to:
org.apache.struts.validator.ValidatorForm</para></listitem>
<listitem><para>Comment out out the validate
method.</para></listitem>
</itemizedlist>
<para>The file should now look like this:</para>
@@ -239,7 +239,7 @@
]]></programlisting>
-<para>Select File/Save All from the menu bar.</para>
+<para>Select <emphasis>File/Save All </emphasis>from the menu
bar.</para>
<itemizedlist continuation="continues">
<listitem><para>Reload the application into JBoss AS by clicking on the
Change Time Stamp icon (a finger pointing with a little star) in the
toolbar.</para></listitem>
<listitem><para>Run the application.</para></listitem>