That should really work. I'm using something very similar (checkbox instead of radiobutton). If you post some code, I can look for differences.
2007/6/27, Julian Wood <[EMAIL PROTECTED]>:
I have a pretty straight forward paradigm: - two groups of 3 radio buttons followed by a property selection. - an async form with no listener whatsoever - a submit button with an action listener (called saveTime) The idea is that choosing a radio button narrows down the list in the property selection. I chose to add eventlisteners to the onclicks of the radiobuttons, and update the property selection in response. The eventlisteners submit the above form, which is why there is no listener set in the form binding. For simplicity, I'll call one eventListener method categorySelected. This form is entirely contained within a Dialog component, which is reused. Now, this all works perfectly the first time through - open the dialog, fill out the form, watch the property selection values change, submit the form, close the dialog, reset all the fields. Note that saveTime is not called when you click a radio button - only categorySelected. The second time the dialog is opened, the eventlisteners behave slightly differently. This time, when you click a radio button, the form is submitted, categorySelected is invoked _and_ saveTime is called (which is a problem). The primary difference between the two posts (at the request level) is the inclusion of the name of said button, which I believe is how Tapestry determines what listener to call (ie if &addTimeEventButton=Save%20Time is included, then saveTime is called - correct me if I'm wrong). So I'm wondering why the eventlisteners call saveTime (some of the time), if there is a way to prevent that, or if there is a better way to approach this problem all together (is an async form with no listener at all okay?). I know there are a bunch of workarounds, but I'm looking for that clean solution. Thanks, J -- Julian Wood <[EMAIL PROTECTED]> Software Engineer Teaching & Learning Centre University of Calgary http://tlc.ucalgary.ca --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Marcus Schulte http://marcus-schulte.blogspot.com