Changes for page Click to Open
Last modified by Kieran Kelleher on 2012/07/21 20:41
From version 54.1
edited by David Holt
on 2010/08/11 22:12
on 2010/08/11 22:12
Change comment:
There is no comment for this version
To version 49.1
edited by tellurion
on 2008/03/28 14:26
on 2008/03/28 14:26
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. dholt1 +XWiki.tellurion - Content
-
... ... @@ -2,24 +2,12 @@ 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/ support/screencasts/WOLipsFramework.m4v]]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 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 - 23 23 == What You Need == 24 24 25 25 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. ... ... @@ -58,7 +58,7 @@ 58 58 */ 59 59 public class ClickToOpenComponent extends com.webobjects.appserver.WOComponent { 60 60 61 - public static final boolean isClickToOpenEnabled = Boolean. parseBoolean(System.getProperty("er.component.clickToOpen", "false"));49 + public static final boolean isClickToOpenEnabled = Boolean.getBoolean(System.getProperty("er.component.clickToOpen", "false")); 62 62 63 63 public ClickToOpenComponent(WOContext context) { 64 64 super(context); ... ... @@ -175,17 +175,8 @@ 175 175 176 176 === Enable Click to Open === 177 177 178 - Ifyouareusing Wonder,addthefollowingtoyourPropertiesfile:166 +And add **Der.component.clickToOpen=true** and **Der.extensions.ERXApplication.developmentMode=true** to the launch arguments: 179 179 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 - 189 189 [[image:EnableClickToOpen.png]] 190 190 191 191 == Using Click to Open == ... ... @@ -200,7 +200,7 @@ 200 200 201 201 Click on this component to open the Click to Open UI: 202 202 203 -[[image: WOLipsToolbar.png]]182 +[[image:ClickToOpenExpanded.png]] 204 204 205 205 **EditDisplayAd** is the page in the browser. Click on this link to open this page in Eclipse. 206 206