JBoss Tools SVN: r28273 - trunk/documentation/guides/GettingStartedGuide/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-16 21:02:02 -0500 (Sun, 16 Jan 2011)
New Revision: 28273
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml
trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml
Log:
General Updates
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml 2011-01-17 01:37:57 UTC (rev 28272)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/first_seam.xml 2011-01-17 02:02:02 UTC (rev 28273)
@@ -42,7 +42,7 @@
<para>Minimize the terminal window and run the <property>JBoss Developer Studio</property>
from Applications Menu or from the desktop icon.</para>
<para>First of all you get the Workspace Launcher. Change the default workspace location if
- it's needed. Click on <property>Ok</property>. </para>
+ it's needed. Click the <guibutton>OK</guibutton> button. </para>
<figure>
<title>Workspace Launcher Dialog</title>
<mediaobject>
@@ -97,11 +97,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>Click on <emphasis>
- <property>Ok</property>
- </emphasis> and then <emphasis>
- <property>Next</property>
- </emphasis> to proceed further.</para>
+ <para>Click the <guibutton>OK</guibutton> and then the <guibutton>Next</guibutton> button to proceed further.</para>
<para>A dynamic web application contains both web pages and <property>Java</property> code.
The next wizard will ask you where you want to store Java files.</para>
<figure>
@@ -135,9 +131,7 @@
server.</para>
</listitem>
<listitem>
- <para>Click <emphasis>
- <property>Next</property>
- </emphasis></para>
+ <para>Click the <guibutton>Next</guibutton> button</para>
</listitem>
</itemizedlist>
<figure>
@@ -187,14 +181,19 @@
</figure>
<para>Try click on <property>Test Connection</property> button. It probably won’t work. This
happens if the hsql jdbc driver is not exactly the same. This can be worked around by
- modifying the HSQLDB database driver settings. To modify the settings, click the Edit Driver Definition Driver(
- <inlinemediaobject><imageobject>
+ modifying the HSQLDB database driver settings. To modify the settings, click the <guibutton>Edit Driver Definition Driver</guibutton> button.
+ </para>
+ <figure>
+ <title>Driver Details</title>
+ <mediaobject>
+ <imageobject>
<imagedata fileref="images/first_seam/first_seam9_1.png"/>
</imageobject>
- </inlinemediaobject>) .</para>
+ </mediaobject>
+ </figure>
<para>The proper Driver JAR File should be listed under <property>Jar List</property>. Select
- the hsqldb.jar file found in the jbdevstudio/jboss-eap/jboss-as/common/lib/ directory and
- click <property>Ok</property>.</para>
+ the hsqldb.jar file found in the <filename>jbdevstudio/jboss-eap/jboss-as/common/lib/</filename> directory and
+ click the <guibutton>OK</guibutton> button.</para>
<figure>
<title>Driver Details</title>
<mediaobject>
@@ -204,7 +203,7 @@
</mediaobject>
</figure>
<para>Now, the <property>Test Connection</property> should succeed. After testing the
- connection, click <emphasis><property>Ok</property></emphasis>.</para>
+ connection, click the <guibutton>OK</guibutton> button.</para>
<figure>
<title>Connection Testing</title>
<mediaobject>
@@ -231,7 +230,7 @@
it should be "MyProject-test".</para>
</note>
- <para>Click on <property>Finish</property> button. Now, there should be a new Seam project
+ <para>Click on <guibutton>Finish</guibutton> button. Now, there should be a new Seam project
called “workshop” listed in Package Explorer view.</para>
<figure>
<title>"worskhop" Project in the Package Explorer</title>
@@ -252,8 +251,7 @@
<imagedata fileref="images/first_seam/first_seam15.png"/>
</imageobject>
</inlinemediaobject> ) in the <property>Servers</property> view.</para>
- <para>Then run the project by selecting the project and use <emphasis><property>Run As... >
- Run on Server</property>.</emphasis></para>
+ <para>Then run the project by selecting the project and use <menuchoice><guimenuitem>Run As...</guimenuitem><guimenuitem>Run on Server</guimenuitem></menuchoice>.</para>
<figure>
<title>"worskhop" Run As</title>
@@ -356,12 +354,10 @@
with some custom business logic and some GUI changes.</para>
<section id="create_seam_action">
<title>Create a New Seam Action</title>
- <para>Go to main menu bar and click on <emphasis>
- <property>File > New > New Seam Action</property>
- </emphasis> to start the New Seam Action wizard.</para>
+ <para>Go to main menu bar and click on <menuchoice><guimenuitem>File</guimenuitem><guimenuitem>New</guimenuitem><guimenuitem>New Seam Action</guimenuitem></menuchoice> to start the New Seam Action wizard.</para>
<para>Specify a <property>Seam component name</property> (e.g., "myAction"). The
other properties will be auto-completed for you so there is no need to change them. Click on
- <property>Finish</property>.</para>
+ the <guibutton>Finish</guibutton> button.</para>
<figure>
<title>New Seam Action Wizard</title>
<mediaobject>
@@ -400,10 +396,7 @@
<para>The test case simulates a Seam component/method execution for the <property
>MyAction.myAction()</property> logic.</para>
- <para>To run the test case, right click on <property>MyActionTest.xml</property> and click
- <emphasis>
- <property>Run As > TestNG Suite</property>
- </emphasis> or use the <property>Run As...</property> toolbar shortcut as shown
+ <para>To run the test case, right click on <property>MyActionTest.xml</property> and click <menuchoice><guimenuitem>Run As</guimenuitem><guimenuitem>TestNG Suite</guimenuitem></menuchoice> or use the <guibutton>Run As...</guibutton> toolbar shortcut as shown
below.</para>
<figure>
<title>TestNG Running</title>
@@ -423,9 +416,7 @@
</mediaobject>
</figure>
<para>Now, it’s safe to test the new Seam Action in a web browser. The fastest way to do that
- is to right click on <property>myAction.xhtml</property> and use <emphasis>
- <property>Run As... > Run On Server</property>
- </emphasis> which will show the appropriate url in the browser. Alternatively you can
+ is to right click on <property>myAction.xhtml</property> and use <menuchoice><guimenuitem>Run As...</guimenuitem><guimenuitem>Run On Server</guimenuitem></menuchoice> which will show the appropriate url in the browser. Alternatively you can
manually enter <emphasis>
<property>http://localhost:8080/workshop/myAction.seam</property>
</emphasis> into a browser.</para>
@@ -579,8 +570,7 @@
<section id="database_connectivity">
<title>Database Connectivity Setup</title>
<para>The workshop data can be browsed inside of JBoss Developer Studio.</para>
- <para>To open the Data Source Explorer, click on <emphasis><property>Window > Open Perspective
- > Other > Database Development</property>.</emphasis></para>
+ <para>To open the Data Source Explorer, click on <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Open Perspective</guimenuitem><guimenuitem>Other</guimenuitem><guimenuitem>Database Development</guimenuitem></menuchoice>.</para>
<para>In the Data Source Explorer, expand a <property>Databases</property> node and select a
<property>Default</property> database. Right click on it, select <property
>Connect</property> from the context menu.</para>
@@ -604,9 +594,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>Right click on <property>CUSTOMERS</property>, select <emphasis>
- <property>Data > Sample Contents</property>
- </emphasis> to view the data in the table.</para>
+ <para>Right click on <property>CUSTOMERS</property>, select <menuchoice><guimenuitem>Data</guimenuitem><guimenuitem>Sample Contents</guimenuitem></menuchoice> to view the data in the table.</para>
<para>There should be a SQL Results view on the workbench, but it could be hidden. Click on
the <property>"Result1"</property> tab in the right side and you should see the
data in the CUSTOMERS table.</para>
@@ -620,8 +608,9 @@
</figure>
<note>
<title>Note:</title>
- <para>If you can’t find the SQL Results view tab, click on <emphasis><property>Window > Show
- View > Other > SQL Development > SQL Results</property>.</emphasis></para>
+ <para>
+ If you can’t find the SQL Results view tab, click on <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View</guimenuitem><guimenuitem>Other</guimenuitem><guimenuitem>SQL Development</guimenuitem><guimenuitem>SQL Results</guimenuitem></menuchoice>.
+ </para>
</note>
<para>Congratulations! You just connected to the workshop database and queried the content
using Database Explorer tools.</para>
@@ -637,9 +626,7 @@
perspective</property>, and then right-click the project and select <emphasis><property
>New > Seam Generate Entities</property>.</emphasis></para>
<para>"workshop" project in the <property>Seam Generate Entities wizard</property>
- will be selected automatically. There is no need to change something more, click <emphasis>
- <property>Next</property>
- </emphasis> to proceed further.</para>
+ will be selected automatically. There is no need to change something more, click the <guibutton>Next</guibutton> button to proceed further.</para>
<figure>
<title>Generate Seam Entities</title>
<mediaobject>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml 2011-01-17 01:37:57 UTC (rev 28272)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml 2011-01-17 02:02:02 UTC (rev 28273)
@@ -716,7 +716,7 @@
</listitem>
<listitem>
- <para>Select <emphasis> the second column in the <property>value</property> row.</para>
+ <para>Select the second column in the <property>value</property> row.</para>
</listitem>
<listitem>
<para>Click <property>...</property> button next to the value field</para>
@@ -742,7 +742,6 @@
<para>Select <emphasis>
<property>how_to_play</property>
</emphasis> value and click the <guibutton>OK</guibutton>. Then click the <guibutton>Finish</guibutton> button.
- </emphasis>
<figure>
<title>Selecting Value</title>
<mediaobject>
@@ -1056,7 +1055,7 @@
</para>
</listitem>
<listitem>
- <para>Type <emphasis><property>index</property></emphasis> for name field and click the <guibutton>Next</guibutton> button.
+ <para>Type <emphasis><property>index</property></emphasis> for name field and click the <guibutton>Next</guibutton> button.</para>
</listitem>
<listitem>
<para>Untick the <guilabel>Use JSP Template</guilabel> check box and click the <guibutton>Finish</guibutton> button.</para>
15 years, 2 months
JBoss Tools SVN: r28272 - in trunk/documentation/guides/GettingStartedGuide/en-US: images/getting_started and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-16 20:37:57 -0500 (Sun, 16 Jan 2011)
New Revision: 28272
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_4a.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_4b.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_4f.png
Log:
General Updates
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2011-01-17 01:28:37 UTC (rev 28271)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2011-01-17 01:37:57 UTC (rev 28272)
@@ -357,7 +357,7 @@
<note>
<title>Note:</title>
- <para>JBoss Developer Studio 4.0 comes integrated with JBoss EAP 5.0 that requires JDK 6.0 to run
+ <para>JBoss Developer Studio 4.0 comes integrated with JBoss EAP 5.1 that requires JDK 6.0 to run
and "gij" isn't available on every platform.</para>
</note>
@@ -368,8 +368,7 @@
<property>Yes</property></emphasis> to use it in JBoss Developer Studio.</para>
<note>
<title>Note:</title>
- <para>Like in the previous version of JBDS, JBDS 4.0.0.GA comes integrated with JBoss EAP 5.0
- that supports EAP 5 adapter and Seam 2.2.</para>
+ <para>Like in the previous version of JBDS, JBDS 4.0.0.GA comes integrated with JBoss EAP 5.1 that supports EAP 5 adapter and Seam 2.2.</para>
</note>
<para>This step lets you configure locally available JBoss Application Servers: </para>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_4a.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_4b.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_4f.png
===================================================================
(Binary files differ)
15 years, 2 months
JBoss Tools SVN: r28271 - in trunk/documentation/guides/GettingStartedGuide/en-US: images/project_examples and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-16 20:28:37 -0500 (Sun, 16 Jan 2011)
New Revision: 28271
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_1.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_2.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_2a.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_2b.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_4.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_41.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_42.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_5.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/preferences.png
trunk/documentation/guides/GettingStartedGuide/en-US/project_examples.xml
Log:
General Updates
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_1.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_2.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_2a.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_2b.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_4.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_41.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_42.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/pr_example_5.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/project_examples/preferences.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/project_examples.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/project_examples.xml 2011-01-17 01:12:23 UTC (rev 28270)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/project_examples.xml 2011-01-17 01:28:37 UTC (rev 28271)
@@ -44,10 +44,10 @@
<para>When the <property>Add</property> button is pressed the
<property>Add Project Example Site</property> dialog is displayed. The dialog contains 2
input fields: <property>Name</property> where you need to specify the name of the new entry and <property>URL</property>
- that has to point to the xml file that contains example project(s) properties.
- In more detail the structure of the xml file is discussed further in the chapter of the guide.
- Alternatively, if the xml is stored on your local machine, you can hit the <property>Browse</property> button to select the file in the file system.</para>
- <para>Here is an example of the xml file that holds project example settings:</para>
+ that has to point to the XML file that contains example project(s) properties.
+ The structure of the XML file is discussed in more detail in a later chapter of this guide.
+ Alternatively, if the XML is stored on your local machine, you can hit the <property>Browse</property> button to select the file in the file system.</para>
+ <para>Here is an example of the XML file that holds project example settings:</para>
<programlisting role="XML"><![CDATA[<projects>
<project>
15 years, 2 months
JBoss Tools SVN: r28270 - in trunk/documentation/guides/GettingStartedGuide/en-US: images/rad_jsf_application and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-16 20:12:23 -0500 (Sun, 16 Jan 2011)
New Revision: 28270
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_10.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_14.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_15.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_16.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_17.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_19.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_20.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_21.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_23.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_3.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_4.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_5.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_6.png
trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml
Log:
general Updates
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_10.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_14.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_15.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_16.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_17.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_19.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_20.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_21.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_23.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_3.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_4.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_5.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/rad_jsf_application/rad_jsf_application_6.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml 2011-01-15 20:24:11 UTC (rev 28269)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/rad_jsf_application.xml 2011-01-17 01:12:23 UTC (rev 28270)
@@ -712,16 +712,11 @@
completely in its WYSIWYG mode</para>
</listitem>
<listitem>
- <para>Click on <emphasis>
- <property>outputText</property>, </emphasis> drag the cursor over to the
- editor, and drop it inside the blue box in the editor</para>
+ <para>Click the <emphasis><property>outputText</property> item from the <guilabel>JSF HTML</guilabel> group in the <guilabel>JBoss Tools Palette</guilabel> view, </emphasis> drag the cursor over to the editor, and drop it inside the blue box in the editor</para>
</listitem>
<listitem>
- <para>Select <emphasis>
- <property>value</property>
- </emphasis> and click on this line below "value"
- header</para>
+ <para>Select <emphasis> the second column in the <property>value</property> row.</para>
</listitem>
<listitem>
<para>Click <property>...</property> button next to the value field</para>
@@ -746,9 +741,7 @@
<listitem>
<para>Select <emphasis>
<property>how_to_play</property>
- </emphasis> value and click <emphasis>
- <property>Ok</property>. </emphasis> Then click <emphasis>
- <property>Finish</property>
+ </emphasis> value and click the <guibutton>OK</guibutton>. Then click the <guibutton>Finish</guibutton> button.
</emphasis>
<figure>
<title>Selecting Value</title>
@@ -937,7 +930,7 @@
</listitem>
<listitem>
<para>Type <emphasis>
- <property>NumberBean.checkGuess</property>
+ <property>#{NumberBean.checkGuess}</property>
</emphasis> in text field</para>
</listitem>
<listitem>
@@ -957,30 +950,31 @@
</listitem>
</itemizedlist>
<para>inputnumber.jsp page should look like this:</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" %>
-<f:loadBundle basename="game.messages" var="msg" />
+ <programlisting role="XML"><![CDATA[<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
+<f:loadBundle basename="game.messages" var="msg"/>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
-<head>
-<title></title>
-</head>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Insert title here</title>
+ </head>
<body>
<f:view>
<h:form id="inputNumbers">
- <h:outputText value="#{msg.how_to_play}" />
- <br />
+ <h:outputText value="#{msg.how_to_play}"/>
+ <br/>
<h:messages style="color: blue" />
- <br />
- <h:inputText value="#{NumberBean.userNumber}" id="userNumber"
- required="true">
+ <br/>
+ <h:inputText id="userNumber" required="true" value="#{NumberBean.userNumber}">
<f:validateLongRange minimum="0" maximum="100" />
</h:inputText>
- <br />
- <br />
- <h:commandButton value="#{msg.makeguess_button}"
- action="#{NumberBean.checkGuess}" />
+ <br/>
+ <br/>
+ <h:commandButton action="#{NumberBean.checkGuess}" value="#{msg.makeguess_button}"/>
</h:form>
- </f:view>
+ </f:view>
</body>
</html>
]]></programlisting>
@@ -1062,20 +1056,13 @@
</para>
</listitem>
<listitem>
- <para>Type <emphasis>
- <property>index</property>
- </emphasis> for name field and choose <emphasis>
- <property>JSPRedirect</property>
- </emphasis> as a template</para>
+ <para>Type <emphasis><property>index</property></emphasis> for name field and click the <guibutton>Next</guibutton> button.
</listitem>
<listitem>
- <para>Click <emphasis>
- <property>Finish</property>
- </emphasis>
- </para>
+ <para>Untick the <guilabel>Use JSP Template</guilabel> check box and click the <guibutton>Finish</guibutton> button.</para>
</listitem>
<listitem>
- <para>The source for this page should be like the following:</para>
+ <para>Edit the source of the file so it looks like the following:</para>
</listitem>
</itemizedlist>
<programlisting role="XML"><![CDATA[<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
15 years, 2 months
JBoss Tools SVN: r28269 - trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-01-15 15:24:11 -0500 (Sat, 15 Jan 2011)
New Revision: 28269
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java
Log:
JBIDE-8101 https://issues.jboss.org/browse/JBIDE-8101
Modified: trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-01-15 19:42:34 UTC (rev 28268)
+++ trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-01-15 20:24:11 UTC (rev 28269)
@@ -159,7 +159,7 @@
}
private static void createJBossServer(File asLocation, int index, String name, String runtimeName) {
- if (!asLocation.isDirectory() || index==-1) {
+ if (asLocation == null || !asLocation.isDirectory() || index==-1) {
return;
}
IPath jbossAsLocationPath = new Path(asLocation.getAbsolutePath());
@@ -167,7 +167,7 @@
IServer[] servers = ServerCore.getServers();
for (int i = 0; i < servers.length; i++) {
IRuntime runtime = servers[i].getRuntime();
- if(runtime != null && runtime.getLocation().equals(jbossAsLocationPath)) {
+ if(runtime != null && runtime.getLocation() != null && runtime.getLocation().equals(jbossAsLocationPath)) {
return;
}
}
@@ -175,8 +175,11 @@
IRuntime runtime = null;
IRuntime[] runtimes = ServerCore.getRuntimes();
for (int i = 0; i < runtimes.length; i++) {
- if (runtimes[0].getLocation().equals(jbossAsLocationPath)) {
- runtime = runtimes[0].createWorkingCopy();
+ if (runtimes[i] == null || runtimes[i].getLocation() == null) {
+ continue;
+ }
+ if (runtimes[i].getLocation().equals(jbossAsLocationPath)) {
+ runtime = runtimes[i].createWorkingCopy();
break;
}
}
15 years, 2 months
JBoss Tools SVN: r28268 - workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core/src/org/jboss/tools/hudson/manager/core/util.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2011-01-15 14:42:34 -0500 (Sat, 15 Jan 2011)
New Revision: 28268
Modified:
workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core/src/org/jboss/tools/hudson/manager/core/util/HudsonXMLUtil.java
Log:
add methods for posting config.xml back to server to update a job
Modified: workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core/src/org/jboss/tools/hudson/manager/core/util/HudsonXMLUtil.java
===================================================================
--- workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core/src/org/jboss/tools/hudson/manager/core/util/HudsonXMLUtil.java 2011-01-15 17:27:43 UTC (rev 28267)
+++ workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core/src/org/jboss/tools/hudson/manager/core/util/HudsonXMLUtil.java 2011-01-15 19:42:34 UTC (rev 28268)
@@ -1,5 +1,254 @@
package org.jboss.tools.hudson.manager.core.util;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.apache.commons.httpclient.Credentials;
+import org.apache.commons.httpclient.HttpClient;
+import org.apache.commons.httpclient.HttpException;
+import org.apache.commons.httpclient.HttpMethod;
+import org.apache.commons.httpclient.URI;
+import org.apache.commons.httpclient.UsernamePasswordCredentials;
+import org.apache.commons.httpclient.auth.AuthScope;
+import org.apache.commons.httpclient.methods.GetMethod;
+import org.apache.commons.httpclient.methods.InputStreamRequestEntity;
+import org.apache.commons.httpclient.methods.PostMethod;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.dom4j.Document;
+import org.dom4j.DocumentException;
+import org.dom4j.io.SAXReader;
+
public class HudsonXMLUtil {
+ private boolean verbose = false;
+ private String USERNAME = "admin";
+ private String PASSWORD = "chestnuts";
+ private String hudsonURL = "http://localhost:8080/";
+
+ // use like this to submit an updated config.xml to the server:
+ // postXML(configXMLFile, null, hudsonURL + "job/" + jobName +
+ // "/config.xml", true);
+
+ private String[] postXML(String xmlFile, String xmlContents, String jobURL,
+ boolean getErrorMessage) {
+ return postXML(new File(xmlFile), xmlContents, jobURL, getErrorMessage);
+ }
+
+ /**
+ *
+ * @param xmlFile - need either an absolute path to a file
+ * @param xmlContents - or a string containing the XML to write to file (eg., from Document.asXML())
+ * @param jobURL - URL to which to post the XML
+ * @param getErrorMessage - return a string[] containing result code, or code + message
+ * @return
+ */
+ private String[] postXML(File xmlFile, String xmlContents, String jobURL,
+ boolean getErrorMessage) {
+ int resultCode = -1;
+ String responseBody = "";
+ PostMethod post = new PostMethod(jobURL);
+ HttpClient client = null;
+
+ if (xmlFile == null && xmlContents != null) {
+ File tempDir = null;
+ try {
+ tempDir = createTempDir(getClass().getSimpleName());
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ xmlFile = new File(tempDir, "config.xml");
+ try {
+ // TODO: why do we need to write the xml to a file before
+ // pushing it to the server? can't this be streamed out instead?
+ writeToFile(xmlContents, xmlFile);
+ } catch (MojoExecutionException e) {
+ e.printStackTrace();
+ }
+ }
+ if (xmlFile != null) {
+ try {
+ post.setRequestEntity(new InputStreamRequestEntity(
+ new FileInputStream(xmlFile), xmlFile.length()));
+ } catch (FileNotFoundException e) {
+ System.err.println("File not found: " + xmlFile);
+ e.printStackTrace();
+ }
+
+ } else {
+ try {
+ throw new MojoExecutionException("Error writing to " + xmlFile);
+ } catch (MojoExecutionException e) {
+ System.err.println("Error writing to " + xmlFile
+ + " in postXML() !");
+ e.printStackTrace();
+ }
+ }
+ // Specify content type and encoding; default to ISO-8859-1
+ post.setRequestHeader("Content-type", "text/xml; charset=ISO-8859-1");
+
+ if (client == null) {
+ client = getHttpClient(USERNAME, PASSWORD);
+ }
+ try {
+ resultCode = client.executeMethod(post);
+ if (getErrorMessage) {
+
+ responseBody = getResponseBody(post);
+ // resultString = getErrorMessage(post, jobURL);
+ }
+ } catch (HttpException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } catch (DocumentException e) {
+ e.printStackTrace();
+ } finally {
+ post.releaseConnection();
+ }
+
+ if (getErrorMessage) {
+ return new String[] { resultCode + "", responseBody };
+ } else {
+ return new String[] { resultCode + "", "" };
+ }
+ }
+
+ public void writeDomToFile(Document dom, File file)
+ throws MojoExecutionException {
+ writeToFile(dom.asXML(), file);
+ }
+
+ public void writeToFile(String string, File file)
+ throws MojoExecutionException {
+ FileWriter w = null;
+ try {
+ w = new FileWriter(file);
+ w.write(string);
+ } catch (IOException e) {
+ throw new MojoExecutionException("Error updating file " + file, e);
+ } finally {
+ if (w != null) {
+ try {
+ w.close();
+ } catch (IOException e) {
+ // ignore
+ }
+ }
+
+ }
+ }
+
+ public String getResponseBody(HttpMethod method) throws DocumentException,
+ IOException {
+ InputStream is = method.getResponseBodyAsStream();
+ Document dom = null;
+ String out = "";
+ if (is.available() > 0) {
+ dom = new SAXReader().read(is);
+ out = dom.asXML();
+ } else {
+ if (verbose) {
+ // 200: OK
+ // 400: Bad Request (job already exists, cannot createItem)
+ if (method.getStatusCode() != 200
+ && method.getStatusCode() != 400) {
+ System.out.println("["
+ + method.getStatusCode()
+ + "] "
+ + method.getStatusText()
+ + " for "
+ + method.getName()
+ + " to "
+ + method.getPath()
+ + (method.getQueryString() != null ? "?"
+ + method.getQueryString() : ""));
+ }
+ }
+ }
+ return out;
+ }
+
+ public HttpClient getHttpClient(String username, String password) {
+ HttpClient client = new HttpClient();
+ // establish a connection within 5 seconds
+ client.getHttpConnectionManager().getParams()
+ .setConnectionTimeout(5000);
+
+ if (hudsonURL.indexOf("localhost") >= 0) {
+ /* simpler authentication method, may not work w/ secured Hudson */
+ Credentials creds = new UsernamePasswordCredentials(username,
+ password);
+ if (creds != null) {
+ client.getState().setCredentials(AuthScope.ANY, creds);
+ }
+ } else {
+ GetMethod login = new GetMethod(hudsonURL + "loginEntry");
+ try {
+ client.executeMethod(login);
+ } catch (HttpException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ try {
+ checkResult(login.getStatusCode(), login.getURI());
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ String location = hudsonURL + "j_security_check";
+ while (true) {
+ PostMethod loginMethod = new PostMethod(location);
+ loginMethod.addParameter("j_username", username);
+ loginMethod.addParameter("j_password", password);
+ loginMethod.addParameter("action", "login");
+ try {
+ client.executeMethod(loginMethod);
+ } catch (HttpException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ if (loginMethod.getStatusCode() / 100 == 3) {
+ // Commons HTTP client refuses to handle redirects for POST
+ // so we have to do it manually.
+ location = loginMethod.getResponseHeader("Location")
+ .getValue();
+ continue;
+ }
+ try {
+ checkResult(loginMethod.getStatusCode(),
+ loginMethod.getURI());
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ break;
+ }
+ }
+ return client;
+ }
+
+ private static void checkResult(int i, URI uri) throws IOException {
+ if (i / 100 != 2) {
+ // System.out.println("[WARN] Got result: " + i + " for "+
+ // uri.toString());
+ throw new IOException("Got result: " + i + " for " + uri.toString());
+ }
+ }
+
+ public File createTempDir(String prefix) throws IOException {
+ File directory = File.createTempFile(prefix, "");
+ if (directory.delete()) {
+ directory.mkdirs();
+ return directory;
+ } else {
+ throw new IOException("Could not create temp directory at: "
+ + directory.getAbsolutePath());
+ }
+ }
+
}
15 years, 2 months
JBoss Tools SVN: r28267 - workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2011-01-15 12:27:43 -0500 (Sat, 15 Jan 2011)
New Revision: 28267
Removed:
workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core/bin/
Modified:
workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core/
Log:
remove bin and set svn:ignore
Property changes on: workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.core
___________________________________________________________________
Name: svn:ignore
+ bin
*.class
15 years, 2 months
JBoss Tools SVN: r28266 - workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2011-01-15 12:26:31 -0500 (Sat, 15 Jan 2011)
New Revision: 28266
Removed:
workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/bin/
Modified:
workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/
Log:
remove bin and set svn:ignore
Property changes on: workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui
___________________________________________________________________
Name: svn:ignore
+ bin
*.class
15 years, 2 months
JBoss Tools SVN: r28265 - workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-01-15 12:18:50 -0500 (Sat, 15 Jan 2011)
New Revision: 28265
Modified:
workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/plugin.xml
Log:
nicks hudson tools what what!!!
Modified: workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/plugin.xml
===================================================================
--- workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/plugin.xml 2011-01-15 17:18:20 UTC (rev 28264)
+++ workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/plugin.xml 2011-01-15 17:18:50 UTC (rev 28265)
@@ -9,7 +9,7 @@
</category>
<view
name="Hudson Viewer"
- icon="icons/delta.gif"
+ icon="icons/hudson.png"
category="org.jboss.tools.hudson.manager"
class="org.jboss.tools.hudson.manager.ui.views.HudsonManagerView"
id="org.jboss.tools.hudson.manager.ui.views.HudsonManagerView">
@@ -22,7 +22,7 @@
name="Main Hudson Content"
activeByDefault="true"
priority="higher"
- icon="icons/delta.gif"
+ icon="icons/hudson.png"
contentProvider="org.jboss.tools.hudson.manager.ui.views.HudsonContentProvider"
labelProvider ="org.jboss.tools.hudson.manager.ui.views.HudsonLabelProvider">
<triggerPoints>
@@ -38,6 +38,11 @@
value="java.lang.Object">
</instanceof>
</or></possibleChildren>
+ <actionProvider
+ class="org.jboss.tools.hudson.manager.ui.views.HudsonActionProvider"
+ id="org.jboss.tools.hudson.manager.ui.views.HudsonActionProvider"
+ priority="highest">
+ </actionProvider>
</navigatorContent>
</extension>
<extension
@@ -54,6 +59,71 @@
</contentExtension>
</includes>
</viewerContentBinding>
+ <viewerActionBinding
+ viewerId="org.jboss.tools.hudson.manager.ui.views.HudsonManagerView">
+ <includes>
+ <actionExtension
+ pattern="org.jboss.tools.hudson.manager.ui.views.HudsonActionProvider">
+ </actionExtension>
+ </includes>
+ </viewerActionBinding>
</extension>
+
+
+<!-- heirarchy nodes -->
+ <extension
+ point="org.eclipse.ui.navigator.navigatorContent">
+ <navigatorContent
+ id="org.jboss.tools.hudson.manager.ui.views.HudsonHeirarchyContentRoot"
+ name="Hudson Job Heirarchy"
+ activeByDefault="true"
+ priority="highest"
+ icon="icons/hudson.png"
+ contentProvider="org.jboss.tools.hudson.manager.ui.views.HudsonHeirarchyContentProvider"
+ labelProvider ="org.jboss.tools.hudson.manager.ui.views.HudsonLabelProvider">
+ <triggerPoints>
+ <or>
+ <instanceof
+ value="java.lang.Object">
+ </instanceof>
+ </or>
+ </triggerPoints>
+ <possibleChildren>
+ <or>
+ <instanceof
+ value="java.lang.Object">
+ </instanceof>
+ </or></possibleChildren>
+ <actionProvider
+ class="org.jboss.tools.hudson.manager.ui.views.HudsonHeirarchyActionProvider"
+ id="org.jboss.tools.hudson.manager.ui.views.HudsonHeirarchyActionProvider"
+ priority="highest">
+ </actionProvider>
+ </navigatorContent>
+ </extension>
+ <extension
+ point="org.eclipse.ui.navigator.viewer">
+ <viewer
+ viewerId="org.jboss.tools.hudson.manager.ui.views.HudsonManagerView">
+ </viewer>
+ <viewerContentBinding
+ viewerId="org.jboss.tools.hudson.manager.ui.views.HudsonManagerView">
+ <includes>
+ <contentExtension
+ isRoot="true"
+ pattern="org.jboss.tools.hudson.manager.ui.views.HudsonHeirarchyContentRoot">
+ </contentExtension>
+ </includes>
+ </viewerContentBinding>
+ <viewerActionBinding
+ viewerId="org.jboss.tools.hudson.manager.ui.views.HudsonManagerView">
+ <includes>
+ <actionExtension
+ pattern="org.jboss.tools.hudson.manager.ui.views.HudsonHeirarchyActionProvider">
+ </actionExtension>
+ </includes>
+ </viewerActionBinding>
+ </extension>
+
</plugin>
15 years, 2 months
JBoss Tools SVN: r28264 - workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/icons.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-01-15 12:18:20 -0500 (Sat, 15 Jan 2011)
New Revision: 28264
Added:
workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/icons/hudson.png
Log:
nicks hudson tools what what!!!
Added: workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/icons/hudson.png
===================================================================
(Binary files differ)
Property changes on: workspace/rstryker/hudson/plugins/org.jboss.tools.hudson.manager.ui/icons/hudson.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 2 months