Hi Nick,
Thanks for the quick replay :)
Looks like this ButtonLinkRenderer is the thing what I am looking for.
But I have some questions about that renderer: Inside is a next function
protected String getScript(String url, String target)
{
return "window.open('" + url + "','" + target + "')";
}
Can a point the target to the popup window and if a can, theb how I do that?
All the best,
Taavi
Nick Westgate wrote:
Hi Taavi.
I'm not sure exactly what you want, but I'm sure you can easily make it.
Look at the source for Tapestry (are you using 4?) and look in this dir:
contrib\src\java\org\apache\tapestry\contrib\link
There you'll see PopupLinkRenderer.java and ButtonLinkRenderer.java.
ButtonLinkRenderer may already do what you want, but if not, then mix the
code from different renderers together to make a new one. That's what
Tapestry is about, and it's not difficult.
Cheers,
Nick.
Taavi Sildeberg wrote:
Hello guys,
I have next situation: In one page user input some text in a form and
then presses button and form submits the form. After submit opens a
new window whit a user input from previous page.
I have implemented this situation using DirectLink and
PopupLinkRenderer and it works, but I have to do this with a button
and not with a link.
Can someone help me with this problem?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]