Hi,
I was just build a table (via t:loop) that includes an t:actionLink in each
row. The table itself is loaded via progressiveDisplay. The t:actionlink is
supposed to issue an AJAX request to update a zone that lies within the
t:progressiveDisplay.
My problem: the t:actionLink does nothing.
I investigated...and built a small example.
Example.tml
Btn 1
Btn 2
zone1
zone2
Btn1 & Btn2 are loaded via the t:progressivedisplay. Zone1 as well, only
Zone2 is there at page load.
The resulting HTML is:
/start.btn1 Btn 1
/start.btn2 Btn 2
zone1
zone2
The zone2 has a 'regular' id and the zone1 an 'adapted' - perfectly alright
so far. But when I looked into the JSON response of the t:progressivedisplay
I noticed...
...
"linkZone" : [
{
"linkId" : "btn1_12f6347aa94",
"url" : "/start.btn1",
"zoneId" : "zone1"
},
{
"linkId" : "btn2_12f6347aa94",
"url" : "/start.btn2",
"zoneId" : "zone2"
}
]
...that the linking isn't working! Btn2 is properly linked to zone2, but
btn1 is linked to (non-existing) zone1! I looked in the tapestry.js file and
found this line:
var zoneElement = zoneId == '^' ? $(element).up('.t-zone') : $(zoneId);
This is where the "zoneId" from the reponse is used to find the appropriate
HTML element. Obviously it can't find it.
Am I on to something here or did I screw up my application somehow (I use a
few decorates)?
PS: I have to add that I'm using the jquery plugin for Tapestry, so this
might affect this behavior.
Cheers,
Stephan
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/AJAX-ActionLink-within-ProgressiveDisplay-tp4308800p4308800.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org