Changes for page ERPrototaculous
Last modified by Ravi Mendis on 2010/11/18 05:07
From version 171.1
edited by Ravi Mendis
on 2009/07/20 08:13
on 2009/07/20 08:13
Change comment:
There is no comment for this version
To version 175.1
edited by Ravi Mendis
on 2009/07/17 04:04
on 2009/07/17 04:04
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -24,11 +24,11 @@ 24 24 25 25 ==== Prototype WebObjects Elements ==== 26 26 27 -##Ajax.Updater## and ##Ajax.Request## have been implemented as WebObjects elements. 27 +##Ajax.Updater## and ##Ajax.Request## have been implemented as WebObjects dynamic elements. 28 28 29 29 ===== Ajax.Updater ===== 30 30 31 -Support for Prototype's [[Ajax.Updater>>http://www.prototypejs.org/api/ajax/updater]] is in the form of three elements:31 +Support for Prototype's [[Ajax.Updater>>http://www.prototypejs.org/api/ajax/updater]] is in the form of three components: 32 32 33 33 * AjaxUpdaterLink 34 34 * AjaxUpdaterButton ... ... @@ -67,14 +67,14 @@ 67 67 68 68 Support for these widgets have been similarly implemented as **button** and **link** variants, depending whether it is used inside a form or not. 69 69 70 -== AjaxForms in ERPrototaculous ==70 +== Forms in ERPrototaculous == 71 71 72 72 Differences from using forms in WebObjects. i.e ##WOForm##: 73 73 74 -1. All ajaxform controls must be named. This includes text fields, selects and buttons.74 +1. All form controls must be named. This includes text fields, selects and buttons. 75 75 (WebObjects dynamically assigned names are not compatible with ERPrototaculous). 76 -1. All ajaxforms in an ERPrototaculous appneedto beinstances of ##AjaxUpdaterForm##.77 -1. Ajax form submit buttons can be a:76 +1. All forms in an ERPrototaculous app are instances of ##AjaxUpdaterForm##. 77 +1. Form submit buttons can be the form of a: 78 78 79 79 * 80 80 ** Static ##<button>##. ... ... @@ -87,36 +87,24 @@ 87 87 In ERPrototaculous you may still have typical WebObjects forms (i.e WOForm) as well as use ajax forms (i.e **AjaxUpdaterForm**). 88 88 They behave differently in that an AjaxUpdaterForm will update the contents of a container as opposed to the entire page. 89 89 90 - {{warningtitle="Nameyourform controls!"}}90 +== Ajax Page Caching in ERPrototaculous == 91 91 92 -You must name your form controls, otherwise under certain circumstances ajax form submission will break. 92 +One notable difference in the ERPrototaculous and Ajax.framework is in the ajax responses. 93 +In ERPrototaculous, updates and actions break with "The WebObjects Way" by being pseudo-stateless. 93 93 94 -{{/warning}} 95 - 96 -== Ajax Response Handling in ERPrototaculous == 97 - 98 -One notable difference between the ERPrototaculous and Ajax frameworks is in the way they handle ajax responses. 99 -In ERPrototaculous, updates and actions break with //The WebObjects Way// by being pseudo-stateless. 100 - 101 101 WebObjects typically vends a fresh response for each and every action. With ajax, this is not necessary. 102 102 103 103 In a typical WebObjects application, when a user clicks on the back button and clicks on a link in on that page in the browser history, WebObjects needs to remember how to handle that action and to return the correct page. This is no longer true for ajax. 104 104 The reason is a user never travels backwards or forwards through the ajax application history. 105 -(i.e there is no forward/back buttons in a 100% ajax app - as there aren't in desktop apps).99 +(i.e there is no forward/back buttons in a 100% ajax app - as there isn't in desktop app). 106 106 107 107 So for ajax, the current state of the page fragment component is all that is necessary. 108 108 109 - {{infotitle="NoMore"}}103 +== Actions in ERPrototaculous == 110 110 111 -A 100% ajax WO-app (like an [ERDivaLook|ERDivaLook] app) will no longer be plagued by the well known _limitation_ of WebObjects - the browser *backtrack problem*. 112 - 113 -{{/info}} 114 - 115 -== Ajax Actions in ERPrototaculous == 116 - 117 117 Typically, in a WebObjects application, an action would return the contents of the entire page. 118 118 119 -Ajax responses are mostly page fragments orjustpart of a page.107 +Ajax responses are typically page fragments or part of a page. 120 120 So you should make sure the actions in ERPrototaculous (or AjaxUpdaterButton and AjaxRequestButton) return the proper page fragment as opposed to the entire page. 121 121 This breaks with WO-tradition, so this is where you need to be careful. 122 122 ... ... @@ -132,6 +132,4 @@ 132 132 133 133 Perhaps the only real similarity to Ajax.framework is the ajax update container. 134 134 **WXGenericContainer** is the ERPrototaculous update container. 135 -It is similar to an AjaxUpdateContainer when it has the binding ##ajax = true##, otherwise it's pretty much like **WOGenericContainer**. 136 - 137 -It has been implemented as a utility or //convenience// for Prototype's ##Ajax.Updater##. 123 +It will behave like an AjaxUpdateContainer when it has the binding ##ajax = true;##, otherwise it acts like **WOGenericContainer**.