Confirm on eventlink in zone

331 views
Skip to first unread message

nathanq

unread,
Oct 31, 2013, 4:37:04 AM10/31/13
to tapestry...@googlegroups.com
Hi,

I cannot get the confirm mixin working when I use it on an EventLink inside a zone (and with zone parameter). It always refreshes the whole page or throws following error:

Page must be specified before initializing for partial page render.

I guess because the request is not XHR ?
So is this mixin just not supposed to work for ajax eventlinks, or am I doing something wrong?

Emmanuel DEMEY

unread,
Oct 31, 2013, 4:40:56 AM10/31/13
to tapestry...@googlegroups.com
It sounds it is problem due to a modification I made yesterday. I will test it again. 


2013/10/31 nathanq <nqui...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Emmanuel DEMEY
Ingénieur Etude et Développement
Worldline, an atos company
+33 (0)6 47 47 42 02
demey.e...@gmail.com


Twitter : @EmmanuelDemey

nathanq

unread,
Oct 31, 2013, 5:02:35 AM10/31/13
to tapestry...@googlegroups.com
I'm using Tapestry 5.3.7 and Tapestry-jQuery 3.3.7 by the way

Op donderdag 31 oktober 2013 09:40:56 UTC+1 schreef Emmanuel DEMEY:

nathanq

unread,
Oct 31, 2013, 5:50:59 AM10/31/13
to tapestry...@googlegroups.com
Ok, I tried Tapestry-jQuery 1.4.0-SNAPSHOT now, but no success.

I have following in my .tml:

<t:zone>
    <t:eventlink t:event="test" t:zone="^" t:mixins="jquery/confirm">blabli</t:eventlink>
</t:zone>

page class:

void onTest() {
     System.err.println(request.isXHR());  --> prints false
}

So it's still not firing the event as an ajax event.

Op donderdag 31 oktober 2013 10:02:35 UTC+1 schreef nathanq:

nathanq

unread,
Oct 31, 2013, 5:52:40 AM10/31/13
to tapestry...@googlegroups.com
I meant 3.4.0-SNAPSHOT


Op donderdag 31 oktober 2013 10:50:59 UTC+1 schreef nathanq:

Emmanuel DEMEY

unread,
Nov 4, 2013, 3:35:00 AM11/4/13
to tapestry...@googlegroups.com
Hi, 

I found the problem. With an eventlink, the event is triggered by the container element. Not directly by the link. So the t;id of the link is not present in the href. 

I am going to solve this issue today. 

Manu


2013/10/31 nathanq <nqui...@gmail.com>

Emmanuel DEMEY

unread,
Nov 4, 2013, 4:33:02 AM11/4/13
to tapestry...@googlegroups.com
Hi, 

I have just pushed a new snapshot with a fix. Can you test it ? 

Manu


2013/10/31 nathanq <nqui...@gmail.com>

nathanq

unread,
Nov 20, 2013, 5:09:54 AM11/20/13
to tapestry...@googlegroups.com
Hey, thanks!

Yes this seems to work :). Any idea when a 3.4.0 release will be made?

Nathan

Op maandag 4 november 2013 10:33:02 UTC+1 schreef Emmanuel DEMEY:

Emmanuel DEMEY

unread,
Nov 21, 2013, 12:04:17 PM11/21/13
to tapestry...@googlegroups.com
There is still one issue to solve before the release : https://github.com/got5/tapestry5-jquery/issues/318

I hope I will deploy the release at the end of the year. 


2013/11/20 nathanq <nqui...@gmail.com>
Reply all
Reply to author
Forward
0 new messages