Ahh...That is one particular piece I've so far (maybe someone can change my mind ) decided to not support in a backwards fashion. (ie attaching new behaviour to core js objects should be avoided ).
Here is the new interface for dealing with forms: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/framework/src/js/tapestry/form.js?view=markup Basically, you can call tapestry.form.submit("string id of form element or actual form element"), or tapestry.form.submitAsync("string id of form element or actual form element"). If you find yourself doing this this way you should still question it, because now you can do this much more simply: Your page/component class listener method: @EventListener(events="onchange", targets="country", submitForm="myformid") public void dooFoo(BrowserEvent event) { // do whatever you want } On 6/28/06, Kevin Menard <[EMAIL PROTECTED]> wrote:
Hi, Is there any info on triggering form events in Tapestry 4.1? My old code no longer works (probably due to the move to dojo). E.g., I used to be able to do something like the following: <select jwcid="country" onchange="javascript:this.form.events.refresh ();"/> That no longer causes the form to refresh. Any info would be much appreciated. Thanks, Kevin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind.