JBoss Tools SVN: r7683 - trunk/jsf/docs/jsf_tools_tutorial/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-04-22 09:20:57 -0400 (Tue, 22 Apr 2008)
New Revision: 7683
Added:
trunk/jsf/docs/jsf_tools_tutorial/en/modules/adding_managed_bean.xml
trunk/jsf/docs/jsf_tools_tutorial/en/modules/adding_navigation.xml
trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsp_view_files.xml
trunk/jsf/docs/jsf_tools_tutorial/en/modules/relevant_resources.xml
trunk/jsf/docs/jsf_tools_tutorial/en/modules/running_application.xml
trunk/jsf/docs/jsf_tools_tutorial/en/modules/start_page.xml
Modified:
trunk/jsf/docs/jsf_tools_tutorial/en/modules/introduction.xml
trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsf_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-261 - new chapters are organized during the restructuring the guide
Added: trunk/jsf/docs/jsf_tools_tutorial/en/modules/adding_managed_bean.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/modules/adding_managed_bean.xml (rev 0)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/adding_managed_bean.xml 2008-04-22 13:20:57 UTC (rev 7683)
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="adding_managed_bean" xreflabel="adding_managed_bean">
+ <?dbhtml filename="adding_managed_bean.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>JSF application</keyword>
+ <keyword>Java</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <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>
+
+ </chapter>
\ No newline at end of file
Added: trunk/jsf/docs/jsf_tools_tutorial/en/modules/adding_navigation.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/modules/adding_navigation.xml (rev 0)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/adding_navigation.xml 2008-04-22 13:20:57 UTC (rev 7683)
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="adding_navigation" xreflabel="adding_navigation">
+ <?dbhtml filename="adding_navigation.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>JSF application</keyword>
+ <keyword>Java</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <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. We can do all of this in the
+ Diagram mode of the configuration file editor.</para>
+ <section id="AddingTwoViewsJSPPages">
+ <?dbhtml filename="AddingTwoViewsJSPPages.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>
+
+ </section>
+ <section id="CreatingTheTransitionNavigationRule">
+ <?dbhtml filename="CreatingTheTransitionNavigationRule.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>
+
+ </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>
+
+</chapter>
\ No newline at end of file
Modified: trunk/jsf/docs/jsf_tools_tutorial/en/modules/introduction.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/modules/introduction.xml 2008-04-22 13:19:11 UTC (rev 7682)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/introduction.xml 2008-04-22 13:20:57 UTC (rev 7683)
@@ -14,4 +14,11 @@
recommend users to use <ulink url="../../seam/html_single/index.html">JBoss
Seam</ulink> to simplify development, but until then you can read about classical JSF
usage here.</para>
+
+ <para>Thus, in this document we are going to show you how to create a simple <property>JSF application
+ </property>using <property>JBoss Tools</property> plugins 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
+ tutorial will show you how to create and run such an application from the beginning along the
+ way demonstrating some of the powerful features of <property>JBoss Tools</property>.</para>
</chapter>
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-22 13:19:11 UTC (rev 7682)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsf_application.xml 2008-04-22 13:20:57 UTC (rev 7683)
@@ -9,32 +9,25 @@
</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 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 Tools. You will
- design the JSF application. We'll assume that you have already launched Eclipse and also that the Web Development 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">
+ <title>Creating a Simple JSF Application</title>
+
+ <para>Firstly, we assume that you have already launched Eclipse with <property>JBoss Tools</property>
+ plug-ins installed and also that the <property>Web Development perspective</property> 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 id="setting_up_the_project">
<?dbhtml filename="SettingUpTheProject.html"?>
<title>Setting Up the Project</title>
- <para>We are first going to create a new project for the application.</para>
+ <para>Now we are going to create a new project for the application.</para>
<itemizedlist>
<listitem>
- <para>Go to the menu bar and select <emphasis>
+ <para>For that go to the menu bar and select <emphasis>
<property>File > New > Project...</property>
</emphasis></para>
</listitem>
@@ -59,9 +52,10 @@
</itemizedlist>
</section>
+
<section id="TheJSFApplicationConfigurationFile">
<?dbhtml filename="TheJSFApplicationConfigurationFile.html"?>
- <title>The JSF Application Configuration File</title>
+ <title>JSF Configuration File</title>
<para>A jsfHello node should appear in the upper-left Package Explorer view.</para>
<figure>
<title>Package Explorer View</title>
@@ -103,546 +97,4 @@
</figure>
</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.
- We can do all of this in the Diagram mode of the configuration file editor.</para>
- <section id="AddingTwoViewsJSPPages">
- <?dbhtml filename="AddingTwoViewsJSPPages.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>
-
- <section id="CreatingTheTransitionNavigationRule">
- <?dbhtml filename="CreatingTheTransitionNavigationRule.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>
-
- </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>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>
-
- <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>
-<title></title>
-</head>
-<body>
-<f:view>
-<h:form id="greeting">
-<para>Please enter a name:</para>
-<h:inputText id="name" value="#{personBean.name}"/>
-<h:commandButton value=" Say Hello " action="greeting"/>
-</h:form>
-</f:view>
-</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" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<html>
-<head>
-<title></title>
-</head>
-<body>
-<f:view>
-Hello <h:outputText value="#{personBean.name}"/>!
-</f:view>
-</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>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>
-<jsp:forward page="/pages/inputname.jsf" />
-</body>
-</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 by using the JBoss engine. For controlling JBoss server 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>
Added: trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsp_view_files.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsp_view_files.xml (rev 0)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsp_view_files.xml 2008-04-22 13:20:57 UTC (rev 7683)
@@ -0,0 +1,254 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="jsp_view_files" xreflabel="jsp_view_files">
+ <?dbhtml filename="jsp_view_files.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>JSF application</keyword>
+ <keyword>Java</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Editing the JSP View Files</title>
+
+ <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>
+
+ <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>
+<title></title>
+</head>
+<body>
+<f:view>
+<h:form id="greeting">
+<para>Please enter a name:</para>
+<h:inputText id="name" value="#{personBean.name}"/>
+<h:commandButton value=" Say Hello " action="greeting"/>
+</h:form>
+</f:view>
+</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" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<html>
+<head>
+<title></title>
+</head>
+<body>
+<f:view>
+Hello <h:outputText value="#{personBean.name}"/>!
+</f:view>
+</body>
+</html>
+]]></programlisting>
+ <itemizedlist continuation="continues">
+ <listitem>
+ <para>Save the file</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ </chapter>
\ No newline at end of file
Added: trunk/jsf/docs/jsf_tools_tutorial/en/modules/relevant_resources.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/modules/relevant_resources.xml (rev 0)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/relevant_resources.xml 2008-04-22 13:20:57 UTC (rev 7683)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="relevant_resources" xreflabel="relevant_resources">
+ <?dbhtml filename="relevant_resources.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>JSF application</keyword>
+ <keyword>Java</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <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>
+ </chapter>
\ No newline at end of file
Added: trunk/jsf/docs/jsf_tools_tutorial/en/modules/running_application.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/modules/running_application.xml (rev 0)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/running_application.xml 2008-04-22 13:20:57 UTC (rev 7683)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="running_application" xreflabel="running_application">
+ <?dbhtml filename="running_application.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>JSF application</keyword>
+ <keyword>Java</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Running the Application</title>
+ <para>Everything is now ready for running our application by using the JBoss engine. For
+ controlling JBoss server 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>
+ </chapter>
\ No newline at end of file
Added: trunk/jsf/docs/jsf_tools_tutorial/en/modules/start_page.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/modules/start_page.xml (rev 0)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/start_page.xml 2008-04-22 13:20:57 UTC (rev 7683)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="start_page" xreflabel="start_page">
+ <?dbhtml filename="start_page.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>JSF application</keyword>
+ <keyword>Java</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <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">
+<html>
+<head></head>
+<body>
+<jsp:forward page="/pages/inputname.jsf" />
+</body>
+</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>
+ </chapter>
\ No newline at end of file
17 years, 8 months
JBoss Tools SVN: r7682 - trunk/jsf/docs/jsf_tools_tutorial/en.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-04-22 09:19:11 -0400 (Tue, 22 Apr 2008)
New Revision: 7682
Modified:
trunk/jsf/docs/jsf_tools_tutorial/en/master.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-261 - reorganosing the tutorial structure
Modified: trunk/jsf/docs/jsf_tools_tutorial/en/master.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en/master.xml 2008-04-22 12:29:03 UTC (rev 7681)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/master.xml 2008-04-22 13:19:11 UTC (rev 7682)
@@ -4,6 +4,12 @@
[<!ENTITY introduction SYSTEM "modules/introduction.xml">
<!ENTITY jsf_application SYSTEM "modules/jsf_application.xml">
+<!ENTITY adding_navigation SYSTEM "modules/adding_navigation.xml">
+<!ENTITY adding_managed_bean SYSTEM "modules/adding_managed_bean.xml">
+<!ENTITY jsp_view_files SYSTEM "modules/jsp_view_files.xml">
+<!ENTITY start_page SYSTEM "modules/start_page.xml">
+<!ENTITY running_application SYSTEM "modules/running_application.xml">
+<!ENTITY relevant_resources SYSTEM "modules/relevant_resources.xml">
]>
<book>
@@ -28,6 +34,10 @@
&introduction;
&jsf_application;
-
-
+ &adding_navigation;
+ &adding_managed_bean;
+ &jsp_view_files;
+ &start_page;
+ &running_application;
+ &relevant_resources;
</book>
17 years, 8 months
JBoss Tools SVN: r7681 - in trunk: jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-04-22 08:29:03 -0400 (Tue, 22 Apr 2008)
New Revision: 7681
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInputNumberSpinnerTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2083
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInputNumberSpinnerTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInputNumberSpinnerTemplate.java 2008-04-22 10:33:01 UTC (rev 7680)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInputNumberSpinnerTemplate.java 2008-04-22 12:29:03 UTC (rev 7681)
@@ -83,7 +83,7 @@
// create input element
nsIDOMElement cellInput = visualDocument.createElement(HTML.TAG_TD);
cellInput.setAttribute(HTML.ATTR_CLASS, "ins-dr-spnr-e"); //$NON-NLS-1$
- cellInput.setAttribute(HTML.ATTR_VALIGN, HTML.VALUE_TOP_VALIGN);
+ cellInput.setAttribute(HTML.ATTR_VALIGN, HTML.VALUE_TOP_ALIGN);
cellInput.appendChild(createInputElement(visualDocument, sourceElement,
elementData));
row.appendChild(cellInput);
@@ -91,7 +91,7 @@
// create arrows cell
nsIDOMElement cellArrows = visualDocument.createElement(HTML.TAG_TD);
cellArrows.setAttribute(HTML.ATTR_CLASS, "dr-spnr-b"); //$NON-NLS-1$
- cellArrows.setAttribute(HTML.ATTR_VALIGN, HTML.VALUE_MIDDLE_VALIGN);
+ cellArrows.setAttribute(HTML.ATTR_VALIGN, HTML.VALUE_MIDDLE_ALIGN);
cellArrows.appendChild(createArrowsElement(visualDocument, sourceNode));
row.appendChild(cellArrows);
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java 2008-04-22 10:33:01 UTC (rev 7680)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java 2008-04-22 12:29:03 UTC (rev 7681)
@@ -18,11 +18,13 @@
import java.util.Set;
import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
+import org.jboss.tools.jsf.vpe.richfaces.template.util.RichFaces;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMText;
@@ -36,112 +38,96 @@
*/
public class RichFacesListShuttleTemplate extends VpeAbstractTemplate {
- private static final String ATTR_CONTROLS_TYPE = "controlsType";
/**
- *
- */
- private static final String ATTR_SHOW_BUTTON_LABELS = "showButtonLabels";
-
- /**
* source caption key
*/
- private static final String SOURCE_CAPTION = "sourceCaption";
+ private static final String SOURCE_CAPTION = "sourceCaption"; //$NON-NLS-1$
/**
* target caption key
*/
- private static final String TARGET_CAPTION = "targetCaption";
+ private static final String TARGET_CAPTION = "targetCaption"; //$NON-NLS-1$
/**
* path to css
*/
- private static final String STYLE_PATH = "shuttle/shuttle.css";
+ private static final String STYLE_PATH = "shuttle/shuttle.css"; //$NON-NLS-1$
/**
* path to img
*/
- private static final String BUTTON_IMG_PATH = "shuttle/button.gif";
+ private static final String BUTTON_IMG_PATH = "shuttle/button.gif"; //$NON-NLS-1$
/**
* path to img
*/
- private static final String HEADER_IMG_PATH = "shuttle/header.gif";
+ private static final String HEADER_IMG_PATH = "shuttle/header.gif"; //$NON-NLS-1$
/**
* default value of width of box(list)
*/
- private static final String DEFAULT_LIST_WIDTH = "140px";
+ private static final String DEFAULT_LIST_WIDTH = "140px"; //$NON-NLS-1$
/**
* default value of height of box(list)
*/
- private static final String DEFAULT_LIST_HEIGHT = "140px";
+ private static final String DEFAULT_LIST_HEIGHT = "140px"; //$NON-NLS-1$
/**
- * rowClasses attribute name
- */
- private static final String ATTR_ROW_CLASSES = "rowClasses";
-
- /**
- * columnClasses attribute name
- */
- private static final String ATTR_COLUMN_CLASSES = "columnClasses";
-
- /**
* attribute name of width of source list
*/
- private static final String ATTR_SOURCE_LIST_WIDTH = "sourceListWidth";
+ private static final String ATTR_SOURCE_LIST_WIDTH = "sourceListWidth"; //$NON-NLS-1$
/**
* attribute name of width of target list
*/
- private static final String ATTR_TARGET_LIST_WIDTH = "targetListWidth";
+ private static final String ATTR_TARGET_LIST_WIDTH = "targetListWidth"; //$NON-NLS-1$
/**
* attribute name of height of source list
*/
- private static final String ATTR_LISTS_HEIGHT = "listsHeight";
+ private static final String ATTR_LISTS_HEIGHT = "listsHeight"; //$NON-NLS-1$
/**
* If this attribute in source node is "false", 'Copy All' and 'Remove All'
* controls aren't displayed
*/
- private static final String ATTR_FAST_MOVE_CONTROLS_VIZIBLE = "fastMoveControlsVisible";
+ private static final String ATTR_FAST_MOVE_CONTROLS_VIZIBLE = "fastMoveControlsVisible"; //$NON-NLS-1$
/**
* If this attribute in source node is "false", 'Top' and 'Bottom' controls
* aren't displayed.
*/
- private static final String ATTR_FAST_ORDER_CONTROLS_VIZIBLE = "fastOrderControlsVisible";
+ private static final String ATTR_FAST_ORDER_CONTROLS_VIZIBLE = "fastOrderControlsVisible"; //$NON-NLS-1$
/**
* If this attribute in source node is "false", 'Copy' and 'Remove' controls
* aren't displayed
*/
- private static final String ATTR_MOVE_CONTROLS_VIZIBLE = "moveControlsVisible";
+ private static final String ATTR_MOVE_CONTROLS_VIZIBLE = "moveControlsVisible"; //$NON-NLS-1$
/**
* If this attribute in source node is "false", 'Up' and 'Down' controls
* aren't displayed.
*/
- private static final String ATTR_ORDER_CONTROLS_VIZIBLE = "orderControlsVisible";
+ private static final String ATTR_ORDER_CONTROLS_VIZIBLE = "orderControlsVisible"; //$NON-NLS-1$
/**
* default button align
*/
- private static final String DEFAULT_BUTTON_ALIGN = "middle";
+ private static final String DEFAULT_BUTTON_ALIGN = HTML.VALUE_MIDDLE_ALIGN;
/**
* Customizes vertically a position of move/copy controls relatively to
* lists
*/
- private static final String ATTR_MOVE_CONTROLS_VERTICAL_ALIGN = "moveControlsVerticalAlign";
+ private static final String ATTR_MOVE_CONTROLS_VERTICAL_ALIGN = "moveControlsVerticalAlign"; //$NON-NLS-1$
/**
*
* Customizes vertically a position of order controls relatively to lists
*/
- private static final String ATTR_ORDER_CONTROLS_VERTICAL_ALIGN = "orderControlsVerticalAlign";
+ private static final String ATTR_ORDER_CONTROLS_VERTICAL_ALIGN = "orderControlsVerticalAlign"; //$NON-NLS-1$
/**
* button images
@@ -152,16 +138,16 @@
buttonImages = new HashMap<String, String>();
// images of the first set of buttons
- buttonImages.put("copyAllControl", "shuttle/arrow_copy_all.gif");
- buttonImages.put("copyControl", "shuttle/arrow_copy.gif");
- buttonImages.put("removeControl", "shuttle/arrow_remove.gif");
- buttonImages.put("removeAllControl", "shuttle/arrow_remove_all.gif");
+ buttonImages.put("copyAllControl", "shuttle/arrow_copy_all.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ buttonImages.put("copyControl", "shuttle/arrow_copy.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ buttonImages.put("removeControl", "shuttle/arrow_remove.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ buttonImages.put("removeAllControl", "shuttle/arrow_remove_all.gif"); //$NON-NLS-1$ //$NON-NLS-2$
// images of the second set of buttons
- buttonImages.put("topControl", "shuttle/arrow_first.gif");
- buttonImages.put("upControl", "shuttle/arrow_up.gif");
- buttonImages.put("downControl", "shuttle/arrow_down.gif");
- buttonImages.put("bottomControl", "shuttle/arrow_last.gif");
+ buttonImages.put("topControl", "shuttle/arrow_first.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ buttonImages.put("upControl", "shuttle/arrow_up.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ buttonImages.put("downControl", "shuttle/arrow_down.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ buttonImages.put("bottomControl", "shuttle/arrow_last.gif"); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -174,46 +160,46 @@
defaultStyleClasses = new HashMap<String, String>();
// general style
- defaultStyleClasses.put("style", "rich-list-shuttle");
+ defaultStyleClasses.put("style", "rich-list-shuttle"); //$NON-NLS-1$ //$NON-NLS-2$
// styles of the lists
- defaultStyleClasses.put("header", "rich-shuttle-list-header");
- defaultStyleClasses.put("headerCell", "rich-shuttle-header-tab-cell");
- defaultStyleClasses.put("list", "rich-shuttle-list-content");
+ defaultStyleClasses.put("header", "rich-shuttle-list-header"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultStyleClasses.put("headerCell", "rich-shuttle-header-tab-cell"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultStyleClasses.put("list", "rich-shuttle-list-content"); //$NON-NLS-1$ //$NON-NLS-2$
// styles of button's block
- defaultStyleClasses.put("controls", "rich-shuttle-controls");
+ defaultStyleClasses.put("controls", "rich-shuttle-controls"); //$NON-NLS-1$ //$NON-NLS-2$
// styles of the first set of buttons
- defaultStyleClasses.put("copyAllControl",
- "rich-shuttle-button rich-shuttle-copyAll");
- defaultStyleClasses.put("copyControl",
- "rich-shuttle-button rich-shuttle-copy");
- defaultStyleClasses.put("removeControl",
- "rich-shuttle-button rich-shuttle-remove");
- defaultStyleClasses.put("removeAllControl",
- "rich-shuttle-button rich-shuttle-removeAll");
+ defaultStyleClasses.put("copyAllControl", //$NON-NLS-1$
+ "rich-shuttle-button rich-shuttle-copyAll"); //$NON-NLS-1$
+ defaultStyleClasses.put("copyControl", //$NON-NLS-1$
+ "rich-shuttle-button rich-shuttle-copy"); //$NON-NLS-1$
+ defaultStyleClasses.put("removeControl", //$NON-NLS-1$
+ "rich-shuttle-button rich-shuttle-remove"); //$NON-NLS-1$
+ defaultStyleClasses.put("removeAllControl", //$NON-NLS-1$
+ "rich-shuttle-button rich-shuttle-removeAll"); //$NON-NLS-1$
// styles of the second set of buttons
- defaultStyleClasses.put("topControl",
- "rich-shuttle-button rich-shuttle-top");
- defaultStyleClasses.put("upControl",
- "rich-shuttle-button rich-shuttle-up");
- defaultStyleClasses.put("downControl",
- "rich-shuttle-button rich-shuttle-down");
- defaultStyleClasses.put("bottomControl",
- "rich-shuttle-button rich-shuttle-bottom");
+ defaultStyleClasses.put("topControl", //$NON-NLS-1$
+ "rich-shuttle-button rich-shuttle-top"); //$NON-NLS-1$
+ defaultStyleClasses.put("upControl", //$NON-NLS-1$
+ "rich-shuttle-button rich-shuttle-up"); //$NON-NLS-1$
+ defaultStyleClasses.put("downControl", //$NON-NLS-1$
+ "rich-shuttle-button rich-shuttle-down"); //$NON-NLS-1$
+ defaultStyleClasses.put("bottomControl", //$NON-NLS-1$
+ "rich-shuttle-button rich-shuttle-bottom"); //$NON-NLS-1$
// styles of captions
- defaultStyleClasses.put("sourceCaption", "rich-shuttle-source-caption");
- defaultStyleClasses.put("targetCaption", "rich-shuttle-target-caption");
+ defaultStyleClasses.put("sourceCaption", "rich-shuttle-source-caption"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultStyleClasses.put("targetCaption", "rich-shuttle-target-caption"); //$NON-NLS-1$ //$NON-NLS-2$
// styles of rows
- defaultStyleClasses.put("sourceRow", "rich-shuttle-source-row");
- defaultStyleClasses.put("targetRow", "rich-shuttle-target-row");
+ defaultStyleClasses.put("sourceRow", "rich-shuttle-source-row"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultStyleClasses.put("targetRow", "rich-shuttle-target-row"); //$NON-NLS-1$ //$NON-NLS-2$
// styles of rows
- defaultStyleClasses.put("columns", "");
+ defaultStyleClasses.put("columns", ""); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -226,20 +212,20 @@
defaultLabels = new HashMap<String, String>();
// values of the first set of buttons
- defaultLabels.put("copyAllControl", "Copy all");
- defaultLabels.put("copyControl", "Copy");
- defaultLabels.put("removeControl", "Remove");
- defaultLabels.put("removeAllControl", "Remove All");
+ defaultLabels.put("copyAllControl", "Copy all"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultLabels.put("copyControl", "Copy"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultLabels.put("removeControl", "Remove"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultLabels.put("removeAllControl", "Remove All"); //$NON-NLS-1$ //$NON-NLS-2$
// images of the second set of buttons
- defaultLabels.put("topControl", "First");
- defaultLabels.put("upControl", "Up");
- defaultLabels.put("downControl", "Down");
- defaultLabels.put("bottomControl", "Last");
+ defaultLabels.put("topControl", "First"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultLabels.put("upControl", "Up"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultLabels.put("downControl", "Down"); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultLabels.put("bottomControl", "Last"); //$NON-NLS-1$ //$NON-NLS-2$
// caption labels
- defaultLabels.put("sourceCaption", "");
- defaultLabels.put("targetCaption", "");
+ defaultLabels.put("sourceCaption", ""); //$NON-NLS-1$ //$NON-NLS-2$
+ defaultLabels.put("targetCaption", ""); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -250,8 +236,8 @@
static {
fastMoveButtons = new ArrayList<String>();
- fastMoveButtons.add("copyAllControl");
- fastMoveButtons.add("removeAllControl");
+ fastMoveButtons.add("copyAllControl"); //$NON-NLS-1$
+ fastMoveButtons.add("removeAllControl"); //$NON-NLS-1$
}
/**
@@ -261,8 +247,8 @@
static {
moveButtons = new ArrayList<String>();
- moveButtons.add("copyControl");
- moveButtons.add("removeControl");
+ moveButtons.add("copyControl"); //$NON-NLS-1$
+ moveButtons.add("removeControl"); //$NON-NLS-1$
}
/**
@@ -272,8 +258,8 @@
static {
fastOrderButtons = new ArrayList<String>();
- fastOrderButtons.add("topControl");
- fastOrderButtons.add("bottomControl");
+ fastOrderButtons.add("topControl"); //$NON-NLS-1$
+ fastOrderButtons.add("bottomControl"); //$NON-NLS-1$
}
@@ -284,8 +270,8 @@
static {
orderButtons = new ArrayList<String>();
- orderButtons.add("upControl");
- orderButtons.add("downControl");
+ orderButtons.add("upControl"); //$NON-NLS-1$
+ orderButtons.add("downControl"); //$NON-NLS-1$
}
@@ -384,12 +370,14 @@
// prepare data
prepareData(sourceElement);
- ComponentUtil.setCSSLink(pageContext, STYLE_PATH, "shuttle");
+ ComponentUtil.setCSSLink(pageContext, STYLE_PATH, "shuttle"); //$NON-NLS-1$
// create table element
nsIDOMElement basicTable = visualDocument.createElement(HTML.TAG_TABLE);
// ComponentUtil.copyAttributes(sourceNode, basicTable);
- basicTable.setAttribute("class", styleClasses.get("style"));
+ basicTable.setAttribute(HTML.ATTR_CLASS, styleClasses.get("style")); //$NON-NLS-1$
+ basicTable.setAttribute(HTML.ATTR_STYLE, sourceElement
+ .getAttribute(RichFaces.ATTR_STYLE));
VpeCreationData creationData = new VpeCreationData(basicTable);
@@ -404,9 +392,12 @@
// create source box
nsIDOMElement sourceBoxTd = visualDocument.createElement(HTML.TAG_TD);
nsIDOMElement sourceBox = createBox(visualDocument, creationData,
- getChildren(sourceNode), "source");
- sourceBox.setAttribute(HTML.ATTR_STYLE, "width:" + sourceListsWidth
- + ";height:" + listsHeight + ";");
+ getChildren(sourceNode), "source"); //$NON-NLS-1$
+ sourceBox.setAttribute(HTML.ATTR_STYLE, VpeStyleUtil.PARAMETER_WIDTH
+ + VpeStyleUtil.COLON_STRING + sourceListsWidth
+ + VpeStyleUtil.SEMICOLON_STRING + VpeStyleUtil.PARAMETER_HEIGHT
+ + VpeStyleUtil.COLON_STRING + listsHeight
+ + VpeStyleUtil.SEMICOLON_STRING);
sourceBoxTd.appendChild(sourceBox);
// create source buttons
@@ -417,15 +408,19 @@
sourceButtonsTd.appendChild(sourceButtonsBlock);
// set vertical-align attribute for source buttons
- sourceButtonsTd.setAttribute(HTML.ATTR_STYLE, "vertical-align: "
- + sourceButtonsAlign);
+ sourceButtonsTd.setAttribute(HTML.ATTR_STYLE,
+ VpeStyleUtil.PARAMETR_VERTICAL_ALIGN
+ + VpeStyleUtil.COLON_STRING + sourceButtonsAlign);
// create target box
nsIDOMElement targetBoxTd = visualDocument.createElement(HTML.TAG_TD);
nsIDOMElement targetBox = createBox(visualDocument, creationData,
- getChildren(sourceNode), "target");
- targetBox.setAttribute(HTML.ATTR_STYLE, "width:" + targetListsWidth
- + ";height:" + listsHeight + ";");
+ getChildren(sourceNode), "target"); //$NON-NLS-1$
+ targetBox.setAttribute(HTML.ATTR_STYLE, VpeStyleUtil.PARAMETER_WIDTH
+ + VpeStyleUtil.COLON_STRING + targetListsWidth
+ + VpeStyleUtil.SEMICOLON_STRING + VpeStyleUtil.PARAMETER_HEIGHT
+ + VpeStyleUtil.COLON_STRING + listsHeight
+ + VpeStyleUtil.SEMICOLON_STRING);
targetBoxTd.appendChild(targetBox);
// create target buttons
@@ -436,8 +431,9 @@
targetButtonsTd.appendChild(targetButtonsBlock);
// set vertical-align attribute for target buttons
- targetButtonsTd.setAttribute(HTML.ATTR_STYLE, "vertical-align: "
- + targetButtonsAlign);
+ targetButtonsTd.setAttribute(HTML.ATTR_STYLE,
+ VpeStyleUtil.PARAMETR_VERTICAL_ALIGN
+ + VpeStyleUtil.COLON_STRING + targetButtonsAlign);
// add all blocks to "tr"
basicTr.appendChild(sourceBoxTd);
@@ -506,7 +502,7 @@
.createElement(HTML.TAG_TD);
// set attributes
- captionLabelTd.setAttribute(HTML.ATTR_COLSPAN, "2");
+ captionLabelTd.setAttribute(HTML.ATTR_COLSPAN, "2"); //$NON-NLS-1$
captionLabelTd.setAttribute(HTML.ATTR_CLASS, styleClasses.get(labelId));
// if facet is defined for this label add facet to "td"
@@ -541,12 +537,12 @@
VpeCreationData creationData, List<Node> children, String boxId) {
nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
- div.setAttribute(HTML.ATTR_CLASS, styleClasses.get("list"));
+ div.setAttribute(HTML.ATTR_CLASS, styleClasses.get("list")); //$NON-NLS-1$
// create table element
nsIDOMElement box = visualDocument.createElement(HTML.TAG_TABLE);
- box.setAttribute("cellspacing", "0");
- box.setAttribute("cellpadding", "0");
- box.setAttribute("width", "100%");
+ box.setAttribute(HTML.ATTR_CELLSPACING, "0"); //$NON-NLS-1$
+ box.setAttribute(HTML.ATTR_CELLPADDING, "0"); //$NON-NLS-1$
+ box.setAttribute(HTML.ATTR_WIDTH, "100%"); //$NON-NLS-1$
// box.setAttribute("height", listsHeight);
nsIDOMElement header = createHeader(visualDocument, creationData,
@@ -556,8 +552,9 @@
// create body for box
nsIDOMElement tr = visualDocument.createElement(HTML.TAG_TR);
- tr.setAttribute(HTML.ATTR_STYLE, "vertical-align:top");
- tr.setAttribute(HTML.ATTR_CLASS, styleClasses.get(boxId + "Row") + " "
+ tr.setAttribute(HTML.ATTR_STYLE, VpeStyleUtil.PARAMETR_VERTICAL_ALIGN
+ + VpeStyleUtil.COLON_STRING + HTML.VALUE_TOP_ALIGN);
+ tr.setAttribute(HTML.ATTR_CLASS, styleClasses.get(boxId + "Row") + " " //$NON-NLS-1$ //$NON-NLS-2$
+ rowClass);
// VpeChildrenInfo trInfo = new VpeChildrenInfo(tr);
@@ -566,7 +563,7 @@
// add children to "tr" element
int columnCount = 0;
for (Node child : children) {
- if ("column".equals(child.getLocalName())) {
+ if (RichFaces.TAG_COLUMN.equals(child.getLocalName())) {
nsIDOMElement column = visualDocument
.createElement(HTML.TAG_TD);
@@ -620,7 +617,7 @@
// create "div"
nsIDOMElement buttonsBlock = visualDocument.createElement(HTML.TAG_DIV);
buttonsBlock
- .setAttribute(HTML.ATTR_CLASS, styleClasses.get("controls"));
+ .setAttribute(HTML.ATTR_CLASS, styleClasses.get("controls")); //$NON-NLS-1$
for (String buttonId : buttonNames) {
@@ -646,7 +643,7 @@
VpeCreationData creationData, String buttonId) {
nsIDOMElement buttonSpace = visualDocument.createElement(HTML.TAG_DIV);
- buttonSpace.setAttribute(HTML.ATTR_CLASS, "rich-shuttle-control");
+ buttonSpace.setAttribute(HTML.ATTR_CLASS, "rich-shuttle-control"); //$NON-NLS-1$
if (facetLabels.containsKey(buttonId)) {
@@ -663,7 +660,7 @@
metaButton.setAttribute(HTML.ATTR_STYLE, ComponentUtil
.getBackgoundImgStyle(BUTTON_IMG_PATH));
metaButton
- .setAttribute(HTML.ATTR_CLASS, "rich-shuttle-meta-button");
+ .setAttribute(HTML.ATTR_CLASS, "rich-shuttle-meta-button"); //$NON-NLS-1$
// button represent "div" element
@@ -673,13 +670,13 @@
nsIDOMElement buttonContent = visualDocument
.createElement(HTML.TAG_DIV);
buttonContent.setAttribute(HTML.ATTR_CLASS,
- "rich-shuttle-button-content");
+ "rich-shuttle-button-content"); //$NON-NLS-1$
nsIDOMElement buttonImage = visualDocument
.createElement(HTML.TAG_IMG);
- buttonImage.setAttribute(HTML.ATTR_WIDTH, "15");
- buttonImage.setAttribute(HTML.ATTR_HEIGHT, "15");
+ buttonImage.setAttribute(HTML.ATTR_WIDTH, "15"); //$NON-NLS-1$
+ buttonImage.setAttribute(HTML.ATTR_HEIGHT, "15"); //$NON-NLS-1$
ComponentUtil.setImg(buttonImage, buttonImages.get(buttonId));
buttonContent.appendChild(buttonImage);
@@ -708,12 +705,12 @@
// prepare labels
Set<String> labelsKeys = defaultLabels.keySet();
- isShowButtonLabels = !"false".equalsIgnoreCase(sourceElement
- .getAttribute(ATTR_SHOW_BUTTON_LABELS));
+ isShowButtonLabels = !"false".equalsIgnoreCase(sourceElement //$NON-NLS-1$
+ .getAttribute(RichFaces.ATTR_SHOW_BUTTON_LABELS));
for (String key : labelsKeys) {
- String label = sourceElement.getAttribute(key + "Label");
+ String label = sourceElement.getAttribute(key + "Label"); //$NON-NLS-1$
if (label != null)
labels.put(key, label);
@@ -725,9 +722,9 @@
Set<String> styleClassesKeys = defaultStyleClasses.keySet();
for (String key : styleClassesKeys) {
- String styleClass = sourceElement.getAttribute(key + "Class");
+ String styleClass = sourceElement.getAttribute(key + "Class"); //$NON-NLS-1$
if (styleClass != null)
- styleClasses.put(key, defaultStyleClasses.get(key) + " "
+ styleClasses.put(key, defaultStyleClasses.get(key) + " " //$NON-NLS-1$
+ styleClass);
else
styleClasses.put(key, defaultStyleClasses.get(key));
@@ -740,49 +737,51 @@
Node child = children.item(i);
if ((child instanceof Element)
- && ("facet".equals(child.getLocalName()))
+ && (RichFaces.TAG_FACET.equals(child.getLocalName()))
&& (defaultLabels.containsKey(((Element) child)
- .getAttribute("name")))) {
+ .getAttribute(RichFaces.ATTR_NAME)))) {
- facetLabels.put(((Element) child).getAttribute("name"), child);
+ facetLabels.put(((Element) child)
+ .getAttribute(RichFaces.ATTR_NAME), child);
}
}
// get rowClass
- String rowClasses = sourceElement.getAttribute(ATTR_ROW_CLASSES);
+ String rowClasses = sourceElement
+ .getAttribute(RichFaces.ATTR_ROW_CLASSES);
// if this attribue exist then
if (rowClasses != null) {
- rowClass = rowClasses.split(",")[0];
+ rowClass = rowClasses.split("[,;]")[0]; //$NON-NLS-1$
}
String columnClassesAtribute = sourceElement
- .getAttribute(ATTR_COLUMN_CLASSES);
+ .getAttribute(RichFaces.ATTR_COLUMN_CLASSES);
if (columnClassesAtribute != null)
- columnClasses = Arrays.asList(columnClassesAtribute.split(","));
+ columnClasses = Arrays.asList(columnClassesAtribute.split("[,;]")); //$NON-NLS-1$
else
columnClasses = new ArrayList<String>();
// if "controlsType" attribute is not "none" (if buttons are visible)
- if (!"none".equalsIgnoreCase(sourceElement
- .getAttribute(ATTR_CONTROLS_TYPE))) {
+ if (!"none".equalsIgnoreCase(sourceElement //$NON-NLS-1$
+ .getAttribute(RichFaces.ATTR_CONTROLS_TYPE))) {
// prepare source buttons
- if (!"false".equalsIgnoreCase(sourceElement
+ if (!"false".equalsIgnoreCase(sourceElement //$NON-NLS-1$
.getAttribute(ATTR_FAST_MOVE_CONTROLS_VIZIBLE)))
sourceButtons.addAll(fastMoveButtons);
- if (!"false".equalsIgnoreCase(sourceElement
+ if (!"false".equalsIgnoreCase(sourceElement //$NON-NLS-1$
.getAttribute(ATTR_MOVE_CONTROLS_VIZIBLE)))
sourceButtons.addAll(sourceButtons.size() == 0 ? 0 : 1,
moveButtons);
// prepare target buttons
- if (!"false".equalsIgnoreCase(sourceElement
+ if (!"false".equalsIgnoreCase(sourceElement //$NON-NLS-1$
.getAttribute(ATTR_FAST_ORDER_CONTROLS_VIZIBLE)))
targetButtons.addAll(fastOrderButtons);
- if (!"false".equalsIgnoreCase(sourceElement
+ if (!"false".equalsIgnoreCase(sourceElement //$NON-NLS-1$
.getAttribute(ATTR_ORDER_CONTROLS_VIZIBLE)))
targetButtons.addAll(targetButtons.size() == 0 ? 0 : 1,
orderButtons);
@@ -858,8 +857,9 @@
Node child = children.item(i);
if ((child instanceof Element)
- && ("facet".equals(child.getLocalName()))
- && (name.equals(((Element) child).getAttribute("name")))) {
+ && (RichFaces.TAG_FACET.equals(child.getLocalName()))
+ && (name.equals(((Element) child)
+ .getAttribute(RichFaces.ATTR_NAME)))) {
facet = (Element) child;
@@ -898,7 +898,7 @@
private nsIDOMElement createHeader(nsIDOMDocument visualDocument,
VpeCreationData creationData, List<Node> children) {
- if (!haveFacet(children, "header"))
+ if (!haveFacet(children, "header")) //$NON-NLS-1$
return null;
nsIDOMElement header = visualDocument.createElement(HTML.TAG_TR);
@@ -906,26 +906,26 @@
header.setAttribute(HTML.ATTR_CLASS, styleClasses.get(header));
for (Node child : children) {
- if ("column".equals(child.getLocalName())) {
+ if ("column".equals(child.getLocalName())) { //$NON-NLS-1$
nsIDOMElement headerCell = visualDocument
.createElement(HTML.TAG_TH);
- headerCell.setAttribute("background", "file:///"
+ headerCell.setAttribute("background", "file:///" //$NON-NLS-1$ //$NON-NLS-2$
+ ComponentUtil
.getAbsoluteResourcePath(HEADER_IMG_PATH));
// get header classes
- String headerClass = styleClasses.get("headerCell");
+ String headerClass = styleClasses.get("headerCell"); //$NON-NLS-1$
if ((child instanceof Element)
- && (((Element) child).getAttribute("headerClass")) != null) {
- headerClass += " "
- + ((Element) child).getAttribute("headerClass");
+ && (((Element) child).getAttribute("headerClass")) != null) { //$NON-NLS-1$
+ headerClass += " " //$NON-NLS-1$
+ + ((Element) child).getAttribute("headerClass"); //$NON-NLS-1$
}
headerCell.setAttribute(HTML.ATTR_CLASS, headerClass);
- Element facet = getNodeFacet(child, "header");
+ Element facet = getNodeFacet(child, "header"); //$NON-NLS-1$
if (facet != null) {
VpeChildrenInfo headerCellInfo = new VpeChildrenInfo(
headerCell);
@@ -938,7 +938,7 @@
nsIDOMElement pre = visualDocument
.createElement(HTML.TAG_PRE);
- pre.appendChild(visualDocument.createTextNode(""));
+ pre.appendChild(visualDocument.createTextNode("")); //$NON-NLS-1$
headerCell.appendChild(pre);
}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java 2008-04-22 10:33:01 UTC (rev 7680)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/util/RichFaces.java 2008-04-22 12:29:03 UTC (rev 7681)
@@ -21,11 +21,22 @@
private RichFaces() {
}
+ /**
+ * jsf tags which are used with richFaces
+ */
+ public static final String TAG_COLUMN = "column"; //$NON-NLS-1$
+ public static final String TAG_FACET = "facet"; //$NON-NLS-1$
+
+ public static final String ATTR_NAME = "name"; //$NON-NLS-1$
public static final String ATTR_STYLE = "style"; //$NON-NLS-1$
public static final String ATTR_WIDTH = "width"; //$NON-NLS-1$
public static final String ATTR_VALUE = "value"; //$NON-NLS-1$
public static final String ATTR_INPUT_SIZE = "inputSize"; //$NON-NLS-1$
public static final String ATTR_INPUT_CLASS = "inputClass"; //$NON-NLS-1$
public static final String ATTR_INPUT_STYLE = "inputStyle"; //$NON-NLS-1$
+ public static final String ATTR_ROW_CLASSES = "rowClasses"; //$NON-NLS-1$
+ public static final String ATTR_COLUMN_CLASSES = "columnClasses"; //$NON-NLS-1$
+ public static final String ATTR_CONTROLS_TYPE = "controlsType"; //$NON-NLS-1$
+ public static final String ATTR_SHOW_BUTTON_LABELS = "showButtonLabels"; //$NON-NLS-1$
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-04-22 10:33:01 UTC (rev 7680)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-04-22 12:29:03 UTC (rev 7681)
@@ -85,8 +85,8 @@
public static final String ATTR_COLS = "cols"; //$NON-NLS-1$
public static final String ATTR_VALIGN = "valign"; //$NON-NLS-1$
- public static final String VALUE_TOP_VALIGN = "top"; //$NON-NLS-1$
- public static final String VALUE_MIDDLE_VALIGN = "middle"; //$NON-NLS-1$
+ public static final String VALUE_TOP_ALIGN = "top"; //$NON-NLS-1$
+ public static final String VALUE_MIDDLE_ALIGN = "middle"; //$NON-NLS-1$
public static final String VALUE_TEXT_TYPE = "text"; //$NON-NLS-1$
public static final String VALUE_IMAGE_TYPE = "image"; //$NON-NLS-1$
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java 2008-04-22 10:33:01 UTC (rev 7680)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java 2008-04-22 12:29:03 UTC (rev 7681)
@@ -46,6 +46,7 @@
public static final String PARAMETER_WIDTH = "width"; //$NON-NLS-1$
public static final String PARAMETER_HEIGHT = "height"; //$NON-NLS-1$
public static final String PARAMETR_BACKGROND = "background"; //$NON-NLS-1$
+ public static final String PARAMETR_VERTICAL_ALIGN = "vertical-align"; //$NON-NLS-1$
public static final String VALUE_ABSOLUTE = "absolute"; //$NON-NLS-1$
17 years, 8 months
JBoss Tools SVN: r7680 - trunk/jsf/docs/jsf_tools_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: tromanovich
Date: 2008-04-22 06:33:01 -0400 (Tue, 22 Apr 2008)
New Revision: 7680
Modified:
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_config_file.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/managed_beans.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-301 - JSF Tools Ref Guide update
JSF Tools Reference Guide spelling checking
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-22 09:55:55 UTC (rev 7679)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_config_file.xml 2008-04-22 10:33:01 UTC (rev 7680)
@@ -219,7 +219,7 @@
<section id="ErrorReporting3324">
<title>Error Reporting</title>
- <para>When you are developing your project, error checking is iconstantly provided.
+ <para>When you are developing your project, error checking is constantly provided.
This greatly reduces your development time as it allows you to catch
many of the errors during development.</para>
<para>Errors will be reported by <link
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/managed_beans.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/managed_beans.xml 2008-04-22 09:55:55 UTC (rev 7679)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/managed_beans.xml 2008-04-22 10:33:01 UTC (rev 7680)
@@ -13,7 +13,7 @@
<title>Managed Beans</title>
- <para>There are lots of power to work with
+ <para>There is lots of power to work with
<property>managed beans</property>.</para>
<itemizedlist>
<listitem>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml 2008-04-22 09:55:55 UTC (rev 7679)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml 2008-04-22 10:33:01 UTC (rev 7680)
@@ -75,9 +75,9 @@
</mediaobject>
</figure>
- <para>There is a number of predefined project templates that are flexible and
+ <para>There are a number of predefined project templates that are flexible and
easily customizable. Thus you can pick a different template
- on which the project sImporting Existing hould be based to. Almost all
+ on which the projects Importing Existing should be based to. Almost all
templates come in two variations: with jsf libraries and
without ones.</para>
<figure>
@@ -359,7 +359,7 @@
</mediaobject>
</figure>
- <para>Once the file have been created, it should be open in a
+ <para>Once the file has been created, it should be open in a
special <link
linkend="jsf_config_file"
>Faces Config Editor</link>.</para>
17 years, 8 months
JBoss Tools SVN: r7679 - in trunk/jsf/docs: jsf_tools_tutorial/en/images and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: tromanovich
Date: 2008-04-22 05:55:55 -0400 (Tue, 22 Apr 2008)
New Revision: 7679
Removed:
trunk/jsf/docs/jsf_tools_tutorial/en/images/business_application/
Modified:
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/creation_and_registration.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/introduction.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_config_file.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_project_verification.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/managed_beans.xml
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml
trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsf_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-301 - JSF Tools Ref Guide update
JSF Tools Reference Guide and JSF Tools Tutorial text updating
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-22 08:52:11 UTC (rev 7678)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/creation_and_registration.xml 2008-04-22 09:55:55 UTC (rev 7679)
@@ -16,7 +16,7 @@
<title>Create and Register a Custom Converter</title>
- <para>With JBDS it's also possible to create a
+ <para><!-- With JBDS -->It's also possible to create a
custom Converter in order to specify your own converting rules. Let's look at how you can do this.</para>
<para>To create and register a custom converter it's necessary to
@@ -140,7 +140,7 @@
<title>Create and Register a Custom Validator</title>
- <para>With the help of JBDS it's also quite easy to develop your
+ <para>It's also quite easy to develop your
own custom Validators. You should perform the actions similar to
previous. Go through the following steps:</para>
<itemizedlist>
@@ -197,8 +197,7 @@
<para>In the Validator section you can see your <emphasis>
<property>Validator-id</property>
</emphasis> and <emphasis>
- <property>Validator-class</property>
- </emphasis>. To generate the source code click on <emphasis>
+ <property>Validator-class</property></emphasis>. To generate the source code click on <emphasis>
<property>Validator-class</property>.
</emphasis></para>
</listitem>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/introduction.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/introduction.xml 2008-04-22 08:52:11 UTC (rev 7678)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/introduction.xml 2008-04-22 09:55:55 UTC (rev 7679)
@@ -14,13 +14,12 @@
<title>Introduction</title>
- <para>JBoss Developer Studio is especially designed for supporting JSF and JSF-related
- technologies. JBDS provides extensible and exemplary tools for building JSF-based
+ <para>JSF Tools are especially designed for supporting JSF and JSF-related
+ technologies. JSF Tools provide extensible and exemplary tools for building JSF-based
applications as well as adding JSF capabilities to existing web projects, importing
- JSF projects (created outside JBDS) and choosing any JSF implementation while
+ JSF projects and choosing any JSF implementation while
developing JSF application.</para>
- <para>In this guide we provide you with the information on JSF tooling in JBoss Developer Studio
- which allows you to develop JSF applications much faster and with far fewer
+ <para>In this guide we provide you with the information on JSF tooling which allows you to develop JSF applications much faster and with far fewer
errors so sparing your time.</para>
</chapter>
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-22 08:52:11 UTC (rev 7678)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_config_file.xml 2008-04-22 09:55:55 UTC (rev 7679)
@@ -219,10 +219,10 @@
<section id="ErrorReporting3324">
<title>Error Reporting</title>
- <para>When you are developing your project, JBoss Developer Studio constantly provides
- error checking. This greatly reduces your development time as it allows you to catch
+ <para>When you are developing your project, error checking is iconstantly provided.
+ This greatly reduces your development time as it allows you to catch
many of the errors during development.</para>
- <para>Errors will be reported by JBoss Developer Studio's <link
+ <para>Errors will be reported by <link
linkend="jsf_project_verification"> verification</link> facility:</para>
<figure>
<title>Error Reporting in Source View</title>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_project_verification.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_project_verification.xml 2008-04-22 08:52:11 UTC (rev 7678)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_project_verification.xml 2008-04-22 09:55:55 UTC (rev 7679)
@@ -14,9 +14,9 @@
<title>JSF Project Verification</title>
- <para>In this chapter we'll discuss a possible verification that you can take advantage of </para>
-
- <para>JBoss Developer Studio checks for many different rules for a JSF
+ <para>In this chapter we'll discuss a possible verification that you can take advantage of.</para>
+ <!-- JBoss Developer Studio checks for many different rules for a JSF project -->
+ <para>Many different rules are checked for a JSF
project that can be configured by selecting <emphasis>
<property>Window > Preferences</property>
</emphasis> from the menu bar, selecting <emphasis>
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-22 08:52:11 UTC (rev 7678)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/jsf_support.xml 2008-04-22 09:55:55 UTC (rev 7679)
@@ -13,7 +13,7 @@
<title>JavaServer Faces Support</title>
- <para>With Developer Studio, we don't lock you into any one <property>JavaServer
+ <para>We don't lock you into any one <property>JavaServer
Faces</property> implementation. You can always select the one which is
necessary for you while <link linkend="new_jsf_project">creating a new JSF
project</link>, <link linkend="add_jsf_capability">adding JSF capability</link> to
@@ -39,12 +39,11 @@
<section id="FaceletsSupport865">
<title>Facelets Support</title>
- <para>In this section we will focus more on all concepts that JBDS integrates for
+ <para>In this section we will focus more on all concepts that are integrated for
working with Facelets.</para>
<para>The Facelets extends JavaServer Faces by providing a lightweight framework
- that radically simplifies the design of presentation pages for JSF. JBoss
- Developer Studio provides support for Facelets in a variety of ways that we
+ that radically simplifies the design of presentation pages for JSF. Facelets can be used in a variety of ways that we
will consider further in this section.</para>
<section>
@@ -254,9 +253,9 @@
</section>
<section>
<title>Open On feature</title>
- <para>Finally, JBDS provides Eclipse's <emphasis>
+ <para>Finally, Eclipse's <emphasis>
<property>OpenOn</property>
- </emphasis> feature for editing Facelets files. Using this feature,
+ </emphasis> feature for editing Facelets files is supported. Using this feature,
you can easily navigate between the <property>Facelets
templates</property> and other parts of your projects. Just by
holding down the Control key while hovering the mouse cursor over a
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/managed_beans.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/managed_beans.xml 2008-04-22 08:52:11 UTC (rev 7678)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/managed_beans.xml 2008-04-22 09:55:55 UTC (rev 7679)
@@ -13,7 +13,7 @@
<title>Managed Beans</title>
- <para>JBoss Developer Studio gives you lots of power to work with
+ <para>There are lots of power to work with
<property>managed beans</property>.</para>
<itemizedlist>
<listitem>
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml 2008-04-22 08:52:11 UTC (rev 7678)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/projects.xml 2008-04-22 09:55:55 UTC (rev 7679)
@@ -12,8 +12,7 @@
</chapterinfo>
<title>Projects</title>
- <para>To take an advantage of JSF support in <property>JBoss Developer
- Studio</property> firstly you should perform one of the next
+ <para>To take an advantage of JSF firstly you should perform one of the next
steps:</para>
<itemizedlist>
@@ -41,8 +40,7 @@
<para>If you want your project has already contained all JSF
libraries, tag libraries and JSF configuration file, just
- organize a new brand JSF project. <property>JBoss Developer
- Studio</property> allows to do this easily with the
+ organize a new brand JSF project. It is possible to do this easily with the
help of the special wizard. To get it, select<emphasis>
<property> File > New > Project
> JBoos Tools Web > JSF
@@ -77,10 +75,9 @@
</mediaobject>
</figure>
- <para><property>JBoss Developer Studio</property> comes with a
- number of predefined project templates that are flexible and
+ <para>There is a number of predefined project templates that are flexible and
easily customizable. Thus you can pick a different template
- on which the project should be based to. Almost all
+ on which the project sImporting Existing hould be based to. Almost all
templates come in two variations: with jsf libraries and
without ones.</para>
<figure>
@@ -245,7 +242,7 @@
<para>At this point you can open <emphasis>
<property>faces-config.xml</property>
</emphasis> and start working on your application.
- <property>JBDS</property> provides a lot of features
+ There are a lot of features
to develop JSF applications. We will describe the features
further.</para>
</section>
@@ -254,8 +251,7 @@
<title>Importing Existing JSF Projects with Any Structure</title>
- <para>For detailed information on migration projects to JBoss
- Developer Studio see <ulink
+ <para>For detailed information on migration projects see <ulink
url="../../Exadel-migration/html_single/index.html"
>Migration Guide</ulink>. </para>
@@ -264,12 +260,10 @@
<title>Adding JSF Capability to Any Existing Eclipse Project</title>
- <para>With <property>JBoss Developer Studio</property> it's
- also possible to add <property>JSF capability</property>
+ <para>It's also possible to add <property>JSF capability</property>
(JSF libraries, tag libraries) to any existing Eclipse
project in your workspace. After that you'll be
- able to make use of such <property>JBoss Developer
- Studio</property> editors as JSF configuration editor, JBoss
+ able to make use of such editors as JSF configuration editor, JBoss
Tools JSP editor and any others.</para>
<para>Right click the project and select <emphasis>
<property>JBoss Tools > Add JSF
@@ -305,8 +299,7 @@
<para>Make sure to select <emphasis>
<property>Add Libraries</property>
- </emphasis> for <property>JBoss Developer Studio</property>
- to add all required JSF related libraries to this project.</para>
+ </emphasis> to add all required JSF related libraries to this project.</para>
<para>The <emphasis>
<property>Context Path</property>
@@ -377,7 +370,7 @@
<para>Template is a set of files that serve as a basis to facilitate
the creation of a new project. Project templates provide
content and structure for a project.</para>
- <para><property>JBoss Developer Studio</property> has a powerful
+ <para>There is a powerful
templating capability for creating new and importing
existing Struts and JSF projects. This templating facility
has a variety of aspects to consider. But, let's
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-22 08:52:11 UTC (rev 7678)
+++ trunk/jsf/docs/jsf_tools_tutorial/en/modules/jsf_application.xml 2008-04-22 09:55:55 UTC (rev 7679)
@@ -14,14 +14,12 @@
<?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
+ </property>using the 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
+ way demonstrating some of the powerful features of JBoss Tools. You will
+ design the JSF application. We'll assume that you have already launched Eclipse and also that the Web Development 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>
@@ -111,8 +109,8 @@
<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>
+ we will complete the coding for the JSP presentation files.
+ We can do all of this in the Diagram mode of the configuration file editor.</para>
<section id="AddingTwoViewsJSPPages">
<?dbhtml filename="AddingTwoViewsJSPPages.html"?>
<title>Adding Two Views (JSP Pages)</title>
@@ -588,9 +586,7 @@
<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
+ <para>Everything is now ready for running our application by using the JBoss engine. For controlling JBoss server there is JBoss
Server view:</para>
<figure>
<title>JBoss Server View</title>
17 years, 8 months
JBoss Tools SVN: r7678 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor: util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-04-22 04:52:11 -0400 (Tue, 22 Apr 2008)
New Revision: 7678
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1773
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-04-22 08:28:02 UTC (rev 7677)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-04-22 08:52:11 UTC (rev 7678)
@@ -904,21 +904,38 @@
VpeElementMapping elementMapping = null;
VpeNodeMapping nodeMapping = domMapping.getNodeMapping(sourceNode);
if (nodeMapping instanceof VpeElementMapping) {
+
elementMapping = (VpeElementMapping) nodeMapping;
if (elementMapping != null && elementMapping.getTemplate() != null) {
- Node updateNode = elementMapping.getTemplate()
- .getNodeForUptate(pageContext,
- elementMapping.getSourceNode(),
- elementMapping.getVisualNode(),
- elementMapping.getData());
- if (updateNode != null && updateNode != sourceNode) {
- updateNode(updateNode);
- return;
- }
- }
+ Node updateNode = elementMapping.getTemplate()
+ .getNodeForUptate(pageContext,
+ elementMapping.getSourceNode(),
+ elementMapping.getVisualNode(),
+ elementMapping.getData());
+
+ /*
+ * special processing of "style" element
+ *
+ * for unification of updating nodes - or redevelop updating
+ * mechanism (for example : transfer this function to template )
+ * or redevelop template of "style" element
+ */
+ if (HTML.TAG_STYLE.equalsIgnoreCase(sourceNode.getNodeName())) {
+ // refresh style node
+ VpeStyleUtil.refreshStyleElement(this, elementMapping);
+ return;
+ }
+ if (updateNode != null && updateNode != sourceNode) {
+ updateNode(updateNode);
+ return;
+ }
+ }
}
+
+
nsIDOMNode visualOldNode = domMapping.remove(sourceNode);
getSourceNodes().remove(sourceNode);
+
if (sourceNode instanceof INodeNotifier) {
((INodeNotifier) sourceNode).removeAdapter(getSorceAdapter());
}
@@ -1006,7 +1023,7 @@
if (sourceParent != null && sourceParent.getLocalName() != null) {
String sourceParentName = sourceParent.getLocalName();
if (HTML.TAG_TEXTAREA.equalsIgnoreCase(sourceParentName)
- || HTML.TAG_OPTION.equalsIgnoreCase(sourceParentName)) {
+ || HTML.TAG_OPTION.equalsIgnoreCase(sourceParentName) || HTML.TAG_STYLE.equalsIgnoreCase(sourceParentName)) {
updateNode(sourceText.getParentNode());
return true;
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java 2008-04-22 08:28:02 UTC (rev 7677)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java 2008-04-22 08:52:11 UTC (rev 7678)
@@ -13,6 +13,7 @@
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
+import java.util.Map;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
@@ -25,11 +26,15 @@
import org.jboss.tools.common.model.project.IModelNature;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.jst.web.project.WebProject;
+import org.jboss.tools.vpe.editor.VpeVisualDomBuilder;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.css.ResourceReference;
-import org.jboss.tools.vpe.editor.template.expression.VpeFunctionSrc;
-import org.jboss.tools.vpe.editor.template.expression.VpeValue;
+import org.jboss.tools.vpe.editor.mapping.VpeElementMapping;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
import org.w3c.dom.Element;
+import org.w3c.dom.Node;
public class VpeStyleUtil {
@@ -621,5 +626,62 @@
}
return rootPath;
}
+
+ /**
+ * refresh style element
+ * @param visualDomBuilder
+ * @param sourceElement
+ * @param oldStyleNode
+ * @return
+ */
+ public static void refreshStyleElement(
+ VpeVisualDomBuilder visualDomBuilder,
+ VpeElementMapping elementMapping) {
+ nsIDOMNode value = null;
+
+ /*
+ * data property( of "style's" elementMapping ) contains Map<Object,nsIDOMNode>.
+ * There is only one "style" visual element in this map. So we get this
+ * element from map
+ *
+ * there is potential danger in this manner of keeping "style"
+ * element ( use property "data" of Object type )
+ */
+
+ Map<Object, nsIDOMNode> map = (Map<Object, nsIDOMNode>) elementMapping
+ .getData();
+
+ // get "style" element
+ if (map != null) {
+
+ if (map.size() > 0) {
+ value = map.values().iterator().next();
+ }
+ }
+
+ if (value == null)
+ return;
+
+ // get new value of style element
+ Node textNode = elementMapping.getSourceNode().getFirstChild();
+ String text = null;
+
+ if (textNode != null) {
+ text = textNode.getNodeValue();
+ }
+
+
+ nsIDOMNodeList list = value.getChildNodes();
+
+ // remove all children of style element
+ for (int i = 0; i < list.getLength(); i++)
+ value.removeChild(list.item(i));
+
+ // add new value of style element
+ value.appendChild(visualDomBuilder.getXulRunnerEditor()
+ .getDOMDocument().createTextNode(text));
+
+ }
+
}
\ No newline at end of file
17 years, 8 months
JBoss Tools SVN: r7677 - trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-04-22 04:28:02 -0400 (Tue, 22 Apr 2008)
New Revision: 7677
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/WSDL2JavaCommnad.java
Log:
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/WSDL2JavaCommnad.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/WSDL2JavaCommnad.java 2008-04-22 07:55:08 UTC (rev 7676)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/WSDL2JavaCommnad.java 2008-04-22 08:28:02 UTC (rev 7677)
@@ -47,7 +47,7 @@
try {
- InputStreamReader ir = new InputStreamReader(Runtime.getRuntime().exec(commandLine).getInputStream());
+ InputStreamReader ir = new InputStreamReader(Runtime.getRuntime().exec(commandLine, null, new File(binLocation)).getInputStream());
LineNumberReader input = new LineNumberReader(ir);
String str = "";
17 years, 8 months
JBoss Tools SVN: r7676 - in trunk/ws/plugins: org.jboss.tools.ws.creation.core/META-INF and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-04-22 03:55:08 -0400 (Tue, 22 Apr 2008)
New Revision: 7676
Modified:
trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml
trunk/ws/plugins/org.jboss.tools.ws.creation.core/META-INF/MANIFEST.MF
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/InitialCommnad.java
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/WSDL2JavaCommnad.java
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/MANIFEST.MF
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java
Log:
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml 2008-04-22 06:21:23 UTC (rev 7675)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml 2008-04-22 07:55:08 UTC (rev 7676)
@@ -12,7 +12,7 @@
<member category="jbossws.category "/>
</project-facet>
- <project-facet-version facet="jbossws.core" version="1.1">
+ <project-facet-version facet="jbossws.core" version="1.0">
<constraint>
<requires facet="jst.web" version="2.2,2.3,2.4,2.5"/>
</constraint>
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/META-INF/MANIFEST.MF 2008-04-22 06:21:23 UTC (rev 7675)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/META-INF/MANIFEST.MF 2008-04-22 07:55:08 UTC (rev 7676)
@@ -11,7 +11,8 @@
org.eclipse.wst.ws,
org.jboss.tools.ws.ui,
org.eclipse.core.resources,
- org.eclipse.jst.ws
+ org.eclipse.jst.ws,
+ org.jboss.tools.ws.core
Eclipse-LazyStart: true
Export-Package: org.jboos.tools.ws.creation.core,
org.jboos.tools.ws.creation.core.commands,
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/InitialCommnad.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/InitialCommnad.java 2008-04-22 06:21:23 UTC (rev 7675)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/InitialCommnad.java 2008-04-22 07:55:08 UTC (rev 7676)
@@ -31,4 +31,9 @@
return Status.OK_STATUS;
}
+ public ServiceModel getWebServiceDataModel()
+ {
+ return model;
+ }
+
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/WSDL2JavaCommnad.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/WSDL2JavaCommnad.java 2008-04-22 06:21:23 UTC (rev 7675)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboos/tools/ws/creation/core/commands/WSDL2JavaCommnad.java 2008-04-22 07:55:08 UTC (rev 7676)
@@ -1,5 +1,6 @@
package org.jboos.tools.ws.creation.core.commands;
+import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
@@ -17,6 +18,7 @@
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
import org.jboos.tools.ws.creation.core.data.ServiceModel;
import org.jboos.tools.ws.creation.core.utils.JBossWSCreationUtils;
+import org.jboss.tools.ws.core.JbossWSCorePlugin;
public class WSDL2JavaCommnad extends AbstractDataModelOperation{
@@ -31,21 +33,14 @@
public IStatus execute(IProgressMonitor monitor, IAdaptable info)
throws ExecutionException {
- PreferenceStore prs = new PreferenceStore("jbosswsui.properties");
- try {
- prs.load();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- String runtimeLocation = prs.getString("jbosswsruntimelocation");//JBossWSUIPlugin.getDefault().getPreferenceStore().getString("jbosswsruntimelocation");
- String binLocation = runtimeLocation + "bin";
+ String runtimeLocation = JbossWSCorePlugin.getDefault().getPreferenceStore().getString("jbosswsruntimelocation");
+ String binLocation = runtimeLocation + Path.SEPARATOR + "bin";
String commandLine = binLocation + Path.SEPARATOR + "wsconsume.sh";
String args = getCommandlineArgs();
- commandLine = commandLine + " -k -o " + args + " " + model.getWsdlURI();
+ commandLine = commandLine + " -k " + args + " " + model.getWsdlURI();
commandLine = "sh " + commandLine;
@@ -83,12 +78,27 @@
}
private String getCommandlineArgs(){
+ String commandLine;
String project = model.getWebProjectName();
String projectRoot = JBossWSCreationUtils.getProjectRoot(project).toOSString();
- String targetSrc = projectRoot + Path.SEPARATOR + "src";
+ commandLine = "-o " + projectRoot + Path.SEPARATOR + "src";
- return targetSrc;
+ String customePkg = model.getPackageText();
+ if(customePkg != null && !"".equals(customePkg)){
+ commandLine += " -p " + customePkg;
+ }
+ String bindingFileLocation = model.getBindingFileLocation();
+ if(bindingFileLocation != null && !"".equals(bindingFileLocation)){
+ File bindingFile = new File(bindingFileLocation);
+ if(bindingFile.exists()){
+ commandLine += " -b " + bindingFileLocation;
+ }
+ }
+
+ return commandLine;
+
}
+
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/MANIFEST.MF 2008-04-22 06:21:23 UTC (rev 7675)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/META-INF/MANIFEST.MF 2008-04-22 07:55:08 UTC (rev 7676)
@@ -19,5 +19,6 @@
org.eclipse.wst.command.env,
org.eclipse.jdt.core,
org.eclipse.jst.ws.ui,
- org.jboos.tools.ws.creation.core
+ org.jboos.tools.ws.creation.core,
+ org.jboss.tools.ws.core
Eclipse-LazyStart: true
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml 2008-04-22 06:21:23 UTC (rev 7675)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml 2008-04-22 07:55:08 UTC (rev 7676)
@@ -18,24 +18,22 @@
</extension>
- <!-- define support for Axis2 Java bean bottom up and top-down support in web projects -->
<extension point="org.eclipse.jst.ws.consumption.ui.serviceRuntimes">
<serviceRuntime
id="org.jboss.tools.ws.creation.java"
serviceImplementationTypeId="org.eclipse.jst.ws.wsImpl.java"
runtimeId="org.jboss.tools.ws.creation.jbossWebServiceRT"
- bottomUp="true"
+ bottomUp="false"
topDown="true"
class="org.jboss.tools.ws.creation.ui.wsrt.JBossWebServiceRuntime">
<required-facet-version facet="jst.web" version="2.3" allow-newer="true"/>
- <!--required-facet-versiond facet="jbossws.core" version="1.0" allow-newer="true" />
- <required-facet-version facet="jbossws.ext" version="1.0" allow-newer="true" / -->
+ <required-facet-versiond facet="jbossws.core" version="1.0" allow-newer="true" />
+ <!--required-facet-version facet="jbossws.ext" version="1.0" allow-newer="true" / -->
</serviceRuntime>
</extension>
- <!-- define support for Axis Java clients in Web projects -->
<extension point="org.eclipse.jst.ws.consumption.ui.clientRuntimes">
<clientRuntime
id="org.jboss.tools.ws..consumption.web"
@@ -43,9 +41,8 @@
runtimeId="org.jboss.tools.ws.creation.jbossWebServiceRT"
class="org.jboss.tools.ws.creation.ui.wsrt.JBossWebServiceRuntime">
- <!--required-facet-version facet="jst.web" version="2.3" allow-newer="true" />
- <required-facet-version facet="axis2.core" version="1.1" allow-newer="true" />
- <required-facet-version facet="axis2.ext" version="1.1" allow-newer="true" / -->
+ <required-facet-version facet="jst.web" version="2.3" allow-newer="true" />
+
</clientRuntime>
</extension>
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java 2008-04-22 06:21:23 UTC (rev 7675)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java 2008-04-22 07:55:08 UTC (rev 7676)
@@ -3,6 +3,7 @@
import java.awt.image.SampleModel;
import java.util.Vector;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.wst.command.internal.env.core.ICommandFactory;
import org.eclipse.wst.command.internal.env.core.SimpleCommandFactory;
import org.eclipse.wst.common.environment.IEnvironment;
@@ -14,6 +15,7 @@
import org.jboos.tools.ws.creation.core.commands.InitialCommnad;
import org.jboos.tools.ws.creation.core.commands.WSDL2JavaCommnad;
import org.jboos.tools.ws.creation.core.data.ServiceModel;
+import org.jboss.tools.ws.core.command.JbossWSRuntimeCommand;
public class JBossWebService extends AbstractWebService {
@@ -45,6 +47,7 @@
if (ctx.getScenario().getValue() == WebServiceScenario.TOPDOWN) {
commands.add(new InitialCommnad(model, this, WebServiceScenario.TOPDOWN));
commands.add(new WSDL2JavaCommnad(model));
+ commands.add(new JbossWSRuntimeCommand(ResourcesPlugin.getWorkspace().getRoot().getProject(project)));
}
return new SimpleCommandFactory(commands);
17 years, 8 months
JBoss Tools SVN: r7675 - in trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui: preferences and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-04-22 02:21:23 -0400 (Tue, 22 Apr 2008)
New Revision: 7675
Removed:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JBossWSUIPlugin.java
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java
Log:
Deleted: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JBossWSUIPlugin.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JBossWSUIPlugin.java 2008-04-22 06:18:33 UTC (rev 7674)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JBossWSUIPlugin.java 2008-04-22 06:21:23 UTC (rev 7675)
@@ -1,50 +0,0 @@
-package org.jboss.tools.ws.ui;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class JbossWSUIPlugin extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.tools.ws.ui";
-
- // The shared instance
- private static JbossWSUIPlugin plugin;
-
- /**
- * The constructor
- */
- public JbossWSUIPlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static JbossWSUIPlugin getDefault() {
- return plugin;
- }
-
-}
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java 2008-04-22 06:18:33 UTC (rev 7674)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java 2008-04-22 06:21:23 UTC (rev 7675)
@@ -33,9 +33,9 @@
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.jboss.tools.ws.core.*;
+import org.jboss.tools.ws.core.JbossWSCorePlugin;
+import org.jboss.tools.ws.ui.JbossWSUIMessages;
import org.jboss.tools.ws.ui.JbossWSUIPlugin;
-import org.jboss.tools.ws.ui.JbossWSUIMessages;
import org.jboss.tools.ws.ui.UIUtils;
public class JbossWSRuntimePreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
17 years, 8 months
JBoss Tools SVN: r7674 - trunk/ws/plugins/org.jboss.tools.ws.core.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-04-22 02:18:33 -0400 (Tue, 22 Apr 2008)
New Revision: 7674
Modified:
trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml
Log:
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml 2008-04-22 06:07:36 UTC (rev 7673)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml 2008-04-22 06:18:33 UTC (rev 7674)
@@ -46,5 +46,15 @@
</project-facet-version>
-->
</extension>
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.runtimes">
+ <supported>
+ <facet
+ id="jbossws.core">
+ </facet>
+ <runtime-component
+ any="true"/>
+ </supported>
+ </extension>
</plugin>
17 years, 8 months