How do I make a link popup a new window?
Answer / Sumit Yadav
To open a link in a new window in Apache Tapestry, you can use JavaScript. Here's an example of how to create a link that opens in a new window:
```java
public class MyPage extends BasePage {
public static final String OPEN_IN_NEW_WINDOW = "target=_blank";
public Link toAnotherPage() {
return new Link("Go to Another Page", createLink("anotherPage").addAttributes(OPEN_IN_NEW_WINDOW));
}
}
```
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I stream a file to the user from tapestry?
Does tapestry work with other other application servers besides jboss?
What’s the lifecycle of a form submit?
How to alter the url to point to the correct page?
How to get a file from client input to server end in apache tapestry?
What is apache tapestry?
How is the performance of tapestry?
How do we write components in apache tapestry?
Is there a wysiwyg editor for tapestry, or an ide plugin?
I have a form with a submit button. On the form and the submit button are two separate listeners. Which is invoked first?
Is tapestry a jsp tag library?
I have to restart my application to pick up changes to specifications and templates, how can I avoid this?