Hi Thiago,
I appreciate your consistent help!
So here's the first piece of code based on your recommendation of adding id
to link's href attribute(Please see comments for errors):
jQuery(document).ready( function(){
Query(document).on("click", ".pulseMode", function () {
var radioId = jQuery(this).data('id');
jQuery(".modal-footer #yesButton").attr("href", '?id=' + radioId);
//takes you to same page with id=PulseMode.A added at the end of link
//but doesn't call the event onChangePulse()
});
});
I tried with adding t:parameters to yesButton's link but got the following
runtime exception:
jQuery(document).ready( function(){
Query(document).on("click", ".pulseMode", function () {
var radioId = jQuery(this).data('id');
jQuery(".modal-footer #yesButton").attr("t:parameters",
'{prop:\'id\':'+ radioId +'\'}');
//throws the following exception
// org.apache.tapestry5.runtime.ComponentEventException
//Unable process query parameter 'id' as parameter #1 of event handler
method XXX.onChangePulseMode(java.lang.String): The value for query
parameter 'id' was blank, but a non-blank value is needed.
//context
//eventType
//changepulsemode
});
});
So I am still stuck without solution!