Em Mon, 09 Feb 2009 22:04:25 -0300, Jonathan O'Connor
<[email protected]> escreveu:
Thiago,
yes, I know about ComponentResources.createXXXLink(), but how do I sneak
it into the JavaScript? I guess I have to generate some special java
script in afterRender. I'm sure I saw code like in the WIKI.
The most elegant way to do it is to add that piece of Javascript through
RenderSupport.addScript().
Another solution is to put a Tapestry expression expansion inside the
Javascript code:
Page class:
public Link getEventLink() {
return componentResources.createXXXLink(parameters);
}
Template:
window.location.href='${eventLink}' + this.cells[1].textContent;
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]