Changes for page ERPrototaculous

Last modified by Ravi Mendis on 2010/11/18 05:07

From version 116.1
edited by Ravi Mendis
on 2010/03/01 17:07
Change comment: There is no comment for this version
To version 112.1
edited by Ravi Mendis
on 2010/05/02 22:30
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,11 +6,10 @@
6 6  
7 7  Features include:
8 8  
9 -* 'Organic' support for Prototype and Scriptaculous in WebObjects.
9 +* 'Organic' support for [[Prototype>>http://www.prototypejs.org/]] and [[Scriptaculous>>http://script.aculo.us/]] in WebObjects.
10 10  ** Light-weight dynamic elements to support Prototype
11 -** Transparent API that don't hide or abstract Prototype and Scriptaculous
12 -** No custom patches to Prototype
13 -** Sans extensions to Prototype
11 +** Transparent API that doesn't hide or abstract Prototype and Scriptaculous
12 +** Sans patches or extensions to Prototype
14 14  * Use of [[Unobtrusive Javascript>>http://en.wikipedia.org/wiki/Unobtrusive_JavaScript]].
15 15  * Pseudo-stateless ajax responses
16 16  * A set of widgets in the Prototype + Scriptaculous family.
... ... @@ -64,7 +64,7 @@
64 64  * LightWindow
65 65  * ModalBox
66 66  * CalendarDateSelect
67 -* FileUpload
66 +* [[FileUpload>>http://valums.com/ajax-upload/]]
68 68  
69 69  Support for these widgets have been similarly implemented as **button** and **link** variants, depending whether it is used inside a form or not.
70 70  
... ... @@ -92,11 +92,17 @@
92 92  
93 93  {{/warning}}
94 94  
95 -== Ajax Response Handling in ERPrototaculous ==
94 += Embrace Statelessness! =
96 96  
97 -One notable difference between the ERPrototaculous and Ajax frameworks is in the way they handle ajax responses.
96 +{{include value="WO:Embrace Statelessness"}}{{/include}}
97 +
98 +ERPrototaculous embraces the stateless model Ajax offers in exchange for simplifying the work WebObjects has to do -- it's a win--win!
99 +
100 +so you may observe one notable difference between the ERPrototaculous and Ajax frameworks is in the way they handle ajax responses.
98 98  In ERPrototaculous, updates and actions break with //The WebObjects Way// by being pseudo-stateless.
99 99  
103 +=== Ajax Response Handling in ERPrototaculous ===
104 +
100 100  In a typical WebObjects application, when a user navigates to the previous page using the browser back button and subsequently clicks on a link in on that page, WebObjects needs to remember how to handle that action and to return the correct page. This is no longer necessary for ajax.
101 101  
102 102  A user never travels backwards or forwards through the ajax application history.
... ... @@ -116,7 +116,7 @@
116 116  
117 117  Ajax responses are mostly page fragments or just part of a page.
118 118  So you should make sure the actions in ERPrototaculous (or AjaxUpdaterButton and AjaxRequestButton) return the proper page fragment as opposed to the entire page.
119 -This breaks with WO-tradition (again), so this is where you need to be careful.
124 +This is different to how WebObjects normally works, so this is where you need to be careful.
120 120  
121 121  {{note title="Note"}}
122 122