Changes for page Click to Open

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

From version 48.1
edited by tellurion
on 2008/03/28 14:26
Change comment: There is no comment for this version
To version 54.1
edited by David Holt
on 2010/08/11 22:12
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.tellurion
1 +XWiki.dholt
Content
... ... @@ -2,12 +2,24 @@
2 2  
3 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 -Check out the [[screencast at the mDimension build site>>http://webobjects.mdimension.com/wolips/preview/WOLipsFramework.m4v]]
5 +Check out the [[screencast at the mDimension build site>>http://webobjects.mdimension.com/wolips/support/screencasts/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 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 +Also note that if you use ERExcelLook or ERPDFGeneration that you will want to disable Click to Open in development. The former you can do in a rule: {{code}}*10 : pageConfiguration like '*Excel' => clickToOpenEnabled = "false" [com.webobjects.directtoweb.BooleanAssignment]{{/code}}
12 +
13 +The latter in your component:
14 +
15 +{{code}}
16 +
17 + public boolean clickToOpenEnabled(WOResponse response, WOContext context) {
18 + return false;
19 + }
20 +
21 +{{/code}}
22 +
11 11  == What You Need ==
12 12  
13 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.
... ... @@ -46,7 +46,7 @@
46 46   */
47 47  public class ClickToOpenComponent extends com.webobjects.appserver.WOComponent {
48 48  
49 - public static final boolean isClickToOpenEnabled = Boolean.getBoolean(System.getProperty("er.component.clickToOpen", "false"));
61 + public static final boolean isClickToOpenEnabled = Boolean.parseBoolean(System.getProperty("er.component.clickToOpen", "false"));
50 50  
51 51   public ClickToOpenComponent(WOContext context) {
52 52   super(context);
... ... @@ -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:
178 +If you are using Wonder, add the following to your Properties file:
167 167  
180 +* **er.component.clickToOpen=true**
181 +* **er.extensions.ERXApplication.developmentMode=true**
182 +
183 +If you are not using Wonder, add the Launch parameters as follows:
184 +
185 +* Parameter = **Der.component.clickToOpen=true**, Argument = **true**
186 +* Parameter = **Der.extensions.ERXApplication.developmentMode=true** Argument = **true**
187 +(needing to have "true" twice is a [[minor bug>>http://issues.objectstyle.org/jira/browse/WOL-787]]. The really important one is the first one)
188 +
168 168  [[image:EnableClickToOpen.png]]
169 169  
170 170  == Using Click to Open ==
... ... @@ -179,7 +179,7 @@
179 179  
180 180  Click on this component to open the Click to Open UI:
181 181  
182 -[[image:ClickToOpenExpanded.png]]
203 +[[image:WOLipsToolbar.png]]
183 183  
184 184  **EditDisplayAd** is the page in the browser. Click on this link to open this page in Eclipse.
185 185