>From Marc Jameson <[EMAIL PROTECTED]>: > 1. First off, the AjaxSubmitScript component referenced in the example does > not exist. I assume it's been replaced by AjaxEventSubmit?
You're right, AjaxEventSubmit is correct. Those docs need an update :) > However, as it turns out, the 'eventListener' parameter does not exist > either, not in the tapestry document or source code. And for all I know it > could have been a parameter of PropertySelection only, which is not what I'm > using. eventListener is the correct parameter, but you add it the component that triggers the event. An EnhancementWorker is responsible for gathering this parameter from any IFormComponent that has it, so you won't find the parameter in the docs of @TextField, @TextArea, e.t.c. If you're interested to see how it works, try looking at the source of net.sf.tacos.ajax.impl.FormComponentEventWorker > > So I'm at a bit of a loss on how to assign the 'onchange' event of a > tapestry component to a tacos AjaxEventSubmit component that I've defined. > Any help would be appreciated. > > In my case, the dropdown list I'm using is a custom component, implemented > as a tapestry component with a .script file and a .js file doing the > advanced UI. I simply need to update other areas of the page asynchronously > each time the user selects an item in my custom dropdown, which fires an > onchange event as expected. > > Without an 'eventListener' sort of parameter, how do I connect the onchange > event to an AjaxEventSubmit? There's an example page at tacos demo site, that uses this component. It's source is at: https://svn.sourceforge.net/svnroot/tacos/trunk/demo/docroot/WEB-INF/forms/AjaxSubmitExample.html See the [EMAIL PROTECTED]:AjaxEventSubmit component (close to the end) and the radios that follow Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Tacos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel
