Answer Posted / 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 |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category