JBoss Tools SVN: r7260 - trunk/jsf/docs/jsf_tools_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-04-01 14:54:51 -0400 (Tue, 01 Apr 2008)
New Revision: 7260
Modified:
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/creation_and_registration.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_config_file.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 JSF guide. Scale parameter has been redefined in xml file
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/creation_and_registration.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/creation_and_registration.xml 2008-04-01 18:54:14 UTC (rev 7259)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/creation_and_registration.xml 2008-04-01 18:54:51 UTC (rev 7260)
@@ -36,7 +36,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/jsf_support/jsf_support_44.png"
+ fileref="images/jsf_support/jsf_support_44.png" scale="80"
/>
</imageobject>
</mediaobject>
@@ -88,7 +88,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/jsf_support/jsf_support_46.png"
+ fileref="images/jsf_support/jsf_support_46.png" scale="80"
/>
</imageobject>
</mediaobject>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_config_file.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_config_file.xml 2008-04-01 18:54:14 UTC (rev 7259)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_config_file.xml 2008-04-01 18:54:51 UTC (rev 7260)
@@ -60,7 +60,7 @@
<title>Outline View for Diagram</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_32.png" scale="60"/>
+ <imagedata fileref="images/jsf_support/jsf_support_32.png" scale="50"/>
</imageobject>
</mediaobject>
</figure>
@@ -192,7 +192,7 @@
<title>Outline View</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_31.png" scale="60"/>
+ <imagedata fileref="images/jsf_support/jsf_support_31.png" scale="50"/>
</imageobject>
</mediaobject>
</figure>
@@ -207,7 +207,7 @@
<title>Code Assist in Source View</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_28.png" scale="75"/>
+ <imagedata fileref="images/jsf_support/jsf_support_28.png" scale="65"/>
</imageobject>
</mediaobject>
</figure>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml 2008-04-01 18:54:14 UTC (rev 7259)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml 2008-04-01 18:54:51 UTC (rev 7260)
@@ -209,7 +209,7 @@
<imageobject>
<imagedata
fileref="images/jsf_support/jsf_support_4.png"
- scale="85"/>
+ scale="65"/>
</imageobject>
</mediaobject>
</figure>
@@ -229,7 +229,7 @@
<imageobject>
<imagedata
fileref="images/jsf_support/jsf_support_5.png"
- scale="70"/>
+ scale="60"/>
</imageobject>
</mediaobject>
</figure>
@@ -245,7 +245,7 @@
<imageobject>
<imagedata
fileref="images/jsf_support/jsf_support_6.png"
- scale="75"/>
+ scale="70"/>
</imageobject>
</mediaobject>
</figure>
16 years, 9 months
JBoss Tools SVN: r7259 - trunk/jsf/docs/jsf_tools_tutorial/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-04-01 14:54:14 -0400 (Tue, 01 Apr 2008)
New Revision: 7259
Modified:
trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsf_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 JSF tutorial. Scale parameter has been redefined in xml file
Modified: trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsf_application.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsf_application.xml 2008-04-01 18:21:35 UTC (rev 7258)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsf_application.xml 2008-04-01 18:54:14 UTC (rev 7259)
@@ -6,224 +6,425 @@
<keyword>JBoss Developer Studio</keyword>
<keyword>JSF application</keyword>
<keyword>Java</keyword>
- </keywordset>
+ </keywordset>
</chapterinfo>
-
- <title>Getting Started Guide for
-Creating a JSF Application</title>
-<section id="CreatingAJSFApplication">
-<?dbhtml filename="GettingStartedForCreatingAJSFApplication.html"?>
-<title>Creating a Simple JSF Application</title>
- <para>We are going to show you how to create a simple <property>JSF application </property>using the JBoss Developer Studio plug-in for Eclipse. The completed application will ask a user to enter a name and click
-a button. The resulting new page will display the familiar message, "Hello <name>!"
-This document will show you how to create such an application from the beginning, along
-the way demonstrating some of the powerful features of JBoss Developer Studio. You will design the
-JSF application and then run the application from inside JBoss Developer Studio.
-We'll assume that you have already launched Eclipse with JBoss Developer Studio installed and
-also that the JBoss Developer Studio perspective is the current one. (If not, make it active by
-selecting <emphasis><property>Window > Open Perspective > Web Development</property></emphasis> from the menu bar or by selecting <emphasis><property>Window > Open Perspective > Other...</property></emphasis> from the menu bar and then selecting <emphasis><property>Web Development</property></emphasis> from the Select Perspective dialog box.)</para>
-</section>
-<section id="SettingUpTheProject">
-<?dbhtml filename="SettingUpTheProject.html"?>
-<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 <emphasis><property>File > New > Project...</property></emphasis></para></listitem>
-<listitem><para>Select <emphasis><property>JBoss Tools Web > JSF > JSF Project</property></emphasis> in the New Project dialog box</para></listitem>
-<listitem><para>Click <emphasis><property>Next</property></emphasis></para></listitem>
-<listitem><para>Enter "jsfHello" as the project name.</para></listitem>
- <listitem><para>Leave everything else as is, and click <emphasis><property>Finish</property></emphasis></para></listitem>
-</itemizedlist>
-</section>
-<section id="TheJSFApplicationConfigurationFile">
-<?dbhtml filename="TheJSFApplicationConfigurationFile.html"?>
-<title>The JSF Application Configuration File</title>
-<para>A jsfHello node should appear in the upper-left Package Explorer view.</para>
- <figure>
- <title>Package Explorer View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-<itemizedlist continuation="continues">
- <listitem><para>Click the plus sign next to <emphasis><property>jsfHello</property></emphasis> to reveal the child nodes</para></listitem>
- <listitem><para>Click the plus sign next to <emphasis><property>WebContent</property></emphasis> under jsfHello</para></listitem>
- <listitem><para>Click the plus sign next to <emphasis><property>WEB-INF</property></emphasis> under WebContent</para></listitem>
+ <title>Getting Started Guide for Creating a JSF Application</title>
+ <section id="CreatingAJSFApplication">
+ <?dbhtml filename="GettingStartedForCreatingAJSFApplication.html"?>
+ <title>Creating a Simple JSF Application</title>
+ <para>We are going to show you how to create a simple <property>JSF application
+ </property>using the JBoss Developer Studio plug-in for Eclipse. The completed
+ application will ask a user to enter a name and click a button. The resulting new page
+ will display the familiar message, "Hello <name>!" This
+ document will show you how to create such an application from the beginning, along the
+ way demonstrating some of the powerful features of JBoss Developer Studio. You will
+ design the JSF application and then run the application from inside JBoss Developer
+ Studio. We'll assume that you have already launched Eclipse with JBoss
+ Developer Studio installed and also that the JBoss Developer Studio perspective is the
+ current one. (If not, make it active by selecting <emphasis>
+ <property>Window > Open Perspective > Web Development</property>
+ </emphasis> from the menu bar or by selecting <emphasis>
+ <property>Window > Open Perspective > Other...</property>
+ </emphasis> from the menu bar and then selecting <emphasis>
+ <property>Web Development</property>
+ </emphasis> from the Select Perspective dialog box.)</para>
+ </section>
+ <section id="SettingUpTheProject">
+ <?dbhtml filename="SettingUpTheProject.html"?>
+ <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 <emphasis>
+ <property>File > New > Project...</property>
+ </emphasis></para>
+ </listitem>
+ <listitem>
+ <para>Select <emphasis>
+ <property>JBoss Tools Web > JSF > JSF Project</property>
+ </emphasis> in the New Project dialog box</para>
+ </listitem>
+ <listitem>
+ <para>Click <emphasis>
+ <property>Next</property>
+ </emphasis></para>
+ </listitem>
+ <listitem>
+ <para>Enter "jsfHello" as the project name.</para>
+ </listitem>
+ <listitem>
+ <para>Leave everything else as is, and click <emphasis>
+ <property>Finish</property>
+ </emphasis></para>
+ </listitem>
- <listitem><para>Then double-click on the <property>faces-config.xml</property> node to display the JSF application configuration file editor</para></listitem>
-</itemizedlist>
-<figure>
- <title>Configuration File Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_2.png"/>
- </imageobject>
-</mediaobject>
-</figure>
+ </itemizedlist>
+ </section>
+ <section id="TheJSFApplicationConfigurationFile">
+ <?dbhtml filename="TheJSFApplicationConfigurationFile.html"?>
+ <title>The JSF Application Configuration File</title>
+ <para>A jsfHello node should appear in the upper-left Package Explorer view.</para>
+ <figure>
+ <title>Package Explorer View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Click the plus sign next to <emphasis>
+ <property>jsfHello</property>
+ </emphasis> to reveal the child nodes</para>
+ </listitem>
+ <listitem>
+ <para>Click the plus sign next to <emphasis>
+ <property>WebContent</property>
+ </emphasis> under jsfHello</para>
+ </listitem>
+ <listitem>
+ <para>Click the plus sign next to <emphasis>
+ <property>WEB-INF</property>
+ </emphasis> under WebContent</para>
+ </listitem>
-</section>
-<section id="AddingNavigationToTheApplication">
-<?dbhtml filename="AddingNavigationToTheApplication.html"?>
-<title>Adding Navigation to the Application</title>
-<para>In our simple application, the flow is defined as a single navigation rule connecting two
-views (presentation files). At this point, we will create the placeholders for the two JSP presentation
-files and then the navigation rule to connect them as views. Later, we will complete
-the coding for the JSP presentation files. With JBoss Developer Studio, we can do all of this in the
-Diagram mode of the configuration file editor.</para>
-<section id="AddingTwoViews(JSPPages)">
-<?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 <emphasis><property>New View...</property></emphasis> from the pop-up
-menu</para></listitem>
- <listitem><para>In the dialog box, type <emphasis><property>pages/inputname</property></emphasis> as the value for From-view-id</para></listitem>
-<listitem><para>Leave everything else as is</para></listitem>
- <listitem><para>Click <emphasis><property>Finish</property></emphasis></para>
- <para>If you look in the Package Explorer view you should see a <emphasis><property>pages</property></emphasis> 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 <emphasis><property>New View...</property></emphasis> from the pop-up
-menu</para></listitem>
-<listitem><para>In the dialog box, type <emphasis><property>pages/greeting</property></emphasis> as the value for From-view-id</para></listitem>
-<listitem><para>Leave everything else as is</para></listitem>
- <listitem><para>Click <emphasis><property>Finish</property></emphasis></para></listitem>
-</itemizedlist>
+ <listitem>
+ <para>Then double-click on the <property>faces-config.xml</property> node to display
+ the JSF application configuration file editor</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Configuration File Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <section id="CreatingTheTransition(NavigationRule)">
-<?dbhtml filename="CreatingTheTransition(NavigationRule).html"?>
-<title>Creating the Transition (Navigation Rule)</title>
-<itemizedlist continuation="continues">
-<listitem><para>In the diagram, select the connection icon third from the top along the upper left
-side of the diagram</para></listitem>
-</itemizedlist>
-<figure>
- <title>Connection Icon</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_3.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>to get an arrow cursor with a two-pronged plug at the arrow's bottom.</para>
-<itemizedlist continuation="continues">
-<listitem><para>Click on the <emphasis><property>pages/inputname</property></emphasis> page icon and then click on the <emphasis><property>pages/greeting</property></emphasis> page icon</para></listitem>
+ </section>
+ <section id="AddingNavigationToTheApplication">
+ <?dbhtml filename="AddingNavigationToTheApplication.html"?>
+ <title>Adding Navigation to the Application</title>
+ <para>In our simple application, the flow is defined as a single navigation rule connecting
+ two views (presentation files). At this point, we will create the placeholders for the
+ two JSP presentation files and then the navigation rule to connect them as views. Later,
+ we will complete the coding for the JSP presentation files. With JBoss Developer Studio,
+ we can do all of this in the Diagram mode of the configuration file editor.</para>
+ <section id="AddingTwoViews(JSPPages)">
+ <?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 <emphasis>
+ <property>New View...</property>
+ </emphasis> from the pop-up menu</para>
+ </listitem>
+ <listitem>
+ <para>In the dialog box, type <emphasis>
+ <property>pages/inputname</property>
+ </emphasis> as the value for From-view-id</para>
+ </listitem>
+ <listitem>
+ <para>Leave everything else as is</para>
+ </listitem>
+ <listitem>
+ <para>Click <emphasis>
+ <property>Finish</property>
+ </emphasis></para>
+ <para>If you look in the Package Explorer view you should see a <emphasis>
+ <property>pages</property>
+ </emphasis> 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 <emphasis>
+ <property>New View...</property>
+ </emphasis> from the pop-up menu</para>
+ </listitem>
+ <listitem>
+ <para>In the dialog box, type <emphasis>
+ <property>pages/greeting</property>
+ </emphasis> as the value for From-view-id</para>
+ </listitem>
+ <listitem>
+ <para>Leave everything else as is</para>
+ </listitem>
+ <listitem>
+ <para>Click <emphasis>
+ <property>Finish</property>
+ </emphasis></para>
+ </listitem>
+ </itemizedlist>
-</itemizedlist>
-<para>A transition should appear between the two icons.</para>
-<figure>
-<title>Transition Between Two Icons</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_4.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<itemizedlist continuation="continues">
-<listitem><para>Select <emphasis><property>File > Save</property></emphasis> from the menu bar</para></listitem>
-</itemizedlist>
-</section>
-</section>
-</section>
-<section id="AddingAManagedBeanToTheApplication">
-<?dbhtml filename="AddingAManagedBeanToTheApplication.html"?>
-<title>Adding a Managed Bean to the Application</title>
-<para>To store data in the application, we will use a managed bean.</para>
-<itemizedlist continuation="continues">
- <listitem><para>Click on the <emphasis><property>Tree</property></emphasis> tab at the bottom of the editing window</para></listitem>
- <listitem><para>Select the <emphasis><property>Managed Beans</property></emphasis> node and then click the <emphasis><property>Add...</property></emphasis> button displayed along
-the right side of the editor window</para></listitem>
- <listitem><para>Type in <emphasis><property>jsfHello.PersonBean</property></emphasis> for Class and <emphasis><property>personBean</property></emphasis> for Name. Leave
-Scope as is and Generate Source Code as is (checked)</para></listitem>
- <listitem><para>Click <emphasis><property>Finish</property></emphasis></para></listitem>
- <listitem><para>personBean will now be selected and three sections of information: <emphasis><property>Managed
- Bean</property></emphasis>, <emphasis><property>Properties</property></emphasis>, and <emphasis><property>Advanced</property></emphasis>, will be displayed about it. Under the Properties
-section, click the <emphasis><property>Add...</property></emphasis> button</para></listitem>
- <listitem><para>Type in <emphasis><property>name</property></emphasis> for Property-Name. Leave everything else as is. (When Property-
-Class is not filled in, String is the assumed type)</para></listitem>
- <listitem><para>Click <emphasis><property>Finish</property></emphasis></para></listitem>
- <listitem><para>Select the <emphasis><property>personBean</property></emphasis> node in the tree</para></listitem>
-</itemizedlist>
-<para>You should see this now:</para>
-<figure>
-<title>Tree View in Config Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_5.png" scale="85"/>
- </imageobject>
-</mediaobject>
-</figure>
-<itemizedlist continuation="continues">
-<listitem><para>Select <emphasis><property>File > Save</property></emphasis> from the menu bar</para></listitem>
-</itemizedlist>
- <para>You have now registered the <emphasis><property>managed bean</property></emphasis> and created a <emphasis><property>stub-coded class</property></emphasis> file for it.</para>
-</section>
-<section id="EditingTheJSPViewFiles">
-<?dbhtml filename="EditingTheJSPViewFiles.html"?>
-<title>Editing the JSP View Files</title>
+ <section id="CreatingTheTransition(NavigationRule)">
+ <?dbhtml filename="CreatingTheTransition(NavigationRule).html"?>
+ <title>Creating the Transition (Navigation Rule)</title>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>In the diagram, select the connection icon third from the top along
+ the upper left side of the diagram</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Connection Icon</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>to get an arrow cursor with a two-pronged plug at the arrow's bottom.</para>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Click on the <emphasis>
+ <property>pages/inputname</property>
+ </emphasis> page icon and then click on the <emphasis>
+ <property>pages/greeting</property>
+ </emphasis> page icon</para>
+ </listitem>
-<para>Now we will finish editing the JSP files for our two "views" using JSP Visual Page.</para>
-<section id="Inputname.jsp">
-<title>inputname.jsp</title>
-<itemizedlist continuation="continues">
- <listitem><para>Click on the <emphasis><property>Diagram</property></emphasis> tab for the configuration file editor</para></listitem>
-<listitem><para>Open the editor for this first JSP file by double-clicking on the <emphasis><property>/pages/inputname.
-jsp</property></emphasis> icon</para></listitem>
-</itemizedlist>
+ </itemizedlist>
+ <para>A transition should appear between the two icons.</para>
+ <figure>
+ <title>Transition Between Two Icons</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Select <emphasis>
+ <property>File > Save</property>
+ </emphasis> from the menu bar</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ </section>
+ </section>
+ <section id="AddingAManagedBeanToTheApplication">
+ <?dbhtml filename="AddingAManagedBeanToTheApplication.html"?>
+ <title>Adding a Managed Bean to the Application</title>
+ <para>To store data in the application, we will use a managed bean.</para>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Click on the <emphasis>
+ <property>Tree</property>
+ </emphasis> tab at the bottom of the editing window</para>
+ </listitem>
+ <listitem>
+ <para>Select the <emphasis>
+ <property>Managed Beans</property>
+ </emphasis> node and then click the <emphasis>
+ <property>Add...</property>
+ </emphasis> button displayed along the right side of the editor window</para>
+ </listitem>
+ <listitem>
+ <para>Type in <emphasis>
+ <property>jsfHello.PersonBean</property>
+ </emphasis> for Class and <emphasis>
+ <property>personBean</property>
+ </emphasis> for Name. Leave Scope as is and Generate Source Code as is
+ (checked)</para>
+ </listitem>
+ <listitem>
+ <para>Click <emphasis>
+ <property>Finish</property>
+ </emphasis></para>
+ </listitem>
+ <listitem>
+ <para>personBean will now be selected and three sections of information: <emphasis>
+ <property>Managed Bean</property>
+ </emphasis>, <emphasis>
+ <property>Properties</property>
+ </emphasis>, and <emphasis>
+ <property>Advanced</property>
+ </emphasis>, will be displayed about it. Under the Properties section, click the <emphasis>
+ <property>Add...</property>
+ </emphasis> button</para>
+ </listitem>
+ <listitem>
+ <para>Type in <emphasis>
+ <property>name</property>
+ </emphasis> for Property-Name. Leave everything else as is. (When Property-
+ Class is not filled in, String is the assumed type)</para>
+ </listitem>
+ <listitem>
+ <para>Click <emphasis>
+ <property>Finish</property>
+ </emphasis></para>
+ </listitem>
+ <listitem>
+ <para>Select the <emphasis>
+ <property>personBean</property>
+ </emphasis> node in the tree</para>
+ </listitem>
+ </itemizedlist>
+ <para>You should see this now:</para>
+ <figure>
+ <title>Tree View in Config Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Select <emphasis>
+ <property>File > Save</property>
+ </emphasis> from the menu bar</para>
+ </listitem>
+ </itemizedlist>
+ <para>You have now registered the <emphasis>
+ <property>managed bean</property>
+ </emphasis> and created a <emphasis>
+ <property>stub-coded class</property>
+ </emphasis> file for it.</para>
+ </section>
+ <section id="EditingTheJSPViewFiles">
+ <?dbhtml filename="EditingTheJSPViewFiles.html"?>
+ <title>Editing the JSP View Files</title>
-<para>The Visual Page Editor will open in a screen split between source code along the top and
-a WYSIWIG view along the bottom:</para>
-<figure>
- <title>Visual Page Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_6.png" />
- </imageobject>
-</mediaobject>
-</figure>
- <para>Some JSF code is already in the file, because we have chosen a template to create a page.</para>
-<itemizedlist continuation="continues">
- <listitem><para>Select the <emphasis><property>Visual</property></emphasis> tab, so we can work with the editor completely in its WYSIWYG
-mode</para></listitem>
- <listitem><para>To the right of the editor, in the JBoss Tools Palette, expand the <emphasis><property>JSF HTML</property></emphasis> palette folder
-by selecting it</para></listitem>
-</itemizedlist>
-<figure>
- <title>JBoss Tools Palette</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_7.png" />
- </imageobject>
-</mediaobject>
-</figure>
-<itemizedlist continuation="continues">
- <listitem><para>Click on <emphasis><property>form</property></emphasis> within this folder, drag the cursor over to the editor,
-and drop it inside the red box in the editor</para></listitem>
+ <para>Now we will finish editing the JSP files for our two "views" using
+ JSP Visual Page.</para>
+ <section id="Inputname.jsp">
+ <title>inputname.jsp</title>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Click on the <emphasis>
+ <property>Diagram</property>
+ </emphasis> tab for the configuration file editor</para>
+ </listitem>
+ <listitem>
+ <para>Open the editor for this first JSP file by double-clicking on the <emphasis>
+ <property>/pages/inputname. jsp</property>
+ </emphasis> icon</para>
+ </listitem>
+ </itemizedlist>
-<listitem><para>Another red box will appear inside the first red box</para></listitem>
-
-<listitem><para>Right-click on the innermost box and select <emphasis role="bold"><property><h:form></property></emphasis> Attributes from the menu</para></listitem>
- <listitem><para>In the value field next to id, type <emphasis><property>greeting</property></emphasis> and click on the <emphasis><property>Close</property></emphasis> button</para></listitem>
-<listitem><para>Type "Please enter name:" inside the boxes</para></listitem>
- <listitem><para>Select <emphasis><property>inputText</property></emphasis> 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 <emphasis><property>value</property></emphasis> field next to the value attribute and click
- on the <property>... </property>button</para></listitem>
- <listitem><para>Then, select the <emphasis><property>Managed Beans > personBean > name</property></emphasis> node and click on the <emphasis><property>Ok</property></emphasis>
-button</para></listitem>
- <listitem><para>Back in the attributes dialog, select the <emphasis><property>Advanced</property></emphasis> tab, type in <emphasis><property>name</property></emphasis> as the value
- for the <emphasis role="italic"><property>"id"</property></emphasis> attribute, and then click on the <emphasis><property>Finish</property></emphasis> button</para></listitem>'
- <listitem><para>Select <emphasis><property>commandButton</property></emphasis> 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 <emphasis role="italic"><property>"action"</property></emphasis> attribute and click on the <property>... </property>button</para></listitem>
- <listitem><para>Then, select the <emphasis><property>View Actions > greeting</property></emphasis> node and click on the <emphasis><property>OK</property></emphasis> 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 <emphasis><property>Finish</property></emphasis> button</para></listitem>
-</itemizedlist>
-<para>The source coding should be something like this now:</para>
-<programlisting role="XML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+ <para>The Visual Page Editor will open in a screen split between source code along the
+ top and a WYSIWIG view along the bottom:</para>
+ <figure>
+ <title>Visual Page Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Some JSF code is already in the file, because we have chosen a template to create
+ a page.</para>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Select the <emphasis>
+ <property>Visual</property>
+ </emphasis> tab, so we can work with the editor completely in its WYSIWYG
+ mode</para>
+ </listitem>
+ <listitem>
+ <para>To the right of the editor, in the JBoss Tools Palette, expand the <emphasis>
+ <property>JSF HTML</property>
+ </emphasis> palette folder by selecting it</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>JBoss Tools Palette</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Click on <emphasis>
+ <property>form</property>
+ </emphasis> within this folder, drag the cursor over to the editor, and drop
+ it inside the red box in the editor</para>
+ </listitem>
+ <listitem>
+ <para>Another red box will appear inside the first red box</para>
+ </listitem>
+ <listitem>
+ <para>Right-click on the innermost box and select <emphasis role="bold">
+ <property><h:form></property>
+ </emphasis> Attributes from the menu</para>
+ </listitem>
+ <listitem>
+ <para>In the value field next to id, type <emphasis>
+ <property>greeting</property>
+ </emphasis> and click on the <emphasis>
+ <property>Close</property>
+ </emphasis> button</para>
+ </listitem>
+ <listitem>
+ <para>Type "Please enter name:" inside the boxes</para>
+ </listitem>
+ <listitem>
+ <para>Select <emphasis>
+ <property>inputText</property>
+ </emphasis> 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 <emphasis>
+ <property>value</property>
+ </emphasis> field next to the value attribute and click on the <property>...
+ </property>button</para>
+ </listitem>
+ <listitem>
+ <para>Then, select the <emphasis>
+ <property>Managed Beans > personBean > name</property>
+ </emphasis> node and click on the <emphasis>
+ <property>Ok</property>
+ </emphasis> button</para>
+ </listitem>
+ <listitem>
+ <para>Back in the attributes dialog, select the <emphasis>
+ <property>Advanced</property>
+ </emphasis> tab, type in <emphasis>
+ <property>name</property>
+ </emphasis> as the value for the <emphasis role="italic">
+ <property>"id"</property>
+ </emphasis> attribute, and then click on the <emphasis>
+ <property>Finish</property>
+ </emphasis> button</para>
+ </listitem>' <listitem>
+ <para>Select <emphasis>
+ <property>commandButton</property>
+ </emphasis> 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 <emphasis
+ role="italic">
+ <property>"action"</property>
+ </emphasis> attribute and click on the <property>...
+ </property>button</para>
+ </listitem>
+ <listitem>
+ <para>Then, select the <emphasis>
+ <property>View Actions > greeting</property>
+ </emphasis> node and click on the <emphasis>
+ <property>OK</property>
+ </emphasis> 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 <emphasis>
+ <property>Finish</property>
+ </emphasis> button</para>
+ </listitem>
+ </itemizedlist>
+ <para>The source coding should be something like this now:</para>
+ <programlisting role="XML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
@@ -240,38 +441,77 @@
</body>
</html>
]]></programlisting>
-<para>The editor should look like this:</para>
-<figure>
- <title>Visual Page Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_8.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<itemizedlist continuation="continues">
-<listitem><para>Save the file by selecting <emphasis><property>File > Save</property></emphasis> from the menu bar</para></listitem>
-</itemizedlist>
-</section>
-<section id="Greeting.jsp">
-<title>greeting.jsp</title>
-<itemizedlist continuation="continues">
- <listitem><para>Click on the <emphasis><property>faces-config.xml</property></emphasis> tab to bring the diagram back</para></listitem>
-<listitem><para>Open the editor for the second file by double-clicking on the <emphasis><property>/pages/greeting.jsp</property></emphasis>
-icon</para></listitem>
- <listitem><para>Select the <emphasis><property>Visual</property></emphasis> tab, so we can work with the editor completely in its WYSIWYG
-mode</para></listitem>
-<listitem><para>Type "Hello "(note space after Hello) into the box</para></listitem>
- <listitem><para>Select <emphasis><property>outputText</property></emphasis> within the JSF HTML palette folder and drag it into the innermost
-box in the editor after "Hello"</para></listitem>
- <listitem><para>In the attributes dialog, click in <emphasis><property>value</property></emphasis> field next to the value attribute and click on
- the <property>...</property> (Browse) button</para></listitem>
- <listitem><para>Then, select the <emphasis><property>Managed Beans > personBean > name</property></emphasis> node, click on the <emphasis><property>Ok</property></emphasis> button,
- and then click on the <emphasis><property>Finish</property></emphasis> button</para></listitem>
- <listitem><para>Right after the output field, type an <emphasis><property>exclamation point</property></emphasis> (<emphasis><property>!</property></emphasis>)</para></listitem>
-</itemizedlist>
-<para>The source coding should be something like this now:</para>
-<programlisting role="XML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+ <para>The editor should look like this:</para>
+ <figure>
+ <title>Visual Page Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Save the file by selecting <emphasis>
+ <property>File > Save</property>
+ </emphasis> from the menu bar</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section id="Greeting.jsp">
+ <title>greeting.jsp</title>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Click on the <emphasis>
+ <property>faces-config.xml</property>
+ </emphasis> tab to bring the diagram back</para>
+ </listitem>
+ <listitem>
+ <para>Open the editor for the second file by double-clicking on the <emphasis>
+ <property>/pages/greeting.jsp</property>
+ </emphasis> icon</para>
+ </listitem>
+ <listitem>
+ <para>Select the <emphasis>
+ <property>Visual</property>
+ </emphasis> tab, so we can work with the editor completely in its WYSIWYG
+ mode</para>
+ </listitem>
+ <listitem>
+ <para>Type "Hello "(note space after Hello) into the
+ box</para>
+ </listitem>
+ <listitem>
+ <para>Select <emphasis>
+ <property>outputText</property>
+ </emphasis> within the JSF HTML palette folder and drag it into the
+ innermost box in the editor after "Hello"</para>
+ </listitem>
+ <listitem>
+ <para>In the attributes dialog, click in <emphasis>
+ <property>value</property>
+ </emphasis> field next to the value attribute and click on the
+ <property>...</property> (Browse) button</para>
+ </listitem>
+ <listitem>
+ <para>Then, select the <emphasis>
+ <property>Managed Beans > personBean > name</property>
+ </emphasis> node, click on the <emphasis>
+ <property>Ok</property>
+ </emphasis> button, and then click on the <emphasis>
+ <property>Finish</property>
+ </emphasis> button</para>
+ </listitem>
+ <listitem>
+ <para>Right after the output field, type an <emphasis>
+ <property>exclamation point</property>
+ </emphasis> (<emphasis>
+ <property>!</property>
+ </emphasis>)</para>
+ </listitem>
+ </itemizedlist>
+ <para>The source coding should be something like this now:</para>
+ <programlisting role="XML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
@@ -284,27 +524,46 @@
</body>
</html>
]]></programlisting>
-<itemizedlist continuation="continues">
-<listitem><para>Save the file</para></listitem></itemizedlist>
-</section>
-</section>
-<section id="CreatingTheStartPage">
-<?dbhtml filename="CreatingTheStartPage.html"?>
-<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 <emphasis><property>jsfHello > WebContent</property></emphasis> and select
- <emphasis><property>New > JSP File</property></emphasis></para></listitem>
- <listitem><para>For Name type in <emphasis><property>index</property></emphasis>, for Template select <emphasis><property>JSPRedirect</property></emphasis> and click <emphasis><property>Finish</property></emphasis></para></listitem>
-</itemizedlist>
-<para>A JSP editor will open up on the newly created file.</para>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Save the file</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ </section>
+ <section id="CreatingTheStartPage">
+ <?dbhtml filename="CreatingTheStartPage.html"?>
+ <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 <emphasis>
+ <property>jsfHello > WebContent</property>
+ </emphasis> and select <emphasis>
+ <property>New > JSP File</property>
+ </emphasis></para>
+ </listitem>
+ <listitem>
+ <para>For Name type in <emphasis>
+ <property>index</property>
+ </emphasis>, for Template select <emphasis>
+ <property>JSPRedirect</property>
+ </emphasis> and click <emphasis>
+ <property>Finish</property>
+ </emphasis></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 <emphasis><property>/pages/inputname.jsf</property></emphasis> in between
-the quotes for the page attribute</para></listitem>
-</itemizedlist>
-<para>The source coding should look like this now:</para>
-<programlisting role="XML"><![CDATA[<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>In the Source part of the split screen, type <emphasis>
+ <property>/pages/inputname.jsf</property>
+ </emphasis> in between the quotes for the page attribute</para>
+ </listitem>
+ </itemizedlist>
+ <para>The source coding should look like this now:</para>
+ <programlisting role="XML"><![CDATA[<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head></head>
<body>
@@ -313,53 +572,81 @@
</html>
]]></programlisting>
-<para>Note the <emphasis><property>.jsf</property></emphasis> extension for the file name. This is a mapping defined in the web.xml file
-for the project for invoking <property>JavaServer Faces</property> when you run the application.</para>
-<itemizedlist continuation="continues">
-<listitem><para>Select<emphasis><property> File > Save</property></emphasis> from the menu bar</para></listitem>
-</itemizedlist>
-</section>
-<section id="RunningTheApplicationJSF">
-<?dbhtml filename="RunningTheApplicationJSF.html"?>
-<title>Running the Application</title>
-<para>Everything is now ready for running our application without having to leave JBoss Developer Studio
-by using the JBoss engine that comes with the JBoss Developer Studio plug-in. For controlling JBoss server within JBoss Developer Studio there is JBoss Server view:</para>
-<figure>
- <title>JBoss Server View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_9.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<itemizedlist continuation="continues">
-<listitem><para>Start up JBoss by clicking on the icon in JBoss Server view. (If JBoss is already running,
-stop it by clicking on the red icon and then start it again. Remember, the JSF run-time requires restarting the servlet engine when any changes have been made.) After the messages in the Console tabbed view stop scrolling, JBoss is available</para></listitem>
+ <para>Note the <emphasis>
+ <property>.jsf</property>
+ </emphasis> extension for the file name. This is a mapping defined in the web.xml file
+ for the project for invoking <property>JavaServer Faces</property> when you run the
+ application.</para>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Select<emphasis>
+ <property> File > Save</property>
+ </emphasis> from the menu bar</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section id="RunningTheApplicationJSF">
+ <?dbhtml filename="RunningTheApplicationJSF.html"?>
+ <title>Running the Application</title>
+ <para>Everything is now ready for running our application without having to leave JBoss
+ Developer Studio by using the JBoss engine that comes with the JBoss Developer Studio
+ plug-in. For controlling JBoss server within JBoss Developer Studio there is JBoss
+ Server view:</para>
+ <figure>
+ <title>JBoss Server View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Start up JBoss by clicking on the icon in JBoss Server view. (If JBoss is
+ already running, stop it by clicking on the red icon and then start it again.
+ Remember, the JSF run-time requires restarting the servlet engine when any
+ changes have been made.) After the messages in the Console tabbed view stop
+ scrolling, JBoss is available</para>
+ </listitem>
-<listitem><para>Click the Run icon or right click your project folder and select <emphasis><property>Run As > Run on Server</property></emphasis>:</para></listitem>
-</itemizedlist>
-<figure>
- <title>Run Icon</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_10.png"/>
- </imageobject>
-</mediaobject>
-</figure>
- <para>This is the equivalent of launching the browser and typing <emphasis><property>http://localhost:8080/jsfHello</property></emphasis> into your
- browser. Our <property>JSF application</property> should now appear.</para>
- </section>
-
- <section id="OtherRelevantResourcesOnTheTopic3">
-<?dbhtml filename="OtherRelevantResourcesOnTheTopic3.html"?>
-<title>Other relevant resources on the topic</title>
-<para>JSF on Sun: <ulink url="http://java.sun.com/javaee/javaserverfaces/">JavaServer Faces Technology</ulink></para>
-<para>Core JSF: <ulink url="http://www.horstmann.com/corejsf/">Core JavaServer Faces</ulink></para>
-<para>API: <ulink url="http://java.sun.com/javaee/javaserverfaces/1.1/docs/api/index.html">JSF API</ulink></para>
-<para>JSF Tags: <ulink url="http://www.horstmann.com/corejsf/jsf-tags.html">JSF Core Tags</ulink></para>
-<para>HTML Tags Reference: <ulink url="http://www.exadel.com/tutorial/jsf/jsftags-guide.html">JSF HTML Tags Reference</ulink></para>
-<para>JSF Central: <ulink url="http://www.jsfcentral.com/">JSF Central - Your JavaServer Faces Community</ulink></para>
-<para>FAQ: <ulink url="http://wiki.java.net/bin/view/Projects/JavaServerFacesSpecFaq">JSF FAQ</ulink></para>
-<para>Download: <ulink url="http://java.sun.com/javaee/javaserverfaces/download.html">JavaServer Faces Technology - Download</ulink></para>
-</section>
- </chapter>
\ No newline at end of file
+ <listitem>
+ <para>Click the Run icon or right click your project folder and select <emphasis>
+ <property>Run As > Run on Server</property>
+ </emphasis>:</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Run Icon</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>This is the equivalent of launching the browser and typing <emphasis>
+ <property>http://localhost:8080/jsfHello</property>
+ </emphasis> into your browser. Our <property>JSF application</property> should now
+ appear.</para>
+ </section>
+
+ <section id="OtherRelevantResourcesOnTheTopic3">
+ <?dbhtml filename="OtherRelevantResourcesOnTheTopic3.html"?>
+ <title>Other relevant resources on the topic</title>
+ <para>JSF on Sun: <ulink url="http://java.sun.com/javaee/javaserverfaces/">JavaServer Faces
+ Technology</ulink></para>
+ <para>Core JSF: <ulink url="http://www.horstmann.com/corejsf/">Core JavaServer Faces</ulink></para>
+ <para>API: <ulink url="http://java.sun.com/javaee/javaserverfaces/1.1/docs/api/index.html"
+ >JSF API</ulink></para>
+ <para>JSF Tags: <ulink url="http://www.horstmann.com/corejsf/jsf-tags.html">JSF Core
+ Tags</ulink></para>
+ <para>HTML Tags Reference: <ulink
+ url="http://www.exadel.com/tutorial/jsf/jsftags-guide.html">JSF HTML Tags
+ Reference</ulink></para>
+ <para>JSF Central: <ulink url="http://www.jsfcentral.com/">JSF Central - Your JavaServer
+ Faces Community</ulink></para>
+ <para>FAQ: <ulink url="http://wiki.java.net/bin/view/Projects/JavaServerFacesSpecFaq">JSF
+ FAQ</ulink></para>
+ <para>Download: <ulink url="http://java.sun.com/javaee/javaserverfaces/download.html"
+ >JavaServer Faces Technology - Download</ulink></para>
+ </section>
+</chapter>
16 years, 9 months
JBoss Tools SVN: r7258 - trunk/struts/docs/struts_tools_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-04-01 14:21:35 -0400 (Tue, 01 Apr 2008)
New Revision: 7258
Modified:
trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_tools.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 Struts guide. Scale parameter has been redefined in xml file
Modified: trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_tools.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_tools.xml 2008-04-01 18:08:34 UTC (rev 7257)
+++ trunk/struts/docs/struts_tools_ref_guide/en/modules/struts_tools.xml 2008-04-01 18:21:35 UTC (rev 7258)
@@ -1,1039 +1,944 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="struts_tools">
- <?dbhtml filename="struts_tools.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Developer Studio</keyword>
- <keyword>Eclipse</keyword>
- <keyword>Struts Tools</keyword>
- <keyword>Java</keyword>
- <keyword>JBoss</keyword>
- </keywordset>
- </chapterinfo>
-
- <title>Struts support</title>
+ <?dbhtml filename="struts_tools.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Struts Tools</keyword>
+ <keyword>Java</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
- <section id="WorkingWithStrutsProjects866">
+ <title>Struts support</title>
- <title>Working with Projects</title>
+ <section id="WorkingWithStrutsProjects866">
- <para>JBoss Developer Studio provides the following functionality when
- working with Struts:</para>
+ <title>Working with Projects</title>
+ <para>JBoss Developer Studio provides the following functionality when working with
+ Struts:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Create new <property>Struts projects</property></para>
+ </listitem>
+ <listitem>
+ <para>Import (open) existing Struts projects. You can import any
+ project structure</para>
+ </listitem>
+ <listitem>
+ <para>Add <property>Struts capabilities</property> to any existing
+ Eclipse project</para>
+ </listitem>
+ <listitem>
+ <para>Import and add Struts capabilities to any existing project
+ created outside Eclipse.</para>
+ </listitem>
+ </itemizedlist>
+
+
+ <section id="CreatingANewStrutsProjec745t">
+
+ <title>Creating a New Struts Project</title>
+
+
+ <para>JBoss Developer Studio includes a New Struts Project Wizard that
+ radically simplifies the process for getting started with a new
+ Struts project. You just need to follow these steps:</para>
<itemizedlist>
<listitem>
- <para>Create new <property>Struts projects</property></para>
+ <para>Select<emphasis>
+ <property>File > New > Project...</property>
+ </emphasis> from the menu bar. Then, select <emphasis>
+ <property>JBoss Tools Web > Struts > Struts
+ Project</property>
+ </emphasis> in this dialog box. Click <emphasis>
+ <property>Next</property>:
+ </emphasis></para>
</listitem>
+ </itemizedlist>
+ <figure>
+ <title>Selecting Struts Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist>
<listitem>
- <para>Import (open) existing Struts projects. You can import
- any project structure</para>
+ <para>On this form, provide the <property>Project
+ Name</property>. You can also select where to create
+ the project or use the default path.</para>
+ <para>Next to <property>Struts Environment</property> set
+ which Struts version to use.</para>
</listitem>
- <listitem>
- <para>Add <property>Struts capabilities</property> to any
- existing Eclipse project</para>
- </listitem>
- <listitem>
- <para>Import and add Struts capabilities to any existing
- project created outside Eclipse.</para>
- </listitem>
</itemizedlist>
+ <figure>
+ <title>Creating Struts Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <section id="CreatingANewStrutsProjec745t">
+ <tip>
+ <title>Tip:</title>
+ <para>Don't put spaces in project names since some OS could
+ experience problems with their processing and searching
+ these files.</para>
+ </tip>
- <title>Creating a New Struts Project</title>
+ <para>You can select the KickStart template, then the project created will
+ include a simple Hello World type application that is ready to run.</para>
+ <figure>
+ <title>Choosing Struts Template </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_3_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>JBoss Developer Studio includes a New Struts Project Wizard
- that radically simplifies the process for getting started
- with a new Struts project. You just need to follow these
- steps:</para>
- <itemizedlist>
- <listitem>
- <para>Select<emphasis>
- <property>File > New >
- Project...</property>
- </emphasis> from the menu bar. Then, select <emphasis>
- <property>JBoss Tools Web > Struts >
- Struts Project</property>
- </emphasis> in this dialog box. Click <emphasis>
- <property>Next</property>:
- </emphasis></para>
- </listitem>
- </itemizedlist>
- <figure>
- <title>Selecting Struts Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_2.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- <itemizedlist>
- <listitem>
- <para>On this form, provide the <property>Project
- Name</property>. You can also select
- where to create the project or use the
- default path.</para>
- <para>Next to <property>Struts
- Environment</property> set which Struts
- version to use.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Creating Struts Project</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_3.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
-
- <tip>
- <title>Tip:</title>
- <para>Don't put spaces in project names since some
- OS could experience problems with their processing
- and searching these files.</para>
- </tip>
-
- <para>You can select the KickStart template, then the project
- created will include a simple Hello World type application
- that is ready to run.</para>
-
- <figure>
- <title>Choosing Struts Template </title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_3_1.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>Next, you register this application with the
- current servlet container defined for your
- workspace (JBoss AS, by default) in order to
- allow you to test your application more
- easily while still developing it. A new
- entry will be added in the servlet container
- configuration file to enable running the
- application in-place (called null deployment
- or link deployment). Uncheck the <emphasis
- role="italic">
+ <itemizedlist>
+ <listitem>
+ <para>Next, you register this application with the current
+ servlet container defined for your workspace (JBoss
+ AS, by default) in order to allow you to test your
+ application more easily while still developing it. A
+ new entry will be added in the servlet container
+ configuration file to enable running the application
+ in-place (called null deployment or link
+ deployment). Uncheck the <emphasis role="italic">
<property>"Target
Server"</property>
- </emphasis> check box if for some reason you
- don't want to register your
- application at this point.</para>
- </listitem>
- </itemizedlist>
- <figure>
- <title>Registering The Project at Server</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_4.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- <itemizedlist>
- <listitem>
- <para>On the next form, you can select the TLD files
- to include in this project:</para>
- </listitem>
- </itemizedlist>
- <figure>
- <title>Selecting Tag Libraries</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_5.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ </emphasis> check box if for some reason you
+ don't want to register your application at
+ this point.</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Registering The Project at Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist>
+ <listitem>
+ <para>On the next form, you can select the TLD files to
+ include in this project:</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Selecting Tag Libraries</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>After the project is created, you should have the following
- project structure (if you used the KickStart template):</para>
+ <para>After the project is created, you should have the following project
+ structure (if you used the KickStart template):</para>
- <figure>
- <title>Project Structure</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_6.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Project Structure</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <tip>
- <title>Tip:</title>
- <para>If you want to hide the jar files from Web App
- Libraries in view, select the down-pointing arrow in
- the upper right corner, select
- <emphasis>Filters...</emphasis>, check the box next
- to Name filter patterns (matching names will be
- hidden), and type *.jar into the field. Then, click
- OK. </para>
- </tip>
- </section>
- <section id="ImportingAnExistingStrutsProjectWithAnyStructure9653">
+ <tip>
+ <title>Tip:</title>
+ <para>If you want to hide the jar files from Web App Libraries in
+ view, select the down-pointing arrow in the upper right
+ corner, select <emphasis>Filters...</emphasis>, check the
+ box next to Name filter patterns (matching names will be
+ hidden), and type *.jar into the field. Then, click OK.
+ </para>
+ </tip>
+ </section>
+ <section id="ImportingAnExistingStrutsProjectWithAnyStructure9653">
- <title>Importing an Existing Struts Project with Any Structure</title>
+ <title>Importing an Existing Struts Project with Any Structure</title>
- <para>For detailed information on migration projects to JBoss
- Developer Studio see <ulink
- url="../../../Exadel-migration/en/html_single/index.html"
- >Migration Guide</ulink>.</para>
+ <para>For detailed information on migration projects to JBoss Developer
+ Studio see <ulink
+ url="../../../Exadel-migration/en/html_single/index.html"
+ >Migration Guide</ulink>.</para>
- </section>
- <section id="AddingStrutsCapabilityToAnExistingWebApplication532">
+ </section>
+ <section id="AddingStrutsCapabilityToAnExistingWebApplication532">
- <title>Adding Struts Capability to an Existing Web Application</title>
+ <title>Adding Struts Capability to an Existing Web Application</title>
- <para>With JBoss Developer Studio you can add <property>Struts
- capabilities</property> (including Struts libraries,
- tag libraries and a Struts configuration file) to any
- existing Web application project in your Eclipse workspace.
- By adding a Struts Nature to your project, you can now edit
- files using JBoss Developer Studio editors, such as the
- Struts configuration editor and the JBoss Tools JSP editor.</para>
- <para>To add Struts Nature to your existing Project right-click the
- project and select <emphasis>
- <property>JBoss Tools > Add Struts
- Capabilities</property>
- </emphasis> from the context menu. This will start the
- process of adding all necessary libraries and files to make
- this a Web Struts project.</para>
+ <para>With JBoss Developer Studio you can add <property>Struts
+ capabilities</property> (including Struts libraries, tag libraries
+ and a Struts configuration file) to any existing Web application
+ project in your Eclipse workspace. By adding a Struts Nature to your
+ project, you can now edit files using JBoss Developer Studio
+ editors, such as the Struts configuration editor and the JBoss Tools
+ JSP editor.</para>
+ <para>To add Struts Nature to your existing Project right-click the project
+ and select <emphasis>
+ <property>JBoss Tools > Add Struts Capabilities</property>
+ </emphasis> from the context menu. This will start the process of
+ adding all necessary libraries and files to make this a Web Struts
+ project.</para>
- <figure>
- <title>Adding Struts Capabilities</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_7.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Adding Struts Capabilities</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>In the wizard you should point to location of your deployment
- descriptor file web.xml and name of the project.</para>
+ <para>In the wizard you should point to location of your deployment
+ descriptor file web.xml and name of the project.</para>
- <figure>
- <title>Choosing Project Location</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_8.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- <para>After hitting <emphasis>
- <property>Next</property>, </emphasis> you will see
- the following screen. This screen simply means that you need
- to add at least one Struts module to your project to make
- this project a Struts project. Adding a Struts module means
- that a new struts-config.xml will be added to your project
- and registered in the web.xml file. In addition, all
- required Struts libraries will be added. To add a Struts
- module, select the <emphasis>
- <property>Add Struts Support</property>
- </emphasis> button.</para>
- <figure>
- <title>Project Modules</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_9.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Choosing Project Location</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>After hitting <emphasis>
+ <property>Next</property>, </emphasis> you will see the
+ following screen. This screen simply means that you need to add at
+ least one Struts module to your project to make this project a
+ Struts project. Adding a Struts module means that a new
+ struts-config.xml will be added to your project and registered in
+ the web.xml file. In addition, all required Struts libraries will be
+ added. To add a Struts module, select the <emphasis>
+ <property>Add Struts Support</property>
+ </emphasis> button.</para>
+ <figure>
+ <title>Project Modules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>Here you can select what Struts <property>Version</property>,
- <property>Servlet Class</property>, <property>URL
- Pattern</property> and <property>TLD</property>s to
- add to this project.</para>
+ <para>Here you can select what Struts <property>Version</property>,
+ <property>Servlet Class</property>, <property>URL
+ Pattern</property> and <property>TLD</property>s to add to this
+ project.</para>
- <figure>
- <title>Selecting Struts Support Options</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_10.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Selecting Struts Support Options</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>When done, you will see the default Struts module
- configuration information. See how to Edit <link
- linkend="SupportForMultipleStrutsModules75">Struts
- modules</link>.</para>
+ <para>When done, you will see the default Struts module configuration
+ information. See how to Edit <link
+ linkend="SupportForMultipleStrutsModules75">Struts
+ modules</link>.</para>
- <figure>
- <title>Project Configuration Information</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_11.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Project Configuration Information</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>On the last screen you can set the different folders for your
- project as well as register this application with a servlet
- container. If you want the libraries (.jar files) will be
- automatically added to your project, click on the checkbox <emphasis>
- <property>Add Libraries</property>.</emphasis></para>
+ <para>On the last screen you can set the different folders for your project
+ as well as register this application with a servlet container. If
+ you want the libraries (.jar files) will be automatically added to
+ your project, click on the checkbox <emphasis>
+ <property>Add Libraries</property>.</emphasis></para>
- <figure>
- <title>Registering the Project at Server</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_12.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Registering the Project at Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>When done, you can open end edit the struts-config.xml file
- using usefull Struts configuration file editor provided by
- JBDS. (The Struts configuration is shown below in the Tree
- viewer).</para>
+ <para>When done, you can open end edit the struts-config.xml file using
+ usefull Struts configuration file editor provided by JBDS. (The
+ Struts configuration is shown below in the Tree viewer).</para>
- <figure>
- <title>Struts-config.xml File</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_13.png"
+ <figure>
+ <title>Struts-config.xml File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_13.png"
scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
- <section id="GraphicalEditorForStrutsConfigurationFiles564">
+ </section>
+ <section id="GraphicalEditorForStrutsConfigurationFiles564">
- <title>Graphical Editor for Struts Configuration Files</title>
+ <title>Graphical Editor for Struts Configuration Files</title>
- <para>The Struts configuration file editor has three modes with different
- representation of <emphasis>
- <property>struts-config.xml</property>: </emphasis>Diagram,
- Tree and Source. The modes can be selected via the tabs at the
- bottom of the editor. Any changes made in one mode are immediately
- visible when you switch to any other mode.</para>
+ <para>The Struts configuration file editor has three modes with different
+ representation of <emphasis>
+ <property>struts-config.xml</property>: </emphasis>Diagram, Tree and
+ Source. The modes can be selected via the tabs at the bottom of the editor.
+ Any changes made in one mode are immediately visible when you switch to any
+ other mode.</para>
- <para>When working in Source view, you always have all the following
- features available:</para>
+ <para>When working in Source view, you always have all the following features
+ available:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Content Assist</para>
+ </listitem>
+ <listitem>
+ <para>Open On Selection</para>
+ </listitem>
+ <listitem>
+ <para>File Folding</para>
+ </listitem>
+ </itemizedlist>
+ <section id="StrutsDiagramMode453">
+
+ <title>Diagram Mode</title>
+
+ <para>The Diagram mode graphically displays the Web flow of the application
+ defined in the Struts configuration file.</para>
+
+ <figure>
+ <title>Diagram Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_14.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The Diagram mode allows to edit navigation in your Struts application.
+ Just by right-clicking anywhere on the diagram, you can use a
+ context menu to create the building blocks of a Struts application:</para>
<itemizedlist>
<listitem>
- <para>Content Assist</para>
+ <para>Actions</para>
</listitem>
<listitem>
- <para>Open On Selection</para>
+ <para>Global forwards</para>
</listitem>
<listitem>
- <para>File Folding</para>
+ <para>Global exceptions</para>
</listitem>
+ <listitem>
+ <para>JSP Pages</para>
+ </listitem>
</itemizedlist>
- <section id="StrutsDiagramMode453">
- <title>Diagram Mode</title>
+ <figure>
+ <title>Diagram Context Menu</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_15.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>The Diagram mode graphically displays the Web flow of the
- application defined in the Struts configuration file.</para>
+ <para>Along the upper-left side of the editor is a stack of seven icons for
+ changing the behavior of the cursor in the diagram. </para>
- <figure>
- <title>Diagram Mode</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_14.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Editor Icons</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_16.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>The Diagram mode allows to edit navigation in your Struts
- application. Just by right-clicking anywhere on the diagram,
- you can use a context menu to create the building blocks of
- a Struts application:</para>
- <itemizedlist>
- <listitem>
- <para>Actions</para>
- </listitem>
- <listitem>
- <para>Global forwards</para>
- </listitem>
- <listitem>
- <para>Global exceptions</para>
- </listitem>
- <listitem>
- <para>JSP Pages</para>
- </listitem>
- </itemizedlist>
+ <para>The first icon switches to the default regular selection cursor, the
+ second to the marquee selection cursor and the third to the new
+ connection cursor. The last four icons switch the cursor to an
+ insert cursor for each type of Struts build block listed above (and
+ in the order listed).</para>
- <figure>
- <title>Diagram Context Menu</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_15.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <para>For instance, clicking on the first of these four icons (the one with
+ the gears) will switch the cursor to insert actions. Clicking
+ anywhere in the diagram with this cursor has the same effect as
+ right-click and selecting <emphasis>
+ <property>Add > Action...</property>
+ </emphasis> from the context menu with the regular cursor active.
+ It's just more efficient to use this cursor if
+ you're adding more than one action at once.</para>
- <para>Along the upper-left side of the editor is a stack of seven
- icons for changing the behavior of the cursor in the
- diagram. </para>
- <figure>
- <title>Editor Icons</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_16.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ </section>
+ <section id="StrutsTreeMode42">
- <para>The first icon switches to the default regular selection
- cursor, the second to the marquee selection cursor and the
- third to the new connection cursor. The last four icons
- switch the cursor to an insert cursor for each type of
- Struts build block listed above (and in the order listed).</para>
+ <title>Tree Mode</title>
- <para>For instance, clicking on the first of these four icons (the
- one with the gears) will switch the cursor to insert
- actions. Clicking anywhere in the diagram with this cursor
- has the same effect as right-click and selecting <emphasis>
- <property>Add > Action...</property>
- </emphasis> from the context menu with the regular cursor
- active. It's just more efficient to use this cursor
- if you're adding more than one action at once.</para>
+ <para>The Tree mode represents the different elements of the Struts
+ application that are organized into functional categories on the
+ left-hand side and a form for editing the properties of currently
+ selected items on the right-hand side.</para>
-
- </section>
- <section id="StrutsTreeMode42">
-
+ <figure>
<title>Tree Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_17.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>The Tree mode represents the different elements of the Struts
- application that are organized into functional categories on
- the left-hand side and a form for editing the properties of
- currently selected items on the right-hand side.</para>
+ <para>You can also right-click on any node in the category tree and perform
+ appropriate operations through a context menu. For instance, by
+ right-clicking on the action-mappings category node, you can add new
+ actions to the application.</para>
- <figure>
- <title>Tree Mode</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_17.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Tree Context Menu</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_18.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="StrutsSourceMode9655">
- <para>You can also right-click on any node in the category tree and
- perform appropriate operations through a context menu. For
- instance, by right-clicking on the action-mappings category
- node, you can add new actions to the application.</para>
+ <title>Source Mode</title>
- <figure>
- <title>Tree Context Menu</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_18.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="StrutsSourceMode9655">
+ <para>In the Source mode, you have complete editing control of the
+ underlying XML coding.</para>
+ <figure>
<title>Source Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_19.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>In the Source mode, you have complete editing control of the
- underlying XML coding.</para>
+ <para>You can take advantage of <link
+ linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData"
+ >code assist</link>.</para>
- <figure>
- <title>Source Mode</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_19.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Code Assist</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_20.png"
+ scale="85"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>You can take advantage of <link
- linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData"
- >code assist</link>.</para>
+ <para>The editor will also immediately flag any errors.</para>
- <figure>
- <title>Code Assist</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_20.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Errors in Source Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_21.png"
+ scale="85"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>The editor will also immediately flag any errors.</para>
+ <para>Finally, you can use the Outline view with the editor to easily
+ navigate through the file.</para>
- <figure>
- <title>Errors in Source Mode</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_21.png"
- scale="83"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Outline View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_22.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
- <para>Finally, you can use the Outline view with the editor to
- easily navigate through the file.</para>
+ <para>Find more information about editor features <link linkend="editors_features"
+ >here</link>.</para>
- <figure>
- <title>Outline View</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_22.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
+ </section>
- <para>Find more information about editor features <link
- linkend="editors_features">here</link>.</para>
+ <section id="GraphicalEditorForTilesFiles132">
- </section>
+ <title>Graphical Editor for Tiles Files</title>
- <section id="GraphicalEditorForTilesFiles132">
+ <para>The Tiles configuration file editor has three main modes: Tree, Diagram and
+ Source. The modes can be selected via the tabs at the bottom of the editor.
+ Any changes made in one mode are immediately visible when you switch to any
+ other mode.</para>
- <title>Graphical Editor for Tiles Files</title>
+ <para>When working in Source view, you always have all following features available:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Content Assist</para>
+ </listitem>
+ <listitem>
+ <para>Open On Selection</para>
+ </listitem>
+ </itemizedlist>
+ <section id="CreateNewTilesFile1422">
- <para>The Tiles configuration file editor has three main modes: Tree,
- Diagram and Source. The modes can be selected via the tabs at the
- bottom of the editor. Any changes made in one mode are immediately
- visible when you switch to any other mode.</para>
+ <title>Create New Tiles File</title>
- <para>When working in Source view, you always have all following features
- available:</para>
- <itemizedlist>
- <listitem>
- <para>Content Assist</para>
- </listitem>
- <listitem>
- <para>Open On Selection</para>
- </listitem>
- </itemizedlist>
- <section id="CreateNewTilesFile1422">
+ <para>To create new Tiles files, right click any folder and select <emphasis>
+ <property>New > Tiles File</property>. </emphasis></para>
+ <figure>
+ <title>Creating a New Tiles File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_23.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="StrutsTreeView896">
- <title>Create New Tiles File</title>
+ <title>Tree Mode</title>
- <para>To create new Tiles files, right click any folder and select <emphasis>
- <property>New > Tiles File</property>.
- </emphasis></para>
- <figure>
- <title>Creating a New Tiles File</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_23.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="StrutsTreeView896">
-
+ <para>The Tree mode represents the different elements of the Tiles file that
+ are organized into functional categories on the left-hand side and a
+ form for editing the properties of currently selected items on the
+ right-hand side.</para>
+ <figure>
<title>Tree Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_24.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>The Tree mode represents the different elements of the Tiles
- file that are organized into functional categories on the
- left-hand side and a form for editing the properties of
- currently selected items on the right-hand side.</para>
- <figure>
- <title>Tree Mode</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_24.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To edit the file, simply right click any node and select among
- the available actions.</para>
- <figure>
- <title>Editing in Tiles Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_25.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="StrutsDiagramView4643">
-
- <title>Diagram Mode</title>
-
- <para>The Diagram mode allows you to create complex Tiles files in
- the form of a diagram.</para>
- <figure>
- <title>Diagram Mode</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_26.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To create new definitions, simply right click anywhere in the
- diagram.</para>
- <figure>
- <title>Creating New Definition</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_27.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>You can also use the Diagram toolbar to make editing easier.</para>
- <figure>
- <title>Diagram Toolbar</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_28.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
-
- <para> It contains four icons for changing the cursor state. The
- first one is the default cursor state for selecting existing
- nodes. The second icon is marquee selector. The third is
- used for creating new connections and the last one is for
- adding definition template to the content.</para>
- </section>
- <section id="StrutsSource75">
-
- <title>Source</title>
-
- <para>The other mode of the <property>Tiles editor</property> is the
- Source mode that gives you full control over the source. Any
- changes here will immediately appear in other modes when you
- switch to them.</para>
- <figure>
- <title>Source Mode</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_29.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- <para><link
- linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData"
- >Code assist</link> is available in the Source mode.</para>
- <figure>
- <title>Code Assist</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_30.png"
- scale="85"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Any errors are immediately reported as shown below:</para>
- <figure>
- <title>Errors Reporting</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_31.png"
- scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>You can also use the Outline view together with the
- editor's Source mode. It provides an easier
- navigation through the file.</para>
- <figure>
- <title>Outline View</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_32.png"
- scale="85"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
+ <para>To edit the file, simply right click any node and select among the
+ available actions.</para>
+ <figure>
+ <title>Editing in Tiles Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_25.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
- <section id="GraphicalEditorForStrutsValidationFiles86">
+ <section id="StrutsDiagramView4643">
- <title>Graphical Editor for Struts Validation Files</title>
+ <title>Diagram Mode</title>
- <para>Providing full support for development Struts applications JBoss
- Developer Studio comes with a visual validation editor. To create a
- new validation file, right click any folder in Project Explorer and
- select <emphasis>
- <property>File > New > Other...</property>
- </emphasis>from the context menu and then <emphasis>
- <property>JBoss Tools Web > Struts > Validation
- File</property>. </emphasis></para>
+ <para>The Diagram mode allows you to create complex Tiles files in the form
+ of a diagram.</para>
<figure>
- <title>Creating New Validation File</title>
+ <title>Diagram Mode</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_33.png"/>
+ <imagedata fileref="images/struts/struts_26.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>The validation editor works with five modes: Formsets, Validators,
- Constants and standard Tree and Source that you can easily switch
- over using tabs at the bottom of the editor.</para>
- <para>The Formsets mode shows forms and their elements on the left side and
- the dialogue for defining their validation rules on the right side.</para>
+ <para>To create new definitions, simply right click anywhere in the diagram.</para>
<figure>
- <title>Formsets Mode</title>
+ <title>Creating New Definition</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_34.png"/>
+ <imagedata fileref="images/struts/struts_27.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>The Constants mode let you set constant values for your validation
- rules.</para>
+ <para>You can also use the Diagram toolbar to make editing easier.</para>
<figure>
- <title>Constansts Mode</title>
+ <title>Diagram Toolbar</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_35.png"/>
+ <imagedata fileref="images/struts/struts_28.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>The validation file can also be viewed in a Tree mode.</para>
+ <para> It contains four icons for changing the cursor state. The first one
+ is the default cursor state for selecting existing nodes. The second
+ icon is marquee selector. The third is used for creating new
+ connections and the last one is for adding definition template to
+ the content.</para>
+ </section>
+ <section id="StrutsSource75">
+
+ <title>Source</title>
+
+ <para>The other mode of the <property>Tiles editor</property> is the Source
+ mode that gives you full control over the source. Any changes here
+ will immediately appear in other modes when you switch to them.</para>
<figure>
- <title>Tree Mode</title>
+ <title>Source Mode</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_36.png"/>
+ <imagedata fileref="images/struts/struts_29.png"/>
</imageobject>
</mediaobject>
</figure>
-
- <para>At any point you have full control over the source by switching to the
- Source mode. Any editing in this mode will immediately be available
- in other modes of the editor.</para>
+ <para><link linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData"
+ >Code assist</link> is available in the Source mode.</para>
<figure>
- <title>Source Mode</title>
+ <title>Code Assist</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_37.png"
+ <imagedata fileref="images/struts/struts_30.png"
scale="85"/>
</imageobject>
</mediaobject>
</figure>
-
- <para>You can also open your own custom or Struts-standard <emphasis>
- <property>validation-rules.xml</property>
- </emphasis> file.</para>
- <para>The Validators mode shows the validation rules for a selected
- validator. You can of course add your own rules.</para>
+ <para>Any errors are immediately reported as shown below:</para>
<figure>
- <title>Validators Mode</title>
+ <title>Errors Reporting</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_38.png"
+ <imagedata fileref="images/struts/struts_31.png"
scale="75"/>
</imageobject>
</mediaobject>
</figure>
- <para>Here are the validation rules shown in the Source mode.</para>
+
+ <para>You can also use the Outline view together with the editor's
+ Source mode. It provides an easier navigation through the file.</para>
<figure>
- <title>Validation Rules</title>
+ <title>Outline View</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_39.png"
- scale="75"/>
+ <imagedata fileref="images/struts/struts_32.png"
+ scale="85"/>
</imageobject>
</mediaobject>
</figure>
</section>
- <section id="SupportForMultipleStrutsModules75">
+ </section>
+ <section id="GraphicalEditorForStrutsValidationFiles86">
- <title>Support for Multiple Struts Modules</title>
+ <title>Graphical Editor for Struts Validation Files</title>
- <para>JBoss Developer Studio supports working with Struts projects that have
- multiple modules. You can easily do the following:</para>
- <itemizedlist>
- <listitem>
- <para>Add new modules</para>
- </listitem>
- <listitem>
- <para>Edit modules for an existing project or during Struts
- project import</para>
- </listitem>
- </itemizedlist>
+ <para>Providing full support for development Struts applications JBoss Developer
+ Studio comes with a visual validation editor. To create a new validation
+ file, right click any folder in Project Explorer and select <emphasis>
+ <property>File > New > Other...</property>
+ </emphasis>from the context menu and then <emphasis>
+ <property>JBoss Tools Web > Struts > Validation File</property>.
+ </emphasis></para>
+ <figure>
+ <title>Creating New Validation File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_33.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <section id="WhenImportingAStrutsProject432">
+ <para>The validation editor works with five modes: Formsets, Validators, Constants
+ and standard Tree and Source that you can easily switch over using tabs at
+ the bottom of the editor.</para>
+ <para>The Formsets mode shows forms and their elements on the left side and the
+ dialogue for defining their validation rules on the right side.</para>
+ <figure>
+ <title>Formsets Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_34.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <title>When Importing a Struts Project</title>
+ <para>The Constants mode let you set constant values for your validation rules.</para>
+ <figure>
+ <title>Constansts Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_35.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>During Struts project import, if the project has multiple
- modules, you will see a screen with all existing modules.
- You can select each module and edit its details.</para>
+ <para>The validation file can also be viewed in a Tree mode.</para>
+ <figure>
+ <title>Tree Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_36.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <figure>
- <title>Configuring Project Modules</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_40.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="EditingModulesInAnExistingProject1">
+ <para>At any point you have full control over the source by switching to the Source
+ mode. Any editing in this mode will immediately be available in other modes
+ of the editor.</para>
+ <figure>
+ <title>Source Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_37.png" scale="85"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
- <title>Editing Modules in an Existing Project</title>
- <para>To edit modules in an existing project, right click the
- project and select <emphasis>
- <property>JBoss Tools > Modules
- Configuration</property>. </emphasis></para>
- <figure>
- <title>Choosing Modules Configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_41.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- <para>You will see the same screen as above where you will be able
- to select a module and edit its details.</para>
- <figure>
- <title>Modules Configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_42.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="AddingNewModules1">
+ <para>You can also open your own custom or Struts-standard <emphasis>
+ <property>validation-rules.xml</property>
+ </emphasis> file.</para>
+ <para>The Validators mode shows the validation rules for a selected validator. You
+ can of course add your own rules.</para>
+ <figure>
+ <title>Validators Mode</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_38.png" scale="75"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Here are the validation rules shown in the Source mode.</para>
+ <figure>
+ <title>Validation Rules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_39.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="SupportForMultipleStrutsModules75">
- <title>Adding New Modules</title>
+ <title>Support for Multiple Struts Modules</title>
- <para>Adding a new module is very simple. First switch to Web
- Project view. Expand your project to the Configuration
- folder. Under that folder you should see the current
- modules. Right click on Configuration and select <emphasis>
- <property>New > Struts Config</property>.
- </emphasis></para>
- <figure>
- <title>Adding New Modules</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_43.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- <para>You will see the screen below. You can specify a new module
- name and also add the new Struts configuration file to
- web.xml file.</para>
- <figure>
- <title>Adding New Modules</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/struts/struts_44.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- </section>
- <section id="CodeGenerationForActionFormBeanForwardAndExceptionClasses1">
+ <para>JBoss Developer Studio supports working with Struts projects that have
+ multiple modules. You can easily do the following:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Add new modules</para>
+ </listitem>
+ <listitem>
+ <para>Edit modules for an existing project or during Struts project
+ import</para>
+ </listitem>
+ </itemizedlist>
- <title>Code Generation for Action, FormBean, Forward and Exception Classes</title>
+ <section id="WhenImportingAStrutsProject432">
- <para>JBoss Developer Studio comes with a <property>code
- generation</property> feature. You can generate stub code for Struts
- Actions, FormBeans, Forwards and Exceptions.</para>
+ <title>When Importing a Struts Project</title>
- <para>The code generation in JBoss Developer Studio is based on Velocity
- templates which can be modified for your use. The templates are
- located at <emphasis>
- <property> {RedHatDeveloperStudioHome} > templates >
- codegeneration</property>. </emphasis></para>
+ <para>During Struts project import, if the project has multiple modules, you
+ will see a screen with all existing modules. You can select each
+ module and edit its details.</para>
- <para>There are a number of ways to invoke code generation. One is simply
- right-clicking the Struts diagram and selecting <emphasis>
- <property>Generate Java Code....</property>
- </emphasis></para>
-
<figure>
- <title>Selecting Generate Java Code</title>
+ <title>Configuring Project Modules</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_45.png"/>
+ <imagedata fileref="images/struts/struts_40.png"/>
</imageobject>
</mediaobject>
</figure>
+ </section>
+ <section id="EditingModulesInAnExistingProject1">
- <para>On this screen you can select for which elements to generate code. If
- you select Next you will be able to specify more options for each of
- the categories you selected.</para>
-
+ <title>Editing Modules in an Existing Project</title>
+ <para>To edit modules in an existing project, right click the project and
+ select <emphasis>
+ <property>JBoss Tools > Modules Configuration</property>.
+ </emphasis></para>
<figure>
- <title>Generate - Step 1</title>
+ <title>Choosing Modules Configuration</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_46.png"/>
+ <imagedata fileref="images/struts/struts_41.png"/>
</imageobject>
</mediaobject>
</figure>
-
- <tip>
- <title>Tip:</title>
- <para>please be careful not to override your existing files.</para>
- </tip>
-
- <para>When generation is complete, a result window will appear letting you
- know how many classes were generated:</para>
-
+ <para>You will see the same screen as above where you will be able to select
+ a module and edit its details.</para>
<figure>
- <title>Generation Finished</title>
+ <title>Modules Configuration</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_47.png"/>
+ <imagedata fileref="images/struts/struts_42.png"/>
</imageobject>
</mediaobject>
</figure>
+ </section>
+ <section id="AddingNewModules1">
- <para>You don't always have to generate code for all elements at
- once. You can invoke generation for just an individual Struts
- artifact as well. Right-click an element on the diagram of the
- Struts configuration file and select <emphasis>
- <property>Generate Java Code...</property>
- </emphasis> from the context menu.</para>
+ <title>Adding New Modules</title>
+ <para>Adding a new module is very simple. First switch to Web Project view.
+ Expand your project to the Configuration folder. Under that folder
+ you should see the current modules. Right click on Configuration and
+ select <emphasis>
+ <property>New > Struts Config</property>. </emphasis></para>
<figure>
- <title>Generation For Individual Struts Artifact</title>
+ <title>Adding New Modules</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_48.png"/>
+ <imagedata fileref="images/struts/struts_43.png"/>
</imageobject>
</mediaobject>
</figure>
-
- <para>The same can be done from within the Tree viewer for the editor of the
- Struts configuration file.</para>
-
+ <para>You will see the screen below. You can specify a new module name and
+ also add the new Struts configuration file to web.xml file.</para>
<figure>
- <title>Generation in Struts Config Editor</title>
+ <title>Adding New Modules</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts/struts_49.png"/>
+ <imagedata fileref="images/struts/struts_44.png"/>
</imageobject>
</mediaobject>
</figure>
</section>
- <section id="StrutsConfigurationFileDebugger097">
+ </section>
+ <section id="CodeGenerationForActionFormBeanForwardAndExceptionClasses1">
- <title>Struts Configuration File Debugger</title>
+ <title>Code Generation for Action, FormBean, Forward and Exception Classes</title>
- <para>JBoss Developer Studio comes with <property>Struts configuration file
- debugger</property>. It allows you to set break points on
- Struts diagram and then simply launch the server in debug mode.</para>
+ <para>JBoss Developer Studio comes with a <property>code generation</property>
+ feature. You can generate stub code for Struts Actions, FormBeans, Forwards
+ and Exceptions.</para>
- <para>Simply right click an Action or a page and select Add <emphasis>
- <property>Breakpoint</property>. </emphasis></para>
- <figure>
- <title>Adding Breakpoint</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/struts/struts_50.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="CustomizablePageLinksRecognizer1">
+ <para>The code generation in JBoss Developer Studio is based on Velocity templates
+ which can be modified for your use. The templates are located at <emphasis>
+ <property> {RedHatDeveloperStudioHome} > templates >
+ codegeneration</property>. </emphasis></para>
- <title>Customizable Page Links Recognizer</title>
+ <para>There are a number of ways to invoke code generation. One is simply
+ right-clicking the Struts diagram and selecting <emphasis>
+ <property>Generate Java Code....</property>
+ </emphasis></para>
- <para><property>Custom page links</property> allow you to define custom
- Struts page links that will be recognizable in the Struts
- application diagram. You can define these links by selecting <emphasis>
- <property>Window > Preferences</property>
- </emphasis> from the menu bar and then selecting <emphasis>
- <property>JBoss Tools > Web > Struts >
- Customization</property>
- </emphasis> from the Preferences dialog box.</para>
- <figure>
- <title>Customization Panel</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/struts/struts_51.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
+ <figure>
+ <title>Selecting Generate Java Code</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_45.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <section>
- <title>Relevant Resources Links</title>
- <para>Find out necessary information on <ulink
- url="http://struts.apache.org/">Struts technology</ulink> if
- you don't know enough.</para>
- </section>
- </chapter>
\ No newline at end of file
+ <para>On this screen you can select for which elements to generate code. If you
+ select Next you will be able to specify more options for each of the
+ categories you selected.</para>
+
+ <figure>
+ <title>Generate - Step 1</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_46.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+ <para>please be careful not to override your existing files.</para>
+ </tip>
+
+ <para>When generation is complete, a result window will appear letting you know how
+ many classes were generated:</para>
+
+ <figure>
+ <title>Generation Finished</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_47.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You don't always have to generate code for all elements at once. You
+ can invoke generation for just an individual Struts artifact as well.
+ Right-click an element on the diagram of the Struts configuration file and
+ select <emphasis>
+ <property>Generate Java Code...</property>
+ </emphasis> from the context menu.</para>
+
+ <figure>
+ <title>Generation For Individual Struts Artifact</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_48.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The same can be done from within the Tree viewer for the editor of the Struts
+ configuration file.</para>
+
+ <figure>
+ <title>Generation in Struts Config Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_49.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="StrutsConfigurationFileDebugger097">
+
+ <title>Struts Configuration File Debugger</title>
+
+ <para>JBoss Developer Studio comes with <property>Struts configuration file
+ debugger</property>. It allows you to set break points on Struts diagram and
+ then simply launch the server in debug mode.</para>
+
+ <para>Simply right click an Action or a page and select Add <emphasis>
+ <property>Breakpoint</property>. </emphasis></para>
+ <figure>
+ <title>Adding Breakpoint</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_50.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="CustomizablePageLinksRecognizer1">
+
+ <title>Customizable Page Links Recognizer</title>
+
+ <para><property>Custom page links</property> allow you to define custom Struts page
+ links that will be recognizable in the Struts application diagram. You can
+ define these links by selecting <emphasis>
+ <property>Window > Preferences</property>
+ </emphasis> from the menu bar and then selecting <emphasis>
+ <property>JBoss Tools > Web > Struts > Customization</property>
+ </emphasis> from the Preferences dialog box.</para>
+ <figure>
+ <title>Customization Panel</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/struts/struts_51.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>Find out necessary information on <ulink url="http://struts.apache.org/"
+ >Struts technology</ulink> if you don't know enough.</para>
+ </section>
+</chapter>
16 years, 9 months
JBoss Tools SVN: r7257 - trunk/seam/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-04-01 14:08:34 -0400 (Tue, 01 Apr 2008)
New Revision: 7257
Modified:
trunk/seam/docs/reference/en/modules/crud_database_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 Seam guide. Scale parameter has been redefined in xml file
Modified: trunk/seam/docs/reference/en/modules/crud_database_application.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/crud_database_application.xml 2008-04-01 17:48:22 UTC (rev 7256)
+++ trunk/seam/docs/reference/en/modules/crud_database_application.xml 2008-04-01 18:08:34 UTC (rev 7257)
@@ -119,7 +119,7 @@
<title>Edit Driver Definition</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/crud_database_application/crud_database_application_09.png" scale="75"/>
+ <imagedata fileref="images/crud_database_application/crud_database_application_09.png"/>
</imageobject>
</mediaobject>
</figure>
@@ -190,7 +190,7 @@
<title>CRUDAPP Seam Project</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/crud_database_application/crud_database_application_15.png" scale="75"/>
+ <imagedata fileref="images/crud_database_application/crud_database_application_15.png" />
</imageobject>
</mediaobject>
</figure>
16 years, 9 months
JBoss Tools SVN: r7256 - trunk/documentation/guides/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-04-01 13:48:22 -0400 (Tue, 01 Apr 2008)
New Revision: 7256
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 GSG. Scale parameter has been redefined in xml file
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml 2008-04-01 17:47:26 UTC (rev 7255)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml 2008-04-01 17:48:22 UTC (rev 7256)
@@ -212,7 +212,7 @@
<title>The Generated Application in Action</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/first_seam/first_seam_10.png" scale="75"/>
+ <imagedata fileref="images/first_seam/first_seam_10.png" />
</imageobject>
</mediaobject>
</figure>
@@ -227,7 +227,7 @@
<title>Making Changes in the Visual Editor</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/first_seam/first_seam_11.png" scale="75"/>
+ <imagedata fileref="images/first_seam/first_seam_11.png"/>
</imageobject>
</mediaobject>
</figure>
16 years, 9 months
JBoss Tools SVN: r7254 - trunk/as/docs/reference/en/images/perspective.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-04-01 13:22:07 -0400 (Tue, 01 Apr 2008)
New Revision: 7254
Modified:
trunk/as/docs/reference/en/images/perspective/perspective_12.png
trunk/as/docs/reference/en/images/perspective/perspective_25.png
Log:
http://jira.jboss.com/jira/browse/JBDS-226 AS Guide. Correction of existing screenshots
Modified: trunk/as/docs/reference/en/images/perspective/perspective_12.png
===================================================================
(Binary files differ)
Modified: trunk/as/docs/reference/en/images/perspective/perspective_25.png
===================================================================
(Binary files differ)
16 years, 9 months
JBoss Tools SVN: r7253 - trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-04-01 12:42:58 -0400 (Tue, 01 Apr 2008)
New Revision: 7253
Modified:
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_7.png
trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_8.png
Log:
http://jira.jboss.com/jira/browse/JBDS-226 JSF Tools Reference Guide. Screens have been updated in Code assist for Facelets subchapter
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_7.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/images/jsf_support/jsf_support_8.png
===================================================================
(Binary files differ)
16 years, 9 months
JBoss Tools SVN: r7252 - in trunk/seam: plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-04-01 12:35:13 -0400 (Tue, 01 Apr 2008)
New Revision: 7252
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam2FacetInstallDelegate.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegate.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1318 Moved add/remove jsf variable resolver actions to Seam Nature
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2008-04-01 15:44:31 UTC (rev 7251)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2008-04-01 16:35:13 UTC (rev 7252)
@@ -35,6 +35,7 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
+import org.eclipse.jst.jsf.designtime.DesignTimeApplicationManager;
import org.jboss.tools.common.xml.XMLUtilities;
import org.jboss.tools.seam.core.ISeamComponent;
import org.jboss.tools.seam.core.ISeamComponentDeclaration;
@@ -53,6 +54,7 @@
import org.jboss.tools.seam.core.event.SeamProjectChangeEvent;
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
+import org.jboss.tools.seam.internal.core.el.VariableResolver;
import org.jboss.tools.seam.internal.core.scanner.LoadedDeclarations;
import org.jboss.tools.seam.internal.core.scanner.lib.ClassPath;
import org.jboss.tools.seam.internal.core.validation.SeamValidationContext;
@@ -91,13 +93,13 @@
{
createScopes();
}
-
+
ComponentStorage components = new ComponentStorage();
FactoryStorage factories = new FactoryStorage();
VariablesStorage variables = new VariablesStorage();
-
+
Map<String, ISeamPackage> packages = new HashMap<String, ISeamPackage>();
-
+
List<ISeamProjectChangeListener> listeners = new ArrayList<ISeamProjectChangeListener>();
SeamValidationContext validationContext;
@@ -112,6 +114,7 @@
*/
public void configure() throws CoreException {
addToBuildSpec(SeamCoreBuilder.BUILDER_ID);
+ DesignTimeApplicationManager.getInstance(project).setVariableResolverProvider(VariableResolver.ID);
}
/**
@@ -119,6 +122,7 @@
*/
public void deconfigure() throws CoreException {
removeFromBuildSpec(SeamCoreBuilder.BUILDER_ID);
+ DesignTimeApplicationManager.getInstance(project).setVariableResolverProvider(null);
}
/**
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam2FacetInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam2FacetInstallDelegate.java 2008-04-01 15:44:31 UTC (rev 7251)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam2FacetInstallDelegate.java 2008-04-01 16:35:13 UTC (rev 7252)
@@ -35,7 +35,6 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.jst.common.project.facet.core.ClasspathHelper;
-import org.eclipse.jst.jsf.designtime.DesignTimeApplicationManager;
import org.eclipse.wst.common.componentcore.ComponentCore;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
@@ -49,7 +48,6 @@
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
-import org.jboss.tools.seam.internal.core.el.VariableResolver;
import org.osgi.service.prefs.BackingStoreException;
import org.osgi.service.prefs.Preferences;
@@ -492,7 +490,6 @@
createSeamProjectPreferenes(project, model);
EclipseResourceUtil.addNatureToProject(project, ISeamProject.NATURE_ID);
- DesignTimeApplicationManager.getInstance(project).setVariableResolverProvider(VariableResolver.ID);
toggleHibernateOnProject(project, consoleName);
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegate.java 2008-04-01 15:44:31 UTC (rev 7251)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegate.java 2008-04-01 16:35:13 UTC (rev 7252)
@@ -33,7 +33,6 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.jst.common.project.facet.core.ClasspathHelper;
-import org.eclipse.jst.jsf.designtime.DesignTimeApplicationManager;
import org.eclipse.wst.common.componentcore.ComponentCore;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
@@ -47,7 +46,6 @@
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
-import org.jboss.tools.seam.internal.core.el.VariableResolver;
import org.osgi.service.prefs.BackingStoreException;
import org.osgi.service.prefs.Preferences;
@@ -542,7 +540,6 @@
createSeamProjectPreferenes(project, model);
EclipseResourceUtil.addNatureToProject(project, ISeamProject.NATURE_ID);
- DesignTimeApplicationManager.getInstance(project).setVariableResolverProvider(VariableResolver.ID);
toggleHibernateOnProject(project, consoleName);
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2008-04-01 15:44:31 UTC (rev 7251)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2008-04-01 16:35:13 UTC (rev 7252)
@@ -39,7 +39,6 @@
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jface.dialogs.IMessageProvider;
-import org.eclipse.jst.jsf.designtime.DesignTimeApplicationManager;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
@@ -56,7 +55,6 @@
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
import org.jboss.tools.seam.core.project.facet.SeamVersion;
-import org.jboss.tools.seam.internal.core.el.VariableResolver;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamGuiPlugin;
import org.jboss.tools.seam.ui.SeamUIMessages;
@@ -731,7 +729,6 @@
try {
EclipseResourceUtil.removeNatureFromProject(project,
ISeamProject.NATURE_ID);
- DesignTimeApplicationManager.getInstance(project).setVariableResolverProvider(null);
} catch (CoreException e) {
SeamGuiPlugin.getPluginLog().logError(e);
}
@@ -740,7 +737,6 @@
private void addSeamSupport() {
try {
EclipseResourceUtil.addNatureToProject(project, ISeamProject.NATURE_ID);
- DesignTimeApplicationManager.getInstance(project).setVariableResolverProvider(VariableResolver.ID);
} catch (CoreException e) {
SeamGuiPlugin.getPluginLog().logError(e);
}
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2008-04-01 15:44:31 UTC (rev 7251)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2008-04-01 16:35:13 UTC (rev 7252)
@@ -23,7 +23,6 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.preference.IPersistentPreferenceStore;
import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jst.jsf.designtime.DesignTimeApplicationManager;
import org.jboss.tools.seam.core.ISeamComponent;
import org.jboss.tools.seam.core.ISeamComponentMethod;
import org.jboss.tools.seam.core.ISeamProject;
@@ -31,7 +30,6 @@
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.SeamPreferences;
import org.jboss.tools.seam.internal.core.SeamProject;
-import org.jboss.tools.seam.internal.core.el.VariableResolver;
import org.jboss.tools.seam.internal.core.validation.SeamRuntimeValidation;
import org.jboss.tools.test.util.JUnitUtils;
import org.jboss.tools.test.util.ProjectImportTestSetup;
@@ -56,7 +54,6 @@
project = setup.importProject();
}
this.project = project.getProject();
- DesignTimeApplicationManager.getInstance(this.project).setVariableResolverProvider(VariableResolver.ID);
this.project.build(IncrementalProjectBuilder.FULL_BUILD, null);
EditorTestHelper.joinBackgroundActivities();
}
16 years, 9 months
JBoss Tools SVN: r7251 - trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-04-01 11:44:31 -0400 (Tue, 01 Apr 2008)
New Revision: 7251
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng/TablePropertiesBlock.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1968
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng/TablePropertiesBlock.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng/TablePropertiesBlock.java 2008-04-01 15:30:14 UTC (rev 7250)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng/TablePropertiesBlock.java 2008-04-01 15:44:31 UTC (rev 7251)
@@ -85,8 +85,9 @@
sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,true));
final ScrolledForm form = managedForm.getForm();
FormToolkit toolkit = managedForm.getToolkit();
- Section section = toolkit.createSection( parent, Section.DESCRIPTION );
- section.setText( "Tables && Columns" );
+ Section section = toolkit.createSection( parent, Section.DESCRIPTION |
+ Section.FOCUS_TITLE | Section.TWISTIE | Section.EXPANDED);
+ section.setText( "Tables & Columns" );
section.setDescription( "Explicitly control settings for table & columns for which the defaults is not applicable. Click Add, select the relevant tables & columns and adjust their settings here." );
section.marginWidth = 10;
section.marginHeight = 5;
16 years, 9 months