I think i've seen this happening in tapestry core somewhere, but i'm not 100% sure... Perhaps it was in an html tutorial... mentioning not to give id='submit' to form items.
Anyway, depending on usage, this may or may not cause bugs... If you try to submit your form with js, you'd write document.form.submit() BUT there's now a document.form.submit item as well. So, either document.form.submit() or document.form.submit.value will fail... In your case, it's the latter BTW, you might also like to avoid setting id='reset' Hunter, Andrew E wrote: > > I’m sorry, the second piece of code was meant to read: > > <form jwcid="@tacos:AjaxForm"> > > <input jwcid="[EMAIL PROTECTED]:AjaxSubmit" value="Create Application Method" > > submitNormal="true" action="listener:onCreate"/> > > </form> > > ------------------------------------------------------------------------ > > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] *On Behalf Of > *Hunter, Andrew E > *Sent:* Wednesday, October 25, 2006 2:15 PM > *To:* [email protected] > *Subject:* [Tacos-devel] Very interesting bug for AjaxSubmit's > submitNormal > > I just came across a strange bug that has been causing me much > frustration. If you name an AjaxSubmit component “submit” and set > submitNormal=”true”, clicking the button will not submit the form. In > IE, an error will occur that says “Object doesn’t support this > property or message”. Here is the code where this occurs: > > <form jwcid="@tacos:AjaxForm"> > > <input jwcid="[EMAIL PROTECTED]:AjaxSubmit" value="Create Application Method" > > submitNormal="true" action="listener:onCreate"/> > > </form> > > However, if I change the name of the AjaxSubmit component to “create” > (or don’t specify a component name) as follows, everything works as it > should: > > <form jwcid="@tacos:AjaxForm"> > > <input jwcid="[EMAIL PROTECTED]:AjaxSubmit" value="Create Application Method" > > submitNormal="true" action="listener:onCreate"/> > > </form> > > Can someone explain this rather strange behavior to me? Thanks > > Andrew > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting ------------------------------------------------------------------------- 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
