Changes for page Click to Open

Last modified by Kieran Kelleher on 2012/07/21 20:41

From version 42.1
edited by chuckhill
on 2008/03/12 15:42
Change comment: ERXExtentions.framework redux
To version 44.1
edited by David Avendasora
on 2008/04/18 10:08
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.chuckhill
1 +XWiki.avendasora
Content
... ... @@ -1,18 +1,18 @@
1 1  == What It Is ==
2 2  
3 -Click to Open (C2O) allows you to open components in Eclipse directly from the running application in your browser! Click to Open appears in the lower left corner of browser as part of the pages of your running application. Clicking on this component, and then on an object in the browser window, opens the relevant WOComponent in Eclipse. This makes life easier for UI designers and for developers getting familiar with new projects. It also provides some other very slick debugging tools.
3 +Click to Open (C2O) allows you to open components in Eclipse directly from the running application in your browser Click to Open appears in the lower left corner of browser as part of the pages of your running application. Clicking on this component, and then on an object in the browser window, opens the relevant WOComponent in Eclipse. This makes life easier for UI designers and for developers getting familiar with new projects. It also provides some other very slick debugging tools.
4 4  
5 5  Check out the [[screencast at the mDimension build site>>http://webobjects.mdimension.com/wolips/preview/WOLipsFramework.m4v]]
6 6  
7 7  Click to Open is a browser based extension to WOLips found in [[Project Wonder>>WONDER:Home]]. All of the Wonder ERD2W components support Click to Open.
8 8  
9 -**Note that click-to-open support is expensive, because it has to dig around your component HTML quite a bit, so you will take a performance hit in development to have it enabled.**
9 +**Note that click-to-open support is expensive, because it has to dig around your component HTML quite a bit, so you will take a performance hit in development to have it enabled.**
10 10  
11 11  == What You Need ==
12 12  
13 -You need the **WOLips** framework that is part of Project Wonder. You also need the **ERExtensions** framework that is part of Project Wonder on the class path at runtime. If you already use Project Wonder, are you almost done.
13 +You need the **WOLips** framework that is part of Project Wonder. You also need the **ERExtensions** framework that is part of Project Wonder on the class path at runtime. If you already use Project Wonder, you are almost done.
14 14  
15 -If you are not using Project Wonder, you can download it from [[mDimension's site>>http://webobjects.mdimension.com/wonder/]], untar the frameworks, and copy just the WOLips.framework and ERExtensions.framework to where you have the rest of your frameworks (usually /Library or ,,/Library).,,
15 +If you are not using Project Wonder, you can download it from [[mDimension's site>>http://webobjects.mdimension.com/wonder/]], untar the frameworks, and copy just the WOLips.framework and ERExtensions.framework to where you have the rest of your frameworks (usually /Library/Frameworks or /Library/Frameworks).
16 16  
17 17  == Getting Set Up ==
18 18  
... ... @@ -26,7 +26,7 @@
26 26  
27 27  If you don't have a custom component base class, you really should. Using com.webobjects.appserver.WOComponent as the super-class for your pages and components is just going to leave you doing the same things over and over. If you don't have one, you might want to start using the ClickToOpenComponent below.
28 28  
29 -You will need to add the appendToResponse(WOResponse, WOContext) method below to your component base class, or add this code to your appendToResponse method if you already have one.
29 +You will need to add the appendToResponse(WOResponse, WOContext) method below to your component base class, or add this code to your appendToResponse method if you already have one.
30 30  
31 31  Here is an example implementation of a component base class and of Click to Open support:
32 32  
... ... @@ -153,7 +153,7 @@
153 153  
154 154  === Configure WOLips Server ===
155 155  
156 -You must be using a recent version of WOLips that supports the **WOLips Server**. In your WOLips preferences, you must enable the WOLips Server and set the communication password. This password must match the ##wolips.password## in the **Set Application Properties** section above.
156 +You must be using a recent version of WOLips that supports the **WOLips Server**. In your WOLips preferences, you must enable the WOLips Server and set the communication password. This password must match the ##wolips.password## in the **Set Application Properties** section above.
157 157  
158 158  **Turning on the WOLips Server requires Eclipse to be restarted.**
159 159  
... ... @@ -163,8 +163,17 @@
163 163  
164 164  === Enable Click to Open ===
165 165  
166 -And add **-Der.component.clickToOpen=true** and **-Der.extensions.ERXApplication.developmentMode=true** to the launch arguments:
166 +If you are using Wonder, add the following to your Properties file:
167 167  
168 +* er.component.clickToOpen=true
169 +* er.extensions.ERXApplication.developmentMode=true
170 +
171 +If you are not using Wonder, add the Launch parameters as follows:
172 +
173 +* Parameter = **Der.component.clickToOpen=true**, Argument = **true**
174 +* Parameter = **Der.extensions.ERXApplication.developmentMode=true** Argument = **true**
175 + (needing to have "true" twice is a minor bug, the really important one is the first one)
176 +
168 168  [[image:EnableClickToOpen.png]]
169 169  
170 170  == Using Click to Open ==
... ... @@ -181,11 +181,11 @@
181 181  
182 182  [[image:ClickToOpenExpanded.png]]
183 183  
184 -**EditDisplayAd** is the page in the browser. Click on this link to open this page in Eclipse.
193 +**EditDisplayAd** is the page in the browser. Click on this link to open this page in Eclipse.
185 185  
186 186  \\
187 187  
188 -If you are looking for a sub-component of this page, click on the **Click to Open** link. As you move your mouse over the page, the bread crumb of components will change to show you where you are. Just click to open the component under the mouse in Eclipse. It is that easy!
197 +If you are looking for a sub-component of this page, click on the **Click to Open** link. As you move your mouse over the page, the bread crumb of components will change to show you where you are. Just click to open the component under the mouse in Eclipse. It is that easy
189 189  
190 190  [[image:ClickToOpenInAction.png]]
191 191  
... ... @@ -197,4 +197,4 @@
197 197  * hold down the Cmd key while you move the mouse around and it will highlight the component
198 198  * Cmd-click it will popup the stack of components and you can pick from the stack:
199 199  [[image:ComponentStack.png]]
200 -* you can the binding ##expanded=true;## on WOLToolBar so it's open by default, instead of closed
209 +* you can set the binding ##expanded=true;## on WOLToolBar so it's open by default, instead of closed