Well, I broke it down as much as I could and surprisingly the 3 click bug persists even in the simplest scenario. These are the html templates I'm using:
On my main page: <div jwcid="@InternalTemplate"> <form jwcid="@tacos:AjaxForm" focus="ognl:false" clientValidationEnabled="ognl:false"> <div jwcid="@ImageBrowser" product="ognl:product"/> </form> </div> The InternalTemplate component is just some html to keep things organized. The ImageBrowser component contains this code: <span jwcid="@FieldLabel" field="component:productImage"/> <input type="file" jwcid="[EMAIL PROTECTED]" displayName="message:send-image" file="ognl:imageFileUpload"/> <input class="button" type="submit" jwcid="@tacos:AjaxSubmit" label="message:upload-image" action="listener:uploadImage" updateComponents="ognl:{'imageBrowser'}"/> And that's it. The listener method is only called on the 3rd click. I tested it on IE and Firefox. -----Original Message----- From: Denis Souza [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 15 de março de 2006 18:36 To: 'Tapestry users' Subject: RE: Tacos @AjaxForm and @Upload > I'll recheck the issue on the text replacement, > but the 3 times click seems weird. Is it possible for you to > post your template html? or perhaps describe the exact components > you're using? It's possible to post everything, but I think it wouldn't be very practical since I divide a lot of stuff into sub-components. I'd have to send all of them. I'll try to isolate the problem, though. I'll simplify my page as much as I can and post the minimum code in which the problem shows. I'll post it as soon as possible, just can't do it today, sorry. -----Original Message----- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 15 de março de 2006 18:06 To: Tapestry users Subject: Re: Tacos @AjaxForm and @Upload Denis Souza wrote: >Just tried it with the latest code. > >It eventually works, but it seems that any buttons on the page have to be >clicked on 3 times before it actually submits. Any buttons that appear >before the upload field replace their text with their id after the first >click (as all buttons did before). The buttons that come after the upload >field don't change but still have to be clicked on 3 times to work. > >Any ideas? Should I write a bug report? > > I'll reopen the previous one in tacos. I've also added a report in dojo for this http://trac.dojotoolkit.org/ticket/524 I'll recheck the issue on the text replacement, but the 3 times click seems weird. Is it possible for you to post your template html? or perhaps describe the exact components you're using? >Cheers, >Denis > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: terça-feira, 14 de março de 2006 21:44 >To: Tapestry users >Subject: Re: Tacos @AjaxForm and @Upload > >Yep, that was a very ugly >IE+dojo+multipart-http-request king of bug. >The actual problem is that the response xml >decides to play hide & seek with IE, >transforms all its content into a 'simple' text node, >and gets stored somewhere inside the first iframe it finds :) > >Anyway, get the latest from >http://tacos.sourceforge.net/nightly/ >and give it a try. > >>From Jesse Kuhnert <[EMAIL PROTECTED]>: > > > >>I saw some recent bugfix changes by andreas...Anyone tried making this >> >> >work > > >>from the latest code? >> >>On 3/14/06, Jeremy Kassis <[EMAIL PROTECTED]> wrote: >> >> >>>Hi Denis, >>> >>>Any luck with this? I too am struggling with the Upload within an >>>AjaxForm. >>>Symptoms similar to what you described. Would be great to hear if you >>>actually got it working or not. >>> >>>All the best, >>>Jeremy >>> >>> >>> >>> >>> >>>>-----Original Message----- >>>>From: Denis Souza [mailto:[EMAIL PROTECTED] >>>>Sent: Monday, February 20, 2006 8:36 AM >>>>To: 'Tapestry users' >>>>Subject: RE: Tacos @AjaxForm and @Upload >>>> >>>>I read that demo's source code and it seems that the page that does >>>> >>>> >all > > >>>>the >>>>work doesn't use AjaxForm or AjaxSubmit. It uses a regular form and a >>>>regular submit and some javascript to make it talk to the ProgressBar. >>>>There's also an AjaxDirectLink used to cancel the upload, but that's >>>>outside >>>>the form so unfortunately I can't use it in my case. >>>> >>>> >>>>-----Original Message----- >>>>From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] >>>>Sent: sexta-feira, 17 de fevereiro de 2006 17:05 >>>>To: Tapestry users >>>>Subject: Re: Tacos @AjaxForm and @Upload >>>> >>>>It sounds like a bug in tacos to me, but I have been theoretically >>>>successful in using the Upload component with AjaxForm, as show here: >>>> >>>>http://tacos.mine.nu/tacos- >>>>demo4/app?page=forms%2FUploadProgressBar&service= >>>>page >>>> >>>>(still some issues with the progress indicator...but it works) >>>> >>>>On 2/17/06, Denis Souza <[EMAIL PROTECTED]> wrote: >>>> >>>> >>>>>Hi, >>>>> >>>>> >>>>> >>>>>Has anyone here had success in using Tapestry's @Upload component >>>>> >>>>> >>>>inside >>>> >>>> >>>>>a >>>>>@tacos:AjaxForm? My AjaxForm works perfectly up to the point in >>>>> >>>>> >which > > >>>I >>> >>> >>>>>add >>>>>the @Upload component. Then it just starts acting crazy. Whenever I >>>>> >>>>> >>>>click >>>> >>>> >>>>>on >>>>>one of several AjaxSubmit buttons I have in my page it opens a blank >>>>> >>>>> >>>>page >>>> >>>> >>>>>containing one word: "undefined". This happens in Firefox as well as >>>>> >>>>> >>>IE. >>> >>> >>>>>Could this be a bug in the Tacos implementation? When I use >>>>> >>>>> >Tapestry's > > >>>>>regular form and submit components everything works fine. Any ideas? >>>>> >>>>> >>>>> >>>>>Thanks, >>>>> >>>>>Denis >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>>--------------------------------------------------------------------- >>>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>>> >>>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]