Changes for page Click to Open

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

From version 55.1
edited by Marc Guenther
on 2010/01/25 12:44
Change comment: fix wrong method call: getBoolean() -> parseBoolean()
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.marc
1 +XWiki.probert
Content
... ... @@ -8,6 +8,18 @@
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.
... ... @@ -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