Tapestry Confirm mixin doesn't work with async="true" parameter

2017-03-22 Thread Bob Harner
Has anybody else seen this? When I have an eventlink (and presumably actionlink and other types of links) with async="true", like this: Delete... then when I click OK on the confirmation dialog, the request is sent BOTH via xhr and as a regular full-page request. (Naturally, the second one

Re: Tapestry 5.4.1 Confirm mixin prevents onSuccessFrom... event from working

2016-12-07 Thread George Ludwig
I did some experimenting and discovered that the confirm mixin works fine for things like an actionlink, but it doesn't work on a form button. Is this intended behavior? I was able to hack around it by styling an action link to look like a button and putting it outside of my form. In this

Tapestry 5.4.1 Confirm mixin prevents onSuccessFrom... event from working

2016-11-11 Thread George Ludwig
Hi all, I've got a pretty simple test project in Tap 5.4.1. Everything works as expected, but when I add the built-in Confirm mixin to a component form, the onSuccessFrom... event does not work. The confirm dialog works as expected, but when I click ok, nothing happens (Other than the co

Double event submission on eventlink w/ async="true" and confirm mixin

2016-05-10 Thread Casey Link
below, fixes this: ${message:delete} Likewise, if I remove the confirm mixin and leave the async="true", then it only sends one xhr event as expected (but without the confirm

Re: Confirm mixin with form validation errors

2012-09-17 Thread Ray Nicholus
bit older version of Tapestry: 5.1.05. There > is no > > Tapestry.FORM_VALIDATE_FIELDS_EVENT defined but there are > > Tapestry.FORM_VALIDATE_EVENT and > > Tapestry.FIELD_VALIDATE_EVENT > > which I guess should do the same thing. > > > > > > > >

Re: Confirm mixin with form validation errors

2012-09-17 Thread ZKN __
.alreadyClickedOnce = false; }, 3000); } }; Оригинално писмо От: Taha Siddiqi tawus.tapes...@gmail.com Относно: Re: Confirm mixin with form validation errors До: "Tapestry users" Изпратено на: Понеделник, 2012, Септемв

Re: Confirm mixin with form validation errors

2012-09-17 Thread Taha Siddiqi
x27; is > not a function > > I have to mention I'm on a bit older version of Tapestry: 5.1.05. There is no > Tapestry.FORM_VALIDATE_FIELDS_EVENT defined but there are > Tapestry.FORM_VALIDATE_EVENT and > Tapestry.FIELD_VALIDATE_EVENT > which I guess should do the same thing. > > > &

Re: Confirm mixin with form validation errors

2012-09-17 Thread ZKN __
- Оригинално писмо От: Josh Canfield joshcanfi...@gmail.com Относно: Re: Confirm mixin with form validation errors До: Tapestry users Изпратено на: Петък, 2012, Септември 14 07:07:20 EEST I don't think this addresses the problem though, right? If client-side form validation fa

Re: Confirm mixin with form validation errors

2012-09-13 Thread Josh Canfield
I don't think this addresses the problem though, right? If client-side form validation fails you still are in a state where you can't click the submit button again after fixing the error. Tapestry doesn't have an event for "validation failed", and I don't know of an approved way to workaround tha

Re: Confirm mixin with form validation errors

2012-09-13 Thread trsvax
$('#'+specs.id + ' :submit').attr('disabled', 'disabled'); }); } }); }) ( jQuery ); You need to look for the formprepareforsubmit event. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Confirm-m

Re: problems getting rid of the JS confirm box from confirm mixin

