Changes for page Edit a WO Component

Last modified by David Holt on 2007/01/07 21:20

From version 8.1
edited by Lachlan Deck
on 2007/01/07 21:20
Change comment: Quick update to reflect the current behaviour.
To version 10.1
edited by Mike Schrag
on 2005/11/19 11:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ldeck
1 +XWiki.mschrag
Content
... ... @@ -6,7 +6,7 @@
6 6  
7 7  ----
8 8  
9 -2. The main editor area of your screen will now change to the Component Editor. Notice at the bottom of the editor area there are several tabs: "Component", "Preview", and "API". These correspond to the different views of a WO Component. The first tab shows you a split view with the HTML source on top and the WOD file on the bottom, the second tab a visual preview of the component, and the last view shows the API Editor where you can edit your bindings and validations. The accompanying "Java" file is available via the "Related" pane. You can quickly switch between the "Java" editor and the WOComponent editor (including each of its tabs) by using the hotkeys cmd-option-1, cmd-option-2, cmd-option-3, cmd-option-4, and cmd-option-5 (for "Java", "Component.HTML", "Component.WOD", "Preview", and "API" respectively).
9 +2. The main editor area of your screen will now change to the Component Editor. Notice at the bottom of the editor area there are several tabs: "Java", "Component", and "API". These correspond to the different views of a WO Component. The first tab will show you Java file, the second tab shows a split view with the HTML on top and the WOD file on the bottom, and the last view shows the API Editor where you can edit your bindings and validations. You can quickly switch between the tabs by using the hotkeys cmd-option-1, cmd-option-2, and cmd-option-3 (for "Java", "Component", and "API" respectively).
10 10  
11 11  Click on the "Component" tab and in the HTML area add a <webobject name = "ApplicationName"></webobject> reference and File=>Save (Cmd-S) the HTML template.
12 12  
... ... @@ -42,7 +42,7 @@
42 42  
43 43  ----
44 44  
45 -6. Now switch to the "Java" editor of the Component (cmd-option-1) and lets add a new method. Call it "now()" and have it return an NSTimestamp of the current date.
45 +6. Now click the "Java" tab of the Component Editor and lets add a new method. Call it "now()" and have it return an NSTimestamp of the current date.
46 46  
47 47  [[image:Picture 13.png]]
48 48  
... ... @@ -58,8 +58,7 @@
58 58  1. = <Ctrl-Space>, select "now"
59 59  1. ;<enter>
60 60  1. <Ctrl-Space>, select "dateformat"
61 -1. = <Ctrl-Space>, select "%m/%d/%Y"
62 -1. ;<enter>
61 +1. = "%m/%d/%Y";<enter>
63 63  1.
64 64  
65 65  [[image:Picture 14.png]]