On Thu, 31 Oct 2013 18:39:57 -0200, Asma Merchant <amerch...@renau.com>
wrote:
I think I am getting close. But what should I put in the blanks? I don't
want to create a separate .js file
You know that's the best practice, right? ;)
and instantiate class.
Not needed.
Is there any short cut?
Nope.
Java
public void afterRender() {
String url =
componentResources.createEventLink("changePulseMode").toAbsoluteURI();
javaScriptSupport.addScript("window.changePulseMode = '%';", url);
}
Supposing you don't want an AJAX request:
//Javascript
jQuery(document).on("click", ".pulseMode", function () {
var radioId = jQuery(this).data('id'); // shouldn't this be
getAttribute()?
window.location = window.changePulseMode + '?id=' = radioId;
}
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org