Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I make a link popup a new window?



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

Post New Answer

More Apache Tapestry Interview Questions

How do I stream a file to the user from tapestry?

1 Answers  


Does tapestry work with other other application servers besides jboss?

1 Answers  


What’s the lifecycle of a form submit?

1 Answers  


How to alter the url to point to the correct page?

1 Answers  


How to get a file from client input to server end in apache tapestry?

1 Answers  


What is apache tapestry?

1 Answers  


How is the performance of tapestry?

1 Answers  


How do we write components in apache tapestry?

1 Answers  


Is there a wysiwyg editor for tapestry, or an ide plugin?

1 Answers  


I have a form with a submit button. On the form and the submit button are two separate listeners. Which is invoked first?

1 Answers  


Is tapestry a jsp tag library?

1 Answers  


I have to restart my application to pick up changes to specifications and templates, how can I avoid this?

1 Answers  


Categories