2012-02-03 Thread hese
{ // use the reponse to update the zone. zoneManager.processReply(t.responseJSON); }.bind(this) }); }; -- View this message in context: http://tapestry.1045711.n5.nabble.com/problems-getting-rid-of-the-JS-confirm-box-from

Re: problems getting rid of the JS confirm box from confirm mixin

2012-02-02 Thread hese
/problems-getting-rid-of-the-JS-confirm-box-from-confirm-mixin-tp5444911p5451126.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional

Re: problems getting rid of the JS confirm box from confirm mixin

2012-02-02 Thread hese
No answers?? :(( Please help! -- View this message in context: http://tapestry.1045711.n5.nabble.com/problems-getting-rid-of-the-JS-confirm-box-from-confirm-mixin-tp5444911p5450938.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Confirm Mixin

2011-01-13 Thread Josh Canfield
: > I have a confirm mixin that I use.  I can added it to a and it > works fine.  When I try to use it with a the confirmation > box is displayed but the cancel button doesn't stop the submit. > >        t:mixins="Confirm" t:message="Are you sure you want to rem

Re: Confirm Mixin

2011-01-13 Thread Shing Hing Man
Have you tried the confirm Mixin in Tapx ? https://github.com/hlship/tapx/ Shing --- On Fri, 14/1/11, mwilliam...@kcp.com wrote: > From: mwilliam...@kcp.com > Subject: Confirm Mixin > To: "Tapestry users" > Date: Friday, 14 January, 2011, 2:01 > I have a confi

Confirm Mixin

2011-01-13 Thread mwilliamson
I have a confirm mixin that I use. I can added it to a and it works fine. When I try to use it with a the confirmation box is displayed but the cancel button doesn't stop the submit. Dose anyone know how to make this work with a LinkSubmit or know of another way to do this? Confirm

Re: "Confirm" mixin won't cancel when in zone

2010-05-14 Thread Geoff Callender
e linkZone method sets the onclick function on the object >>> directly instead of using Event.observe. I haven't looked at it hard >>> enough to pass judgement but this gives you the opportunity to chain >>> the onclick handler by saving a copy in your object and replaci

Re: "Confirm" mixin won't cancel when in zone

2010-05-14 Thread Josh Canfield
handler by saving a copy in your object and replacing it >> with your own function. Since you can't enforce ordering for observed >> events, or prevent them from running maybe this is why onclick is set >> directly. >> >> Josh >> >> >> On Thu, Ma

Re: "Confirm" mixin won't cancel when in zone

2010-05-14 Thread Geoff Callender
r by saving a copy in your object and replacing it > with your own function. Since you can't enforce ordering for observed > events, or prevent them from running maybe this is why onclick is set > directly. > > Josh > > > On Thu, May 13, 2010 at 5:22 PM, Geoff Callender

Re: "Confirm" mixin won't cancel when in zone

2010-05-14 Thread Josh Canfield
observed events, or prevent them from running maybe this is why onclick is set directly. Josh On Thu, May 13, 2010 at 5:22 PM, Geoff Callender wrote: > I have a Confirm mixin that works fine until I put it in a zone. It still > pops up a confirmation dialog but when Cancel is pressed the

Re: "Confirm" mixin won't cancel when in zone

2010-05-13 Thread Geoff Callender
I'm not doing that - Tapestry is when it adds zone support. On 14/05/2010, at 10:54 AM, Paul Stanton wrote: > just as an aside, you don't need to prefix your onclick with 'javascript:' > > Geoff Callender wrote: >> > shape="rect" href="./simplewithzone:delete">Delete... >> > > --

Re: "Confirm" mixin won't cancel when in zone

2010-05-13 Thread Paul Stanton
just as an aside, you don't need to prefix your onclick with 'javascript:' Geoff Callender wrote: Delete... - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...

Re: "Confirm" mixin won't cancel when in zone

2010-05-13 Thread Thiago H. de Paula Figueiredo
On Thu, 13 May 2010 21:22:25 -0300, Geoff Callender wrote: shape="rect" href="./simplewithzone:delete">Delete... I'm no JavaScript guru (very far from that, actually), but have you tried setting onclick to null? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hi

"Confirm" mixin won't cancel when in zone

2010-05-13 Thread Geoff Callender
I have a Confirm mixin that works fine until I put it in a zone. It still pops up a confirmation dialog but when Cancel is pressed the mixin fails to stop the event. My mixin adds javascript that observes the element, but the zone seems to upset it by adding javascript directly to the element