Author: sabrashevich
Date: 2007-11-06 08:30:27 -0500 (Tue, 06 Nov 2007)
New Revision: 4735
Modified:
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/images/ConfigEditor2.png
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/images/run.png
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/GettingStartedStrutsValidationExamples.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-136 fixed bugs found by QA
Modified:
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/images/ConfigEditor2.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/userguide/Legacy-jsf-struts/en/images/run.png
===================================================================
(Binary files differ)
Modified:
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml
===================================================================
---
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml 2007-11-06
13:23:47 UTC (rev 4734)
+++
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml 2007-11-06
13:30:27 UTC (rev 4735)
@@ -52,10 +52,10 @@
<listitem><para>We will keep our presentation files in this
folder</para></listitem>
-<listitem><para>Right-click the pages folder and select
<emphasis><property>New > File >
JSP...</property></emphasis> </para></listitem>
- <listitem><para>For Name type in inputname (the JSP extension will be
automatically added to the file), for Template select
<emphasis><property>StrutsForm</property></emphasis> and then
click on the <emphasis><property>Finish</property></emphasis>
button</para></listitem>
+<listitem><para>Right-click the pages folder and select
<emphasis><property>New > JSP File...</property></emphasis>
</para></listitem>
+ <listitem><para>For Name type in
<emphasis><property>inputname</property></emphasis> (the JSP
extension will be automatically added to the file), for Template select
<emphasis><property>StrutsForm</property></emphasis> and then
click on the <emphasis><property>Finish</property></emphasis>
button</para></listitem>
<listitem><para>Right-click the pages folder again and select
<emphasis><property>New > File >
JSP...</property></emphasis></para></listitem>
- <listitem><para>For Name type in greeting, for Template leave as Blank,
and then click on the
<emphasis><property>Finish</property></emphasis>
button</para></listitem>
+ <listitem><para>For Name type in
<emphasis><property>greeting</property></emphasis>, for Template
leave as Blank, and then click on the
<emphasis><property>Finish</property></emphasis>
button</para></listitem>
</itemizedlist>
<para>Just leave these files as is for now.</para>
</section>
@@ -109,8 +109,7 @@
<listitem><para>Click
<emphasis><property>Finish</property></emphasis></para></listitem>
</itemizedlist>
-<para>The
<emphasis><property>/greeting</property></emphasis> action should
appear in two places, in the diagram and also under the action-mappings node under the
struts-config.xml node in the Outline view. Also, note the
-asterisk to the right of the name, struts-config.xml, in the Outline view showing that
the file has been changed, but not saved to disk.</para>
+<para>The
<emphasis><property>/greeting</property></emphasis> action should
appear in four places, in the diagram, under the action-mappings node, under the
struts-config.xml node in Tree view, in Web Projects view and in the Outline view. Also,
note the asterisk to the right of the name, struts-config.xml, in the Outline view showing
that the file has been changed, but not saved to disk.</para>
</section>
<section id="CreatingaLink">
<title>Creating a Link</title>
@@ -319,7 +318,7 @@
<programlisting role="JAVA"><![CDATA[String name =
((GetNameForm)form).getName();
String greeting = "Hello, "+name+"!";
-((GetNameForm)form).setGreetName(greeting);
+((GetNameForm)form).setName(greeting);
return mapping.findForward(FORWARD_sayHello);
The final version of GreetingAction.java should look like this:
@@ -348,7 +347,7 @@
{
String name = ((GetNameForm)form).getName();
String greeting = "Hello, "+name+"!";
- ((GetNameForm)form).setGreetName(greeting);
+ ((GetNameForm)form).setName(greeting);
return mapping.findForward(FORWARD_sayHello);
}
}
Modified:
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/GettingStartedStrutsValidationExamples.xml
===================================================================
---
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/GettingStartedStrutsValidationExamples.xml 2007-11-06
13:23:47 UTC (rev 4734)
+++
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/GettingStartedStrutsValidationExamples.xml 2007-11-06
13:30:27 UTC (rev 4735)
@@ -41,20 +41,20 @@
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<emphasis><property> File > Save
</property></emphasis>All from the menu bar</para></listitem>
-<listitem><para>Select validation.xml under the
<emphasis><property>StrutsHello >
Validation</property></emphasis> node and double-click it to open it with the
JBoss Tools Validation Editor</para></listitem>
-<listitem><para>Expand the form-beans node under the
<emphasis><property>StrutsHello > Configuration > default >
struts-config.xml node.</property></emphasis> Then, drag the form bean
GetNameForm and drop it onto a formset (default) in the
<property>Validation</property> Editor</para></listitem>
-<listitem><para>In the Validation Editor, expand the formset node,
right-click GetNameForm, and select <emphasis><property>Add
Field...</property></emphasis> from the context
menu</para></listitem>
+<listitem><para>Select<emphasis><property> File > Save
</property></emphasis>All from the menu bar</para></listitem>
+<listitem><para>Select validation.xml under the
<emphasis><property>StrutsHello >
Validation</property></emphasis> node and double-click it to open it with the
JBoss Tools XML Editor</para></listitem>
+<listitem><para>Expand the form-beans node under the
<emphasis><property>StrutsHello > Configuration > default >
struts-config.xml node.</property></emphasis> Then, drag the form bean
GetNameForm and drop it onto a formset (default) in the
<property>XML</property> Editor</para></listitem>
+<listitem><para>In the Validation Editor, expand the formset node,
right-click GetNameForm, and select <emphasis><property>Create
Field...</property></emphasis> from the context
menu</para></listitem>
<listitem><para>Enter a 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
<emphasis><property>Change...</property></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><property>Add</property></emphasis></para></listitem>
+<listitem><para>In the displayed double list, select
<emphasis><property>required</property></emphasis> from the left
list and then click
<emphasis><property>Add</property></emphasis></para></listitem>
<listitem><para>Click
<emphasis><property>Ok</property></emphasis></para></listitem>
<listitem><para>Right-click name and select
<emphasis><property>Add Arg...</property></emphasis> from the
context menu</para></listitem>
<listitem><para>In the Add Arg dialog box, click on the
<emphasis><property>Change...</property></emphasis>button next to
the <emphasis><property>Key</property></emphasis>
field</para></listitem>
<listitem><para>In the Key dialog box that appears now, click on the
<emphasis><property>Add</property></emphasis>
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
<emphasis><property>Finish</property></emphasis>, then
<emphasis><property>Ok</property></emphasis>, and then
<emphasis><property>Ok</property></emphasis>
again</para></listitem>
-<listitem><para>Select <emphasis><property>File > Save
All</property></emphasis> from the menu bar</para></listitem>
+<listitem><para>Select <emphasis><property>File > Save
All</property></emphasis> from the menu bar</para></listitem>
</itemizedlist>
</section>