Changes for page Development-Common Pitfalls and Troubleshooting
Last modified by Pascal Robert on 2010/09/13 00:24
From version 10.1
edited by Pascal Robert
on 2010/09/13 00:24
on 2010/09/13 00:24
Change comment:
Migrated to Confluence 4.0
To version 9.1
edited by Pascal Robert
on 2010/09/13 00:24
on 2010/09/13 00:24
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -15,7 +15,7 @@ 15 15 16 16 {{/code}} 17 17 18 -Add this to public static void main(String argv []) before the call to WOApplication.main(argv, Application.class) and add these imports:18 +Add this to public static void main(String argv) before the call to WOApplication.main(argv, Application.class) and add these imports: 19 19 20 20 {{code}} 21 21 ... ... @@ -28,10 +28,10 @@ 28 28 29 29 There are several things that can cause this: 30 30 31 -* having a page cache size that is too small, set the cache size on Application 32 -* the session missing on the URL. If WO creates a new session and then tries to use a component action URL you can get this error 33 -* bad HTML on the page can cause a new session to get generated. If you are storing the session ID in cookies, this can replace the "real" session ID 34 -* something (java script, bad HTML) creating a flurry of bad requests to the app and thus knocking the page out of the cache. You can override and add logging to savePage() in Session to check for this 31 +* having a page cache size that is too small, set the cache size on Application 32 +* the session missing on the URL. If WO creates a new session and then tries to use a component action URL you can get this error 33 +* bad HTML on the page can cause a new session to get generated. If you are storing the session ID in cookies, this can replace the "real" session ID 34 +* something (java script, bad HTML) creating a flurry of bad requests to the app and thus knocking the page out of the cache. You can override and add logging to savePage() in Session to check for this 35 35 * other things... 36 36 37 37 === Not Using PageWithName to Create Pages === ... ... @@ -38,7 +38,7 @@ 38 38 39 39 Creating pages directly like this 40 40 41 -{{code 0="java"}}41 +{{code value="java"}} 42 42 43 43 public EditOrder editBooking() { 44 44 EditOrder nextPage = new EditOrder(context()); // BAD BAD BAD ... ... @@ -49,7 +49,7 @@ 49 49 50 50 instead of, 51 51 52 -{{code 0="java"}}52 +{{code value="java"}} 53 53 54 54 public EditOrder editBooking() { 55 55 EditOrder nextPage = (EditOrder)pageWithName(EditOrder.class.getName());