Perhaps an @Environmental object? Don't all Ajax responses at least have a zone association? Can't that be used to deduce all the other client IDs?
On May 1, 2012, at 2:43 PM, Norman Franke <nor...@myasd.com> wrote: > Thanks, that's a step in the right direction. Under Tapestry 5.3.3, at least, > that code throws a JavaScript exception because form.onsubmit() wants an > event as a parameter and operates upon it. (Run it in Firebug.) I have an > event, so I just passed that in. > > The other issues is that all of the callbacks on AjaxResponseRenderer (e.g. > for JavaScript) are during partial response render. As a result, my > parameters are not set and I don't know the ID of the anything on the page, > including my own component. Each row returned needs a link that sets the > value. I was able to work around this by setting a global variable for the > active lookup dialog, but that seems haskish to me. However, I can't figure > out any other way. > > Norman Franke > Answering Service for Directors, Inc. > www.myasd.com > > > > On May 1, 2012, at 12:29 AM, Lenny Primak wrote: > >> http://code.google.com/p/flowlogix/source/browse/tapestry-services/src/main/resources/com/flowlogix/web/mixins/DisableAfterSubmit.js >> search for setSubmittingElement >> >> Perhaps you are missing that, if that's not the case, debugging Tap JS code >> might help >> >> >> On Apr 30, 2012, at 4:52 PM, Norman Franke wrote: >> >>> I'm trying to make a lookup dialog that lets users lookup accounts by name. >>> It obviously has a form where the user can enter a partial name. The form >>> has a t:zone and the onSuccess handler either tries to return the zone or >>> use AjaxResponseRenderer to return the content of the zone. which has the >>> list of matching accounts. >>> >>> My component via javascript automatically clicks a hidden submit button to >>> submit the form. The form, zone and list are all in the component. It works >>> fine when in a page, but when this is run as a component I get this error: >>> >>> Page must be specified before initializing for partial page render. >>> Not very helpful. It appears that the form is not being submitted via AJAX >>> (request.isXHR is false.) Can one submit a form inside a component via AJAX >>> that updates a zone inside that component? I can't put the zone outside the >>> component and update the entire thing, since it messes up the value of the >>> text field. >>> This is using Tapestry 5.3.3. >>> >>> Norman Franke >>> Answering Service for Directors, Inc. >>> www.myasd.com >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org