I think you can do an ERXWOForm embedded=true to solve that problem, too, IIRC?
On Jan 3, 2012, at 1:13 PM, Jérémy DE ROYER [INGENCYS] wrote: > After digging, problem was with webobjects 5.4(.3 ?) who, before appending > the form to the content, was looking if the form was already in a form, that > ensure a good html code. > > Idea is great except for AjaxModalDialog because they are (finally) outside > the form. > > So I made a new component called WOFormForAjaxModalDialog that don't look > anymore if it is already in a form. > > Works perfect... and is html compliant. > > Jérémy > > Le 3 janv. 2012 à 19:05, Lon Varscsak a écrit : > >> Ah, yes, I see what you're describing. I've encountered that before too, so >> I remove the form from the enclosed component, and just have to know that >> that component requires being wrapped in a WOForm. >> >> -Lon >> >> On Tue, Jan 3, 2012 at 10:31 AM, "Jérémy DE ROYER [INGENCYS]" >> <jeremy.dero...@ingencys.net> wrote: >> Yep, that's what I did for most of them. >> >> But some are included in components (record form) and those components are >> included in forms (edit pages) ... and that's hard to change. >> >> Jérémy >> >> Le 3 janv. 2012 à 17:49, Lon Varscsak a écrit : >> >>> I believe you need to create this AMD outside of the form, and then use an >>> AjaxModalDialogOpener inside the form to open it. >>> >>> -Lon >>> >>> On Tue, Jan 3, 2012 at 6:12 AM, "Jérémy DE ROYER [INGENCYS]" >>> <jeremy.dero...@ingencys.net> wrote: >>> Hello, >>> >>> We used the Ajax framework with webobjects 5.3 and since I updated to >>> version 5.4 (last month), some AjaxModalDialog doesn't work anymore... >>> those that are inserted in a WOForm. >>> >>> Doesn't work means that a click on the submit button generates the >>> javascript error below : >>> >>> Erreur : form is null >>> Fichier Source : >>> http://jeremy.local:51000/cgi-bin/WebObjects/TestIndeXys_v30.woa/1/wr?wodata=file%3A%2FLibrary%2FFrameworks%2FLibraryFrameworksWebObjects54%2FAjax.framework%2FWebServerResources%2Fwonder.js >>> Ligne : 379 >>> >>> I digged into the html code and found that the WOForm inside the >>> AjaxModalDialog (code below) is not generated id the modal dialog is >>> already in a WOForm... so the AjaxSubmitButton (javascript) can not send >>> the form. >>> >>> But sometimes (example : opening a wizard inside a component inside a >>> form), the modal dialog contained in a component has to be in a form >>> because the parent contains a form. >>> >>> Worked like a charm with wo 5.3 no more with wo 5.4 >>> >>> Any idea ? >>> >>> Jérémy >>> >>> -- >>> >>> <webobject name = "AjaxModalDialog"> >>> <webobject name = "WOForm"> >>> <p><webobject name = "AjaxSubmitButton" /></p> >>> </webobject> >>> </webobject> >>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/lon.varscsak%40gmail.com >>> >>> This email sent to lon.varsc...@gmail.com >>> >>> >> >> > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com > > This email sent to msch...@pobox.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com