From: Chuck H. <ch...@gl...> - 2009-11-27 17:46:20
|
On Nov 27, 2009, at 9:38 AM, Jean Pierre Malrieu wrote: > Thanks, Ricardo, for clarifying this. > > JPM > > PS: I think I got confused because I thought that the modal dialog was > like a page of its own, and that submitting a form within the dialog > would not redraw the originating page. Pretty naive idea I suppose. :-) It does _look_ like a new page, but really it is just a div on that page that is normally hidden. This can easily lead to confusion, as you have seen. The rule of thumb that I use is "When using Ajax components, stick to ALL Ajax components". There are exceptions, but that is a good rule to start from. Chuck > Le 27 nov. 09 à 15:28, Ricardo J. Parada a écrit : > >> The WOSubmitButton basically does the traditional submit where the >> form values are submitted and the browser redraws the entire page >> with the response from the application. >> >> The AjaxSubmitButton on the other hand goes through the >> XMHttpRequest object which is behind all AJAX requests into the >> application. And the response is then use to replace the contents >> of a section on the page, i.e. an update container. >> >> I guess the rule of thumb could be, if you don't want the whole page >> redrawn you have to go through AJAX. ;-) >> >> >> On Nov 27, 2009, at 5:08 AM, Jean Pierre Malrieu wrote: >> >>> >>> Le 27 nov. 09 à 00:07, Chuck Hill a écrit : >>> >>>>> >>>> >>>> >>>> I am not sure what is calling that, but the AMD onClose does not >>>> use >>>> a /wo/ action. Are you using a regular WOSubmitButton in the AMD >>>> instead of an AjaxSubmitButton? >>>> >>> >>> Thanks Chuck, that was it. After changing the WOSubmitButton to an >>> AjaxSubmitButton, I got it working. >>> I need either to understand better what is going on, or follow more >>> closely the examples (I guess option 2 will be my choice). >>> >>> JPM >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports >>> 2008 30-Day >>> trial. Simplify your report design, integration and deployment - >>> and focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Wonder-disc mailing list >>> Won...@li... >>> https://lists.sourceforge.net/lists/listinfo/wonder-disc >> >> > > Tout ce que l'on apprend à un enfant, on l'empêche de l'inventer ou de > le découvrir. > J. Piaget > > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Wonder-disc mailing list > Won...@li... > https://lists.sourceforge.net/lists/listinfo/wonder-disc -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects |