Changes for page Click to Open

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

From version 53.1
edited by Chuck Hill
on 2008/12/17 17:53
Change comment: There is no comment for this version
To version 56.1
edited by Pascal Robert
on 2010/09/13 00:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.chillatgvc
1 +XWiki.probert
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);
... ... @@ -132,7 +132,7 @@
132 132  
133 133  {{/code}}
134 134  
135 -and you're done. If you don't have a [[page wrapper>>WO:Web Applications-Development-Examples-Page Layout]], you will have to add this to every page. Hint: page wrappers make your life easier.
147 +and you're done. If you don't have a [[page wrapper>>Development-Examples-Page Layout]], you will have to add this to every page. Hint: page wrappers make your life easier.
136 136  
137 137  If you are using the old WO template syntax, add this to the .html file:
138 138  
... ... @@ -172,7 +172,7 @@
172 172  
173 173  * Parameter = **Der.component.clickToOpen=true**, Argument = **true**
174 174  * Parameter = **Der.extensions.ERXApplication.developmentMode=true** Argument = **true**
175 - (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)
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)
176 176  
177 177  [[image:EnableClickToOpen.png]]
178 178