Last modified by Steve Peery on 2013/05/29 14:41

From version 8.1
edited by Pascal Robert
on 2011/12/27 07:06
Change comment: There is no comment for this version
To version 7.1
edited by Pascal Robert
on 2011/12/27 07:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -34,10 +34,8 @@
34 34  
35 35  Now, let's make the "Hello World" to be dynamic. If the HelloWorld application is still running, terminate it by clicking on the square red button in the **Console** tab.
36 36  
37 -In the project, open the **Sources** folder, open the **your.app.components** package and open **Main.java**. **Main.java** is the Java part of a Project Wonder component. If you check the content of the **Related** tab, you will see that **Main.java** is related to other files like **Main.wo** and **Main.api**, it's a good way to find out if a Java class is part of a component.
37 +In the project, open the **Sources** folder, open the **your.app.components** package and open **Main.java**. **Main.java** is the Java part of a Project Wonder component. If you check the content of the **Related** tab, you will see that **Main.java** is related to other files like **Main.wo** and **Main.api**, it's a good way to find out if a Java class is part of a component. [[image:RelatedTab.png||border="1"]]
38 38  
39 -[[image:RelatedTab.png||border="1"]]
40 -
41 41  In the **Main.java** editor tab, you will need to put one variable + one setter + one getter. Complete code:
42 42  
43 43  {{code language="java" theme="Eclipse"}}
... ... @@ -54,10 +54,8 @@
54 54  
55 55  Save the file.
56 56  
57 -So now we have a variable to display the content of a string. The next step is to open the HTML part of the component to actually display the string. In the **Related** view, double-click on the **Main.wo** file. This action will open the component in the Component Editor.
55 +So now we have a variable to display the content of a string. The next step is to open the HTML part of the component to actually display the string. In the **Related** view, double-click on the **Main.wo** file. This action will open the component in the Component Editor. [[image:ComponentEditor.png||border="1"]]
58 58  
59 -[[image:ComponentEditor.png||border="1"]]
60 -
61 61  Remove the Hello World text from the HTML and replace it with:
62 62  
63 63  {{code language="java" theme="Eclipse"}}