You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Ruiz <da...@websolucoes.com.br> on 2007/07/19 01:42:52 UTC
Gerenating Response -- Component
Hello,
I´ve been looking the docs and I couldn't find how to do this in the proper
way..
Using the following structure:
public abstract class Viewer extends BasePage {
@InitialValue("literal:default value message..")
public abstract void setMessage(String message);
public abstract String getMessage();
}
pubic abstract class Sender extends BasePage {
@InjectPage("Viewer")
public abstract Viewer getViewer();
public IPage onSend() {
Viewer viewer = getViewer();
viewer.setMessage("test message");
***********
String response = viewer.executeAndGetResponseAsHtml(); //
How to do this?..
}
}
Explain the steps, I just clicked on a DirectLink in Sender class, I need
this method do call another Component with a set of attributes and execute
it background, and get the generated HTML into a string (which I will add as
the the body of an e-mail I will send)..
I can't find a way to do this, but I think its pretty possible and I'm just
too new in Tapestry to make this work..
Can someone help me in how to get this step to work? - About the method
'executeAndGetResponseAsHtml', I dont have this method implemented, this is
the part I need help.
Thanks in advance,
Daniel Andrade Ruiz | Desenvolvimento
WebSoluções Realizando idéias em novo endereço:
Rua do Rocio, 220 - 13º Andar - V. Olímpia
Tel.: 11 3564-0019 Cel. 7181-8069
www.websolucoes.com.br <http://www.websolucoes.com.br/>
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 5/23/2007
3:59 PM
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